1 ## Process this file with automake to produce Makefile.in
5 INCLUDES = -I $(srcdir)/../include -DPKGDATADIR=\"$(pkgdatadir)\"
6 YFLAGS = --debug --defines --name-prefix=gedcom_
8 CFLAGS = -g -O2 -W -Wall -pedantic
10 lib_LTLIBRARIES = libgedcom.la
11 libgedcom_la_SOURCES = lex.gedcom_1byte_.c \
19 libgedcom_la_LDFLAGS = -version-info $(LIBVERSION)
20 BUILT_SOURCES = lex.gedcom_1byte_.c \
25 noinst_HEADERS = encoding.h \
29 EXTRA_DIST = gedcom.y \
35 gedcom.tab.c gedcom.tab.h: gedcom.y
36 $(YACC) $(YFLAGS) --name-prefix=gedcom_ $<
38 lex.gedcom_1byte_.c: gedcom_1byte.lex
39 $(LEX) $(LFLAGS) -Pgedcom_1byte_ $<
41 lex.gedcom_hilo_.c: gedcom_hilo.lex
42 $(LEX) $(LFLAGS) -Pgedcom_hilo_ $<
44 lex.gedcom_lohi_.c: gedcom_lohi.lex
45 $(LEX) $(LFLAGS) -Pgedcom_lohi_ $<
47 lex.gedcom_1byte_.c: gedcom.tab.h gedcom_lex_common.c
48 lex.gedcom_hilo_.c: gedcom.tab.h gedcom_lex_common.c
49 lex.gedcom_lohi_.c: gedcom.tab.h gedcom_lex_common.c
53 EXTRA_PROGRAMS = lexer_1byte lexer_hilo lexer_lohi
55 lexer_1byte_LDADD = lex.gedcom_1byte_.test.o message.o encoding.o
57 lexer_hilo_LDADD = lex.gedcom_hilo_.test.o message.o encoding.o
59 lexer_lohi_LDADD = lex.gedcom_lohi_.test.o message.o encoding.o
61 lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c
62 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
63 lex.gedcom_hilo_.test.o: lex.gedcom_hilo_.c
64 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
65 lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c
66 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
69 rm -f $(EXTRA_PROGRAMS)