1 ## Process this file with automake to produce Makefile.in
7 localedir = $(datadir)/locale
8 INCLUDES = -I $(srcdir)/../intl -I $(srcdir)/../include -I $(srcdir)/calendar \
10 -DPKGDATADIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\"
11 YFLAGS = --debug --defines
13 CFLAGS = -g -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@
15 lib_LTLIBRARIES = libgedcom.la
16 libgedcom_la_SOURCES = lex.gedcom_1byte_.c \
32 libgedcom_la_LDFLAGS = -export-dynamic -version-info $(LIBVERSION) $(LIBICONV)
33 libgedcom_la_LIBADD = calendar/libcalendar.la ../utf8/libutf8.la @INTLLIBS@
34 BUILT_SOURCES = lex.gedcom_1byte_.c \
44 noinst_HEADERS = encoding.h \
54 EXTRA_DIST = gedcom.y \
63 include $(top_srcdir)/Makefile.inc
65 gedcom.tab.c gedcom.tab.h: gedcom.y
66 $(YACC) $(YFLAGS) --name-prefix=gedcom_ $<
68 gedcom_date.tab.c gedcom_date.tab.h: gedcom_date.y
69 $(YACC) $(YFLAGS) --name-prefix=gedcom_date_ $<
71 lex.gedcom_1byte_.c: gedcom_1byte.lex
72 $(LEX) $(LFLAGS) -Pgedcom_1byte_ $<
74 lex.gedcom_hilo_.c: gedcom_hilo.lex
75 $(LEX) $(LFLAGS) -Pgedcom_hilo_ $<
77 lex.gedcom_lohi_.c: gedcom_lohi.lex
78 $(LEX) $(LFLAGS) -Pgedcom_lohi_ $<
80 lex.gedcom_date_.c: gedcom_date.lex
81 $(LEX) $(LFLAGS) -Pgedcom_date_ $<
83 lex.gedcom_1byte_.c: gedcom.tabgen.h gedcom_lex_common.c
84 lex.gedcom_hilo_.c: gedcom.tabgen.h gedcom_lex_common.c
85 lex.gedcom_lohi_.c: gedcom.tabgen.h gedcom_lex_common.c
86 lex.gedcom_date_.c: gedcom_date.tabgen.h
90 EXTRA_PROGRAMS = lexer_1byte lexer_hilo lexer_lohi
92 lexer_1byte_LDADD = lex.gedcom_1byte_.test.o message.o encoding.o hash.o
94 lexer_hilo_LDADD = lex.gedcom_hilo_.test.o message.o encoding.o hash.o
96 lexer_lohi_LDADD = lex.gedcom_lohi_.test.o message.o encoding.o hash.o
98 lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c
99 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
100 lex.gedcom_hilo_.test.o: lex.gedcom_hilo_.c
101 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
102 lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c
103 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
106 rm -f $(EXTRA_PROGRAMS)