]> git.draconx.ca Git - upkg.git/blobdiff - src/Makefile.am
Minor fixes.
[upkg.git] / src / Makefile.am
index 2002c43b2efdb1c50b3fd3ec9d627263f490e600..80cbd2267837730f29204db89261e6796034400b 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
+noinst_HEADERS = pack.h exportable.h uobject.h module.h avl.h
 
-upkg_SOURCES = upkg.c
-upkg_LDADD = libupkg.la
+if BUILD_UPKG
+
+include engine/Makefile.inc
+
+bin_PROGRAMS  = upkg
+upkg_SOURCES  = upkg.c avl.c module.c exportable.c uobject.c
+upkg_CPPFLAGS = $(GLIB_CFLAGS) $(LTDLINCL)
+upkg_LDFLAGS  = -export-dynamic
+upkg_LDADD    = libupkg.la $(LIBLTDL) $(GLIB_LIBS)
+
+endif