X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2FMakefile.am;h=025ee80d523ac87205568390f227878b8bc8d3c8;hb=7b70ac5f2251178c3b00c806b4528b4b8dfa615b;hp=9ba13787c098505e5530e8f7bbb04825cece7aac;hpb=f0775fe0dbf452814ada20f660c796dc13c877d5;p=gedcom-parse.git diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am index 9ba1378..025ee80 100644 --- a/gedcom/Makefile.am +++ b/gedcom/Makefile.am @@ -9,7 +9,7 @@ INCLUDES = -I $(srcdir)/../intl -I $(srcdir)/../include -I $(srcdir)/calendar \ -DPKGDATADIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" YFLAGS = --debug --defines LFLAGS = -8 -CFLAGS = -g -O2 -W -Wall -pedantic +CFLAGS = -g -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ lib_LTLIBRARIES = libgedcom.la libgedcom_la_SOURCES = lex.gedcom_1byte_.c \ @@ -25,17 +25,20 @@ libgedcom_la_SOURCES = lex.gedcom_1byte_.c \ date.c \ hash.c \ xref.c \ + age.c \ compat.c -libgedcom_la_LDFLAGS = -version-info $(LIBVERSION) -libgedcom_la_LIBADD = calendar/libcalendar.la +libgedcom_la_LDFLAGS = -export-dynamic -version-info $(LIBVERSION) $(LIBICONV) +libgedcom_la_LIBADD = calendar/libcalendar.la @INTLLIBS@ BUILT_SOURCES = lex.gedcom_1byte_.c \ lex.gedcom_hilo_.c \ lex.gedcom_lohi_.c \ lex.gedcom_date_.c \ gedcom.tab.c \ gedcom.tab.h \ + gedcom.tabgen.h \ gedcom_date.tab.c \ - gedcom_date.tab.h + gedcom_date.tab.h \ + gedcom_date.tabgen.h noinst_HEADERS = encoding.h \ gedcom_internal.h \ interface.h \ @@ -43,6 +46,7 @@ noinst_HEADERS = encoding.h \ date.h \ hash.h \ xref.h \ + age.h \ compat.h EXTRA_DIST = gedcom.y \ gedcom_date.y \ @@ -50,7 +54,10 @@ EXTRA_DIST = gedcom.y \ gedcom_hilo.lex \ gedcom_lohi.lex \ gedcom_date.lex \ - gedcom_lex_common.c + gedcom_lex_common.c \ + $(BUILT_SOURCES) + +include $(top_srcdir)/Makefile.inc gedcom.tab.c gedcom.tab.h: gedcom.y $(YACC) $(YFLAGS) --name-prefix=gedcom_ $< @@ -70,10 +77,10 @@ lex.gedcom_lohi_.c: gedcom_lohi.lex lex.gedcom_date_.c: gedcom_date.lex $(LEX) $(LFLAGS) -Pgedcom_date_ $< -lex.gedcom_1byte_.c: gedcom.tab.h gedcom_lex_common.c -lex.gedcom_hilo_.c: gedcom.tab.h gedcom_lex_common.c -lex.gedcom_lohi_.c: gedcom.tab.h gedcom_lex_common.c -lex.gedcom_date_.c: gedcom_date.tab.h +lex.gedcom_1byte_.c: gedcom.tabgen.h gedcom_lex_common.c +lex.gedcom_hilo_.c: gedcom.tabgen.h gedcom_lex_common.c +lex.gedcom_lohi_.c: gedcom.tabgen.h gedcom_lex_common.c +lex.gedcom_date_.c: gedcom_date.tabgen.h # Lexer test programs