1 # Copyright (C) 2009 Nick Bowler
2 # Copying and distribution of this file, with or without modification,
3 # are permitted in any medium without royalty provided the copyright
4 # notice and this notice are preserved. This file is offered as-is,
5 # without any warranty.
7 AM_CPPFLAGS = -DPKGLIBDIR=\"$(pkglibdir)\" -DPKGDATADIR=\"$(pkgdatadir)\"
9 lib_LTLIBRARIES = libuobject.la libupkg.la
12 include_HEADERS = upkg.h
13 noinst_HEADERS = pack.h avl.h
15 include uobject/Makefile.inc
16 include engine/Makefile.inc
18 libuobject_la_SOURCES = uobject.c module.c avl.c package.c \
19 loadable.c exportable.c
20 libuobject_la_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(LTDLINCL)
21 libuobject_la_LIBADD = $(LIBLTDL) $(GLIB_LIBS)
22 libuobject_la_LDFLAGS = -export-symbols-regex '^u_'
24 libupkg_la_SOURCES = libupkg.c pack.c
28 upkg_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib $(GLIB_CFLAGS)
29 upkg_LDFLAGS = -L$(top_builddir)/lib -export-dynamic
30 upkg_LDADD = libuobject.la libupkg.la $(GLIB_LIBS) -lgnu