summaryrefslogtreecommitdiff
path: root/src/murphy-db/mqi/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/murphy-db/mqi/Makefile.am')
-rw-r--r--src/murphy-db/mqi/Makefile.am34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/murphy-db/mqi/Makefile.am b/src/murphy-db/mqi/Makefile.am
new file mode 100644
index 0000000..99e848b
--- /dev/null
+++ b/src/murphy-db/mqi/Makefile.am
@@ -0,0 +1,34 @@
+pkglib_LTLIBRARIES = libmqi.la
+
+LINKER_SCRIPT = linker-script.mqi
+QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
+
+libmqi_la_CFLAGS = -I../include
+
+libmqi_ladir = \
+ $(includedir)/murphy-db
+
+libmqi_la_HEADERS = \
+ ../include/murphy-db/mqi.h
+
+libmqi_la_SOURCES = \
+ $(libmqi_ls_HEADERS) \
+ mqi.c db.h mdb-backend.h mdb-backend.c
+
+libmqi_la_LDFLAGS = \
+ -Wl,-version-script=$(LINKER_SCRIPT)
+# -version-info @MURPHYDB_VERSION_INFO@
+
+libmqi_la_DEPENDENCIES = $(LINKER_SCRIPT)
+
+# linker script generation
+$(LINKER_SCRIPT): $(libmqi_la_HEADERS)
+ $(QUIET_GEN)$(top_builddir)/build-aux/gen-linker-script -q \
+ -P "$(CC)" -c "$(libmqi_la_CFLAGS)" -p "^mqi_" -o $@ $^
+
+clean-$(LINKER_SCRIPT):
+ -rm -f $(LINKER_SCRIPT)
+
+# cleanup
+clean-local:: # clean-$(LINKER_SCRIPT)
+ rm -f *~