From 519b7328b66c4c84f03893a31e4be5ba6b1395f2 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 11 Mar 2018 23:04:41 -0400 Subject: Added optional Lua lexer support. This support is disabled by default and must be enabled via compile-time option. --- curses/jinx/Makefile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'curses/jinx/Makefile') 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 -- cgit v1.2.3