discover/syslinux-parser: clean up boot option list entries
[petitboot] / lib / Makefile.am
index fbf2ee2db9371b64dc49a5fefb32b1741dbb4978..8f682021d45ad898cd04785a0ec533c05816f75d 100644 (file)
@@ -20,12 +20,21 @@ lib_libpbcore_la_CPPFLAGS = \
        $(AM_CPPFLAGS) \
        -DPREFIX='"$(prefix)"'
 
+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 \
@@ -38,6 +47,7 @@ lib_libpbcore_la_SOURCES = \
        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 \
@@ -46,4 +56,22 @@ lib_libpbcore_la_SOURCES = \
        lib/url/url.c \
        lib/url/url.h \
        lib/util/util.c \
-       lib/util/util.h
+       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