Browse Source

Add -Iexamples/cmdline to dist Makefiles

pull/1697/head
Sami Vaarala 7 years ago
parent
commit
c913b675b1
  1. 2
      dist-files/Makefile.cmdline
  2. 2
      dist-files/Makefile.dukdebug
  3. 2
      dist-files/Makefile.sharedlibrary

2
dist-files/Makefile.cmdline

@ -10,7 +10,7 @@ CMDLINE_SOURCES = \
CC = gcc
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
CCOPTS += -I./src # duktape.h and duk_config.h must be in include path
CCOPTS += -I./examples/cmdline -I./src # duktape.h and duk_config.h must be in include path
CCLIBS = -lm
# Enable print() and alert() for command line using an optional extra module.

2
dist-files/Makefile.dukdebug

@ -12,7 +12,7 @@ CMDLINE_SOURCES = \
CC = gcc
CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
CCOPTS += -I./prep -I./examples/debug-trans-socket
CCOPTS += -I./prep -I./examples/cmdline -I./examples/debug-trans-socket
CCOPTS += -DDUK_CMDLINE_DEBUGGER_SUPPORT # enable --debugger in ./duk
CCLIBS = -lm

2
dist-files/Makefile.sharedlibrary

@ -66,6 +66,6 @@ install: libduktape.so.$(REAL_VERSION) libduktaped.so.$(REAL_VERSION)
# Note: assumes /usr/local/include/ and /usr/local/lib/ are in include/link
# path which may not be the case for all distributions.
#CCOPTS=-I/usr/local/include -L/usr/local/lib
CCOPTS=
CCOPTS=-I./examples/cmdline
duk:
gcc $(CCOPTS) -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm

Loading…
Cancel
Save