X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2FMakefile.am;h=8f682021d45ad898cd04785a0ec533c05816f75d;hp=5fc8911bd3f8988afbfc3f3725603974898dec9c;hb=b014b38f115dcc1b47e52f8b5f9eb219f75ef071;hpb=5d46b27435464c603340179bc2dbad45358f2d14 diff --git a/lib/Makefile.am b/lib/Makefile.am index 5fc8911..8f68202 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -12,38 +12,66 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -AUTOMAKE_OPTIONS = subdir-objects +core_lib = lib/libpbcore.la -AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS) \ +noinst_LTLIBRARIES += $(core_lib) + +lib_libpbcore_la_CPPFLAGS = \ + $(AM_CPPFLAGS) \ -DPREFIX='"$(prefix)"' -AM_CFLAGS = $(DEFAULT_CFLAGS) - -noinst_LTLIBRARIES = libpbcore.la - -libpbcore_la_SOURCES = \ - fold/fold.h \ - fold/fold.c \ - log/log.h \ - log/log.c \ - list/list.c \ - list/list.h \ - waiter/waiter.c \ - waiter/waiter.h \ - pb-protocol/pb-protocol.c \ - pb-protocol/pb-protocol.h \ - pb-config/pb-config.c \ - pb-config/pb-config.h \ - process/process.c \ - process/process.h \ - types/types.h \ - talloc/talloc.c \ - talloc/talloc.h \ - system/system.c \ - system/system.h \ - url/url.c \ - url/url.h \ - util/util.c \ - util/util.h - -MAINTAINERCLEANFILES = Makefile.in +if WITH_GPGME +gpg_int_SOURCES = lib/security/gpg.h \ + lib/security/gpg.c +else +gpg_int_SOURCES = +endif + +lib_libpbcore_la_SOURCES = \ + lib/ccan/endian/endian.h \ + lib/file/file.h \ + lib/file/file.c \ + lib/fold/fold.h \ + lib/fold/fold.c \ + lib/i18n/i18n.h \ + lib/i18n/i18n.c \ + lib/log/log.h \ + lib/log/log.c \ + lib/list/list.c \ + lib/list/list.h \ + lib/waiter/waiter.c \ + lib/waiter/waiter.h \ + lib/pb-protocol/pb-protocol.c \ + lib/pb-protocol/pb-protocol.h \ + lib/pb-config/pb-config.c \ + lib/pb-config/pb-config.h \ + lib/process/process.c \ + lib/process/process.h \ + lib/types/types.c \ + lib/types/types.h \ + lib/talloc/talloc.c \ + lib/talloc/talloc.h \ + lib/system/system.c \ + lib/system/system.h \ + lib/url/url.c \ + lib/url/url.h \ + lib/util/util.c \ + lib/util/util.h \ + lib/flash/config.h \ + lib/flash/flash.h \ + $(gpg_int_SOURCES) + +if ENABLE_MTD +lib_libpbcore_la_SOURCES += \ + lib/flash/flash.c + +lib_libpbcore_la_CPPFLAGS += \ + $(AM_CPPFLAGS) + +lib_libpbcore_la_LDFLAGS = \ + $(AM_LDFLAGS) \ + $(LIBFLASH_LIBS) + +lib_libpbcore_la_SOURCES += \ + lib/flash/flash.c +endif