3 noinst_LIBRARIES = libkjs.o
4 libkjs_o_ldflags = -Wl,-r -nostdlib
5 libkjs_o_AR = $(OBJCXXLD) $(AM_OBJCXXFLAGS) $(OBJCXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) $(libkjs_o_ldflags) -o
7 INCLUDES = $(KWQ_INCLUDES)
66 noinst_PROGRAMS = testkjs
68 testkjs_SOURCES = testkjs.cpp
70 testkjs_LDADD = $(srcdir)/libkjs.o
72 YACCFLAGS = -d --output-file=grammar.cpp --file-prefix=grammar --name-prefix=kjsyy
74 GRAMMAR_FILES = grammar.h grammar.cpp.h grammar.cpp
76 $(GRAMMAR_FILES): grammar-stamp
78 grammar-stamp: grammar.y
79 $(YACC) $(YACCFLAGS) $<
80 ln -sf grammar.cpp.h grammar.h
83 LUT_FILES = math_object.lut.h lexer.lut.h array_object.lut.h date_object.lut.h string_object.lut.h number_object.lut.h
85 lexer.lut.h: keywords.table
86 ./create_hash_table keywords.table -i > lexer.lut.h;
88 array_object.lut.h: array_object.cpp
89 ./create_hash_table array_object.cpp -i > array_object.lut.h
91 math_object.lut.h: math_object.cpp
92 ./create_hash_table math_object.cpp -i > math_object.lut.h
94 date_object.lut.h: date_object.cpp
95 ./create_hash_table date_object.cpp -i > date_object.lut.h
97 number_object.lut.h: number_object.cpp
98 ./create_hash_table number_object.cpp -i > number_object.lut.h
100 string_object.lut.h: string_object.cpp
101 ./create_hash_table string_object.cpp -i > string_object.lut.h
103 BUILT_SOURCES = $(GRAMMAR_FILES) $(LUT_FILES) grammar-stamp
105 CLEANFILES = $(BUILT_SOURCES)