X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/ca8ee16cfde42ea27d40f8e45fa6d96dc24cd5d9..557eccb32013460418b72bb20acd79c018a5e95a:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 128393a..f9224c3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,18 +1,24 @@ +# 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 = -DPKGLIBDIR=\"$(pkglibdir)\" -DPKGDATADIR=\"$(pkgdatadir)\" + lib_LTLIBRARIES = libupkg.la +pkglib_LTLIBRARIES = -libupkg_la_SOURCES = libupkg.c pack.c include_HEADERS = upkg.h -noinst_HEADERS = pack.h loadable.h exportable.h uobject.h module.h avl.h - -if BUILD_UPKG +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 avl.c module.c loadable.c exportable.c uobject.c -upkg_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \ - $(GLIB_CFLAGS) $(LTDLINCL) +upkg_SOURCES = upkg.c +upkg_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib $(GLIB_CFLAGS) upkg_LDFLAGS = -L$(top_builddir)/lib -export-dynamic -upkg_LDADD = libupkg.la $(LIBLTDL) $(GLIB_LIBS) -lgnu - -endif +upkg_LDADD = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu