X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2FMakefile.am;h=01c6cc57a551e0e749b7c5d2ecf6bb436ffa0302;hb=877a1cc77630b041a5d5a599d5d9c0f9a5443d62;hp=fb1ac396fb14c7ba025ec268163d8ef2cfc183a3;hpb=61ebfe7d27af78ad4c51e9da470433acd5c15bea;p=gedcom-parse.git diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am index fb1ac39..01c6cc5 100644 --- a/gedcom/Makefile.am +++ b/gedcom/Makefile.am @@ -5,11 +5,12 @@ SUBDIRS = calendar . localedir = $(datadir)/locale -INCLUDES = -I $(srcdir)/../intl -I $(srcdir)/../include -I $(srcdir)/calendar \ +INCLUDES = -I$(srcdir)/../intl -I$(srcdir)/../include -I$(srcdir)/calendar \ + -I$(srcdir)/../utf8 \ -DPKGDATADIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" YFLAGS = --debug --defines LFLAGS = -8 -CFLAGS = -g -O2 -W -Wall -pedantic +CFLAGS = -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ lib_LTLIBRARIES = libgedcom.la libgedcom_la_SOURCES = lex.gedcom_1byte_.c \ @@ -24,31 +25,49 @@ libgedcom_la_SOURCES = lex.gedcom_1byte_.c \ interface.c \ date.c \ hash.c \ - xref.c -libgedcom_la_LDFLAGS = -version-info $(LIBVERSION) -libgedcom_la_LIBADD = calendar/libcalendar.la + xref.c \ + age.c \ + compat.c \ + buffer.c \ + write.c +libgedcom_la_LDFLAGS = -export-dynamic -version-info $(LIBVERSION) +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 \ + tag_names.h noinst_HEADERS = encoding.h \ gedcom_internal.h \ interface.h \ multilex.h \ date.h \ hash.h \ - xref.h + xref.h \ + age.h \ + compat.h \ + buffer.h \ + tag_data.h EXTRA_DIST = gedcom.y \ gedcom_date.y \ gedcom_1byte.lex \ gedcom_hilo.lex \ gedcom_lohi.lex \ gedcom_date.lex \ - gedcom_lex_common.c + gedcom_lex_common.c \ + gedcom.tabgen.h \ + gedcom_date.tabgen.h \ + tag_names.h \ + process_tags + $(BUILT_SOURCES) + +include $(top_srcdir)/Makefile.inc gedcom.tab.c gedcom.tab.h: gedcom.y $(YACC) $(YFLAGS) --name-prefix=gedcom_ $< @@ -68,10 +87,14 @@ 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 +tag_names.h: $(srcdir)/gedcom.tabgen.h process_tags + srcdir=$(srcdir); export srcdir; \ + perl $(srcdir)/process_tags + +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