X-Git-Url: https://git.draconx.ca/gitweb/upkg.git/blobdiff_plain/382855dd3f69cdce3e3b4eb6da392f881e7825da..a6f1f69cc4874e2f2f878289bfc0f677220dfda9:/src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am index 95e7082..128393a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,12 +2,17 @@ lib_LTLIBRARIES = libupkg.la libupkg_la_SOURCES = libupkg.c pack.c include_HEADERS = upkg.h -noinst_HEADERS = pack.h +noinst_HEADERS = pack.h loadable.h exportable.h uobject.h module.h avl.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 $(LIBLTDL) + +include engine/Makefile.inc + +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_LDFLAGS = -L$(top_builddir)/lib -export-dynamic +upkg_LDADD = libupkg.la $(LIBLTDL) $(GLIB_LIBS) -lgnu + endif