| 1 |
## Process this file with automake to produce Makefile.in |
| 2 |
## (configure will process the resulting Makefile.in to produce Makefile) |
| 3 |
|
| 4 |
# AUTOMAKE_OPTIONS = no-dependencies |
| 5 |
|
| 6 |
# what are we going to build? |
| 7 |
bin_PROGRAMS = btedit dbverify |
| 8 |
|
| 9 |
# what goes into btedit and dbverify? |
| 10 |
btedit_SOURCES = btedit.c wprintf.c |
| 11 |
dbverify_SOURCES = dbverify.c wprintf.c |
| 12 |
|
| 13 |
# what libraries to btedit and dbverify need? |
| 14 |
btedit_LDADD = ../btree/libbtree.a ../stdlib/libstdlib.a \ |
| 15 |
@LIBINTL@ @LIBICONV@ |
| 16 |
dbverify_LDADD = ../gedlib/libgedcom.a ../btree/libbtree.a \ |
| 17 |
../stdlib/libstdlib.a ../arch/libarch.a \ |
| 18 |
@LIBINTL@ @LIBICONV@ |
| 19 |
|
| 20 |
# 2002.06.29 Perry commented these out -- we don't need them I think |
| 21 |
# how do btedit and dbverify get built? |
| 22 |
# (this is set up explicitly so they don't get $(LIBS) (no curses!) |
| 23 |
# btedit$(EXEEXT): $(btedit_OBJECTS) $(btedit_DEPENDENCIES) |
| 24 |
# @rm -f btedit$(EXEEXT) |
| 25 |
# $(LINK) $(btedit_LDFLAGS) $(btedit_OBJECTS) $(btedit_LDADD) |
| 26 |
# |
| 27 |
#dbverify$(EXEEXT): $(dbverify_OBJECTS) $(dbverify_DEPENDENCIES) |
| 28 |
# @rm -f dbverify$(EXEEXT) |
| 29 |
# $(LINK) $(dbverify_LDFLAGS) $(dbverify_OBJECTS) $(dbverify_LDADD) |
| 30 |
|
| 31 |
# $(top_builddir) for config.h |
| 32 |
# $(top_srcdir)/intl for intl headers |
| 33 |
# $(top_builddir)/intl for generated libintl.h |
| 34 |
# $(top_srcdir)/src/hdrs for headers |
| 35 |
INCLUDES=-I$(top_builddir) -I$(top_srcdir)/intl -I$(top_builddir)/intl -I$(top_srcdir)/src/hdrs |
| 36 |
|
| 37 |
# Stuff for gettext (copied from gnu hello-1.3.35) |
| 38 |
localedir = $(datadir)/locale |
| 39 |
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ |
| 40 |
# End stuff for gettext |
| 41 |
|
| 42 |
# these dependencies are so that building parts ('make btedit' or 'make |
| 43 |
# lines') will work |
| 44 |
|
| 45 |
../btree/libbtree.a : |
| 46 |
$(MAKE) -C ../btree libbtree.a |
| 47 |
|
| 48 |
../stdlib/libstdlib.a : |
| 49 |
$(MAKE) -C ../stdlib libstdlib.a |
| 50 |
|
| 51 |
../gedlib/libgedcom.a : |
| 52 |
$(MAKE) -C ../gedlib libgedcom.a |
| 53 |
|
| 54 |
# since we're not doing dependencies automagically... |
| 55 |
btedit.o: ../hdrs/standard.h ../hdrs/mystring.h ../hdrs/btree.h |
| 56 |
dbverify.o: ../hdrs/standard.h ../hdrs/btree.h ../hdrs/gedcom.h |