Gperf.
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
OBJS=joy.o keywords.o
|
||||
STATIC_GCLIB=/usr/local/lib/libgc.a /usr/local/lib/libgmp.a
|
||||
CFLAGS = -ansi -Wall -Wextra -Werror -pedantic -Wstrict-overflow -fno-strict-aliasing -pedantic-errors -I/usr/local/include $(STATIC_GCLIB)
|
||||
CFLAGS = -ansi -Wall -Wextra -Werror -pedantic -Wstrict-overflow -fno-strict-aliasing -pedantic-errors -I/usr/local/include
|
||||
#COPTS=-I/usr/local/include
|
||||
# $(STATIC_GCLIB)
|
||||
|
||||
GPERF_OPTS = --readonly-tables --enum --includes --global-table
|
||||
|
||||
|
||||
joy: ${OBJS} $(STATIC_GCLIB)
|
||||
|
||||
all: joy
|
||||
|
||||
#joy: joy.c
|
||||
# cc $(COPTS) joy.c $(STATIC_GCLIB) -o joy
|
||||
keywords.c: KEYWORDS.txt
|
||||
gperf --output-file=$@ --hash-function-name=keyword_hash $(GPERF_OPTS) KEYWORDS.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user