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 \
33 libgedcom_la_LDFLAGS = -export-dynamic -version-info $(LIBVERSION)
34 libgedcom_la_LIBADD = calendar/libcalendar.la ../utf8/libutf8.la @INTLLIBS@
35 BUILT_SOURCES = lex.gedcom_1byte_.c \
45 noinst_HEADERS = encoding.h \
56 EXTRA_DIST = gedcom.y \
65 include $(top_srcdir)/Makefile.inc
67 gedcom.tab.c gedcom.tab.h: gedcom.y
68 $(YACC) $(YFLAGS) --name-prefix=gedcom_ $<
70 gedcom_date.tab.c gedcom_date.tab.h: gedcom_date.y
71 $(YACC) $(YFLAGS) --name-prefix=gedcom_date_ $<
73 lex.gedcom_1byte_.c: gedcom_1byte.lex
74 $(LEX) $(LFLAGS) -Pgedcom_1byte_ $<
76 lex.gedcom_hilo_.c: gedcom_hilo.lex
77 $(LEX) $(LFLAGS) -Pgedcom_hilo_ $<
79 lex.gedcom_lohi_.c: gedcom_lohi.lex
80 $(LEX) $(LFLAGS) -Pgedcom_lohi_ $<
82 lex.gedcom_date_.c: gedcom_date.lex
83 $(LEX) $(LFLAGS) -Pgedcom_date_ $<
85 lex.gedcom_1byte_.c: gedcom.tabgen.h gedcom_lex_common.c
86 lex.gedcom_hilo_.c: gedcom.tabgen.h gedcom_lex_common.c
87 lex.gedcom_lohi_.c: gedcom.tabgen.h gedcom_lex_common.c
88 lex.gedcom_date_.c: gedcom_date.tabgen.h
92 EXTRA_PROGRAMS = lexer_1byte lexer_hilo lexer_lohi
94 lexer_1byte_LDADD = lex.gedcom_1byte_.test.o message.o encoding.o hash.o
96 lexer_hilo_LDADD = lex.gedcom_hilo_.test.o message.o encoding.o hash.o
98 lexer_lohi_LDADD = lex.gedcom_lohi_.test.o message.o encoding.o hash.o
100 lex.gedcom_1byte_.test.o: lex.gedcom_1byte_.c
101 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
102 lex.gedcom_hilo_.test.o: lex.gedcom_hilo_.c
103 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
104 lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c
105 $(COMPILE) -DLEXER_TEST -c $(CPPFLAGS) $(CFLAGS) $< -o $@
108 rm -f $(EXTRA_PROGRAMS)