warzone2100/lib/framework/Makefile.am

102 lines
2.2 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 = \
resource_lexer.lex.c \
resource_parser.tab.c \
resource_parser.tab.h \
strres_lexer.lex.c \
strres_parser.tab.c \
strres_parser.tab.h
CLEANFILES = \
resource_lexer.lex.c \
resource_parser.tab.c \
resource_parser.tab.h \
strres_lexer.lex.c \
strres_parser.tab.c \
strres_parser.tab.h
EXTRA_DIST = \
resource_lexer.l resource_parser.y \
strres_lexer.l strres_parser.y
noinst_LIBRARIES = libframework.a
noinst_HEADERS = \
strres_parser.tab.h \
resource_parser.tab.h \
configfile.h \
crc.h \
cursors.h \
debug.h \
file.h \
fixedpoint.h \
frame.h \
frameint.h \
frameresource.h \
i18n.h \
input.h \
lexer_input.h \
listmacs.h \
math_ext.h \
opengl.h \
physfs_ext.h \
resly.h \
stdio_ext.h \
string_ext.h \
strres.h \
strresly.h \
tagfile.h \
treap.h \
trig.h \
types.h \
utf.h \
vector.h \
config-macosx.h \
endian_hack.h \
gettext.h \
macros.h \
SDL_framerate.h \
wzapp_c.h \
wzglobal.h
libframework_a_SOURCES = \
resource_lexer.lex.c \
resource_parser.tab.c \
strres_lexer.lex.c \
strres_parser.tab.c \
configfile.c \
crc.cpp \
cursors16.c \
cursors32.c \
cursors.c \
debug.c \
frame.c \
frameresource.c \
i18n.c \
input.c \
lexer_input.c \
SDL_framerate.c \
stdio_ext.c \
strres.c \
tagfile.c \
treap.c \
trig.c \
utf.c
# HACK Don't give make errors when switching between trunk and branches.
# Works by finding the .deps/*.Po files which refer to source files that don't exist, and replacing them with a single dependency on the correct source file.
# Now with PD-ksh support.
fixbrokendependencies:
mkdir -p ".deps" ; for ext in c cpp ; do for a in `cd $(srcdir) ; echo *.$$ext` ; do fpref="`echo "$$a" | sed "s/\.$$ext//"`" ; pofile=".deps/$$fpref.Po" ; srcfile="$(srcdir)/$$a" ; if [ -e "$$srcfile" ] && ! grep -q "\b$$a\b" "$$pofile" 2> /dev/null ; then echo "$$fpref.o: $$srcfile" | tee "$$pofile" ; fi ; done ; done
all: fixbrokendependencies