dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to using Makefile.inc (GNU make is used anyway).
[gedcom-parse.git]
/
gedcom
/
Makefile.am
diff --git
a/gedcom/Makefile.am
b/gedcom/Makefile.am
index 9bd55c15051920888781e6f3dd64e8cb806f5994..7a46ae8bbe76d590a6280d4a89d7a4f0babd8dca 100644
(file)
--- 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
-DPKGDATADIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\"
YFLAGS = --debug --defines
LFLAGS = -8
-CFLAGS = -g -O2 -W -Wall -pedantic
+CFLAGS = -g -O2 -W -Wall -pedantic
-Wno-long-long
lib_LTLIBRARIES = libgedcom.la
libgedcom_la_SOURCES = lex.gedcom_1byte_.c \
lib_LTLIBRARIES = libgedcom.la
libgedcom_la_SOURCES = lex.gedcom_1byte_.c \
@@
-25,8
+25,9
@@
libgedcom_la_SOURCES = lex.gedcom_1byte_.c \
date.c \
hash.c \
xref.c \
date.c \
hash.c \
xref.c \
+ age.c \
compat.c
compat.c
-libgedcom_la_LDFLAGS = -
version-info $(LIBVERSION
)
+libgedcom_la_LDFLAGS = -
export-dynamic -version-info $(LIBVERSION) $(LIBICONV
)
libgedcom_la_LIBADD = calendar/libcalendar.la
BUILT_SOURCES = lex.gedcom_1byte_.c \
lex.gedcom_hilo_.c \
libgedcom_la_LIBADD = calendar/libcalendar.la
BUILT_SOURCES = lex.gedcom_1byte_.c \
lex.gedcom_hilo_.c \
@@
-45,6
+46,7
@@
noinst_HEADERS = encoding.h \
date.h \
hash.h \
xref.h \
date.h \
hash.h \
xref.h \
+ age.h \
compat.h
EXTRA_DIST = gedcom.y \
gedcom_date.y \
compat.h
EXTRA_DIST = gedcom.y \
gedcom_date.y \
@@
-54,8
+56,6
@@
EXTRA_DIST = gedcom.y \
gedcom_date.lex \
gedcom_lex_common.c
gedcom_date.lex \
gedcom_lex_common.c
-include $(top_srcdir)/Makefile.inc
-
gedcom.tab.c gedcom.tab.h: gedcom.y
$(YACC) $(YFLAGS) --name-prefix=gedcom_ $<
gedcom.tab.c gedcom.tab.h: gedcom.y
$(YACC) $(YFLAGS) --name-prefix=gedcom_ $<
@@
-98,3
+98,14
@@
lex.gedcom_lohi_.test.o: lex.gedcom_lohi_.c
clean-local:
rm -f $(EXTRA_PROGRAMS)
clean-local:
rm -f $(EXTRA_PROGRAMS)
+
+%.tabgen.h: %.tab.h
+ if [ ! -r $(srcdir)/$@ ] ; \
+ then \
+ touch $(srcdir)/$@; \
+ fi
+ if ! diff -q $< $(srcdir)/$@ > /dev/null; \
+ then \
+ rm $(srcdir)/$@; \
+ cp $(srcdir)/$< $(srcdir)/$@; \
+ fi