]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/src/third_party/duktape-1.3.0/Makefile.cmdline
bump version to 12.2.12-pve1
[ceph.git] / ceph / src / civetweb / src / third_party / duktape-1.3.0 / Makefile.cmdline
1 #
2 # Example Makefile for building a program with embedded Duktape.
3 # The example program here is the Duktape command line tool.
4 #
5
6 DUKTAPE_SOURCES = src/duktape.c
7
8 DUKTAPE_CMDLINE_SOURCES = \
9 examples/cmdline/duk_cmdline.c
10
11 CC = gcc
12 CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
13 CCOPTS += -I./src # duktape.h and duk_config.h must be in include path
14 CCLIBS = -lm
15
16 # If you have readline, you may want to enable these. On some platforms
17 # -lreadline also requires -lncurses (e.g. RHEL), so it is added by default
18 # (you may be able to remove it)
19 #CCOPTS += -DDUK_CMDLINE_FANCY
20 #CCLIBS += -lreadline
21 #CCLIBS += -lncurses
22
23 # Optional feature defines, see: http://duktape.org/guide.html#compiling
24 CCOPTS += -DDUK_OPT_SELF_TESTS
25 #CCOPTS += -DDUK_OPT_DEBUG
26 #CCOPTS += -DDUK_OPT_DPRINT
27 # ...
28
29 duk: $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES)
30 $(CC) -o $@ $(DEFINES) $(CCOPTS) $(DUKTAPE_SOURCES) $(DUKTAPE_CMDLINE_SOURCES) $(CCLIBS)