aboutsummaryrefslogtreecommitdiffhomepage
path: root/curses/jinx/Makefile
diff options
context:
space:
mode:
authormitchell <unknown>2018-03-11 23:04:41 -0400
committermitchell <unknown>2018-03-11 23:04:41 -0400
commit519b7328b66c4c84f03893a31e4be5ba6b1395f2 (patch)
tree2055cd79006357e94c185f341d0df17b9a8769eb /curses/jinx/Makefile
parentc0373e036e965a70045971e2abc582cb4bf12a4e (diff)
downloadscintilla-mirror-519b7328b66c4c84f03893a31e4be5ba6b1395f2.tar.gz
Added optional Lua lexer support.
This support is disabled by default and must be enabled via compile-time option.
Diffstat (limited to 'curses/jinx/Makefile')
-rw-r--r--curses/jinx/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/curses/jinx/Makefile b/curses/jinx/Makefile
index 6811d4f7e..cd34e14cf 100644
--- a/curses/jinx/Makefile
+++ b/curses/jinx/Makefile
@@ -3,17 +3,15 @@
CC = gcc
CXX = g++
INCLUDEDIRS = -I ../../include -I ../../src -I ../../lexlib -I ../
-CFLAGS = -DCURSES -DSCI_LEXER -D_XOPEN_SOURCE_EXTENDED -W -Wall $(INCLUDEDIRS) \
- -Wno-unused-parameter
+CFLAGS = -DCURSES -DSCI_LEXER -Wall $(INCLUDEDIRS)
CXXFLAGS = $(CFLAGS)
+ifdef LPEG_LEXER
+ CFLAGS += -DLPEG_LEXER -I ../src/lua
+endif
-scintilla = ../../bin/scintilla_curses.a
-lexers = $(wildcard ../Lex*.o)
+scintilla = ../../bin/scintilla.a
all: jinx
-jinx.o: jinx.c
- $(CC) $(CFLAGS) -c $<
-jinx: jinx.o $(lexers) $(scintilla)
- $(CXX) -DCURSES $^ -o $@ -lncursesw
-clean:
- rm -f jinx *.o
+jinx.o: jinx.c ; $(CC) $(CFLAGS) -c $<
+jinx: jinx.o $(scintilla) ; $(CXX) $^ -o $@ -lncursesw
+clean: ; rm -f jinx *.o