X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/109a6cdf134bce9390c96cbb77531ec4f7eca08e..d42028c588b512b26c3c4fea718cffcab602b74c:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 80cbd22..719a952 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,17 +1,30 @@ -lib_LTLIBRARIES = libupkg.la +# 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. -libupkg_la_SOURCES = libupkg.c pack.c -include_HEADERS = upkg.h -noinst_HEADERS = pack.h exportable.h uobject.h module.h avl.h +AM_CPPFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\" -DPKGDATADIR=\"$(pkgdatadir)\" -if BUILD_UPKG +lib_LTLIBRARIES = libuobject.la libupkg.la +pkglib_LTLIBRARIES = + +include_HEADERS = upkg.h +noinst_HEADERS = pack.h avl.h +include uobject/Makefile.inc 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) +libuobject_la_SOURCES = uobject.c module.c avl.c package.c \ + loadable.c exportable.c +libuobject_la_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(LTDLINCL) +libuobject_la_LIBADD = $(LIBLTDL) $(GLIB_LIBS) +libuobject_la_LDFLAGS = -export-symbols-regex '^u_' + +libupkg_la_SOURCES = libupkg.c pack.c -endif +bin_PROGRAMS = upkg +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 = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu