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.
23 lines
520 B
Makefile
23 lines
520 B
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
include $(top_srcdir)/programs/dtinfo/dtinfo/src/templates/dtinfo_env.mk
|
|
|
|
BASE = ../../DtMmdb/api
|
|
BUILT_SOURCES = base.C info_base.C info_lib.C smart_ptr.C \
|
|
transaction.C utility.C
|
|
|
|
$(BUILT_SOURCES):
|
|
$(LN_S) $(BASE)/$@ $@
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
noinst_LTLIBRARIES = libapi.la
|
|
|
|
libapi_la_CXXFLAGS = $(DTINFO_DEFINES) -I../../DtMmdb -I../../DtMmdb/misc \
|
|
-I../../DtMmdb/dti_excs -I$(BASE) $(DTINFO_DEFINES)
|
|
|
|
libapi_la_SOURCES = $(BUILT_SOURCES)
|
|
|
|
|
|
|