dtinfo/mmdb: redo the way this library is built

Specifically:

- use libtool so that the top level library contains the actual
  objects, and not just the sub-archives, which the linker will just
  ignore.
- create the source files via symlinks rather than referencing them
  with relative paths.  Doing it that way causes a 'make clean' to
  delete objects in DtMmdb/ which is wrong.
- fix up utility/ - it seemed to be building more source files than
  the original Imakefile listed.  Other changes may need to be done
  here if similar mistakes were made in other subdirs.
This commit is contained in:
Jon Trulson
2021-12-04 15:27:14 -07:00
parent b24fd04619
commit 97b2f86eba
22 changed files with 350 additions and 301 deletions

View File

@@ -1,9 +1,17 @@
MAINTAINERCLEANFILES= Makefile.in
noinst_LIBRARIES = libmisc.a
include $(top_srcdir)/programs/dtinfo/dtinfo/src/templates/dtinfo_env.mk
AUTOMAKE_OPTIONS = no-dependencies
BASE = ../../DtMmdb/misc
BUILT_SOURCES = unique_id.c
libmisc_a_CFLAGS = -DPORTABLE_DB
$(BUILT_SOURCES):
$(LN_S) $(BASE)/$@ $@
libmisc_a_SOURCES = ../../DtMmdb/misc/unique_id.c
CLEANFILES = $(BUILT_SOURCES)
noinst_LTLIBRARIES = libmisc.la
libmisc_la_CFLAGS = $(DTINFO_DEFINES) -DPORTABLE_DB -I$(BASE)
libmisc_la_SOURCES = $(BUILT_SOURCES)