]> git.draconx.ca Git - upkg.git/blobdiff - src/Makefile.am
upkg: Add support for controlling which package is acted upon.
[upkg.git] / src / Makefile.am
index a631216889c729a90bd7bde089d7cef5b0e1a49c..c2019c3add50d8deb2b4b47ba8cc57bc46f86894 100644 (file)
@@ -1,13 +1,25 @@
+# Copyright (C) 2009 Nick Bowler
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.  This file is offered as-is,
+# without any warranty.
+
+AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib
+AM_LDFLAGS  = -L$(top_builddir)/lib
+
 lib_LTLIBRARIES = libupkg.la
+pkglib_LTLIBRARIES =
 
-libupkg_la_SOURCES = libupkg.c pack.c
 include_HEADERS = upkg.h
-noinst_HEADERS = pack.h
-
-if BUILD_UPKG
-bin_PROGRAMS = upkg
-upkg_SOURCES = upkg.c exportable.c serializable.c music.c
-upkg_CFLAGS  = $(GLIB_CFLAGS)
-upkg_LDFLAGS = $(GLIB_LIBS)
-upkg_LDADD = libupkg.la
-endif
+noinst_HEADERS  = pack.h
+
+include uobject/Makefile.inc
+include engine/Makefile.inc
+
+libupkg_la_SOURCES = libupkg.c pack.c
+
+bin_PROGRAMS  = upkg
+upkg_SOURCES  = upkg.c
+upkg_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
+upkg_LDFLAGS  = $(AM_LDFLAGS) -export-dynamic
+upkg_LDADD    = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu