warzone2100/lib/script/Makefile.am

60 lines
1.1 KiB
Makefile

%.tab.h %.tab.c:: %.y
$(YACC) $(YFLAGS) $(AM_YFLAGS) -o$@ $<
%.lex.c:: %.l
$(LEX) $(LFLAGS) $(AM_LFLAGS) -o$@ $<
# sed -i 's/\(fwrite(.*)\)/abs(\1)/' $@
AM_CPPFLAGS = -DYY_NO_INPUT $(SDL_CFLAGS) $(WZ_CPPFLAGS)
AM_CFLAGS = $(WZ_CFLAGS)
AM_CXXFLAGS = $(WZ_CXXFLAGS)
AM_LFLAGS = $(FLEX_FLAGS)
AM_YFLAGS = -d
BUILT_SOURCES = \
chat_lexer.lex.c \
chat_parser.tab.c \
chat_parser.tab.h \
script_lexer.lex.c \
script_parser.tab.c \
script_parser.tab.h
CLEANFILES = \
chat_lexer.lex.c \
chat_parser.tab.c \
chat_parser.tab.h \
script_lexer.lex.c \
script_parser.tab.c \
script_parser.tab.h
EXTRA_DIST = \
chat_lexer.l chat_parser.y \
script_lexer.l script_parser.y
noinst_LIBRARIES = libscript.a
noinst_HEADERS = \
chat_parser.tab.h \
script_parser.tab.h \
chat_processing.h \
codeprint.h \
event.h \
eventsave.h \
interpreter.h \
parse.h \
script.h \
stack.h
libscript_a_SOURCES = \
chat_lexer.lex.c \
chat_parser.tab.c \
codeprint.c \
event.c \
eventsave.c \
interpreter.c \
script.c \
script_lexer.lex.c \
script_parser.tab.c \
stack.c
libscript_a_LIBADD = $(top_builddir)/lib/framework/libframework.a