mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1021 B
26 lines
1021 B
#
|
|
# Duktape command line tool with debugger support.
|
|
#
|
|
|
|
DUKTAPE_SOURCES = src/duktape.c
|
|
|
|
# Windows (MinGW): use examples/debug-trans-socket/duk_trans_socket_windows.c
|
|
# and link with -lws2_32.
|
|
DUKTAPE_CMDLINE_SOURCES = \
|
|
examples/cmdline/duk_cmdline.c \
|
|
examples/debug-trans-socket/duk_trans_socket_unix.c
|
|
|
|
CC = gcc
|
|
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
|
|
CCOPTS += -I./src -I./examples/debug-trans-socket
|
|
CCOPTS += -DDUK_CMDLINE_DEBUGGER_SUPPORT # enable --debugger in ./duk
|
|
CCOPTS += -DDUK_OPT_DEBUGGER_SUPPORT # enable debugger support in Duktape
|
|
CCOPTS += -DDUK_OPT_INTERRUPT_COUNTER # prerequisite for debugging
|
|
CCOPTS += -DDUK_OPT_DEBUGGER_FWD_PRINTALERT # optional debugger features
|
|
CCOPTS += -DDUK_OPT_DEBUGGER_FWD_LOGGING
|
|
CCOPTS += -DDUK_OPT_DEBUGGER_DUMPHEAP
|
|
CCOPTS += -DDUK_OPT_DEBUGGER_INSPECT
|
|
CCLIBS = -lm
|
|
|
|
duk: $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES)
|
|
$(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES) $(CCLIBS)
|
|
|