X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/9d3cb178db367962f68521985ef9e239e1d03fa9..d2ff3349e261109e18d20cff1a236d3ac573ad58:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 8b35676..c2019c3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,15 +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 +noinst_HEADERS = pack.h -if BUILD_UPKG +include uobject/Makefile.inc +include engine/Makefile.inc -bin_PROGRAMS = upkg -upkg_SOURCES = upkg.c module.c exportable.c serializable.c music.c -upkg_CPPFLAGS = $(GLIB_CFLAGS) $(LTDLINCL) -upkg_LDFLAGS = $(GLIB_LIBS) -upkg_LDADD = libupkg.la $(LIBLTDL) +libupkg_la_SOURCES = libupkg.c pack.c -endif +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