]> git.ozlabs.org Git - petitboot/blobdiff - lib/Makefile.am
discover: Track both configured and current autoboot settings
[petitboot] / lib / Makefile.am
index fb251479209abcbbb58ec2b41c5628cb23cd51fd..bb7dfe489132c0493389a1826f70e05f83e08850 100644 (file)
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
 
-AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS) \
+core_lib = lib/libpbcore.la
+
+noinst_LTLIBRARIES += $(core_lib)
+
+lib_libpbcore_la_CPPFLAGS = \
+       $(AM_CPPFLAGS) \
        -DPREFIX='"$(prefix)"'
 
-AM_CFLAGS = $(DEFAULT_CFLAGS)
-
-noinst_LTLIBRARIES = libpbcore.la
-
-libpbcore_la_SOURCES = \
-       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 \
-       pb-config/storage.h \
-       pb-config/storage-powerpc-nvram.c \
-       pb-config/storage-null.c \
-       pb-config/storage-test.c \
-       types/types.h \
-       talloc/talloc.c \
-       talloc/talloc.h \
-       system/system.c \
-       system/system.h \
-       url/url.c \
-       url/url.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/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