]> git.draconx.ca Git - upkg.git/blobdiff - src/Makefile.am
Implement dynamic loading of modules.
[upkg.git] / src / Makefile.am
index 2002c43b2efdb1c50b3fd3ec9d627263f490e600..436203e3f6ecf0d04f914d6a7f49ea987f2dd823 100644 (file)
@@ -1,9 +1,17 @@
 lib_LTLIBRARIES = libupkg.la
-bin_PROGRAMS = upkg
 
 libupkg_la_SOURCES = libupkg.c pack.c
 include_HEADERS = upkg.h
 noinst_HEADERS = pack.h
 
-upkg_SOURCES = upkg.c
-upkg_LDADD = libupkg.la
+if BUILD_UPKG
+
+include engine/Makefile.inc
+
+bin_PROGRAMS  = upkg
+upkg_SOURCES  = upkg.c module.c exportable.c serializable.c
+upkg_CPPFLAGS = $(GLIB_CFLAGS) $(LTDLINCL)
+upkg_LDFLAGS  = $(GLIB_LIBS) -export-dynamic
+upkg_LDADD    = libupkg.la $(LIBLTDL)
+
+endif