lib/file: remove mkstemp umask in copy_file_secure_dest
[petitboot] / lib / Makefile.am
index a3ae943861ba4f89f1b2230083e853f13800fbde..8f682021d45ad898cd04785a0ec533c05816f75d 100644 (file)
@@ -20,7 +20,15 @@ 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 \
@@ -50,7 +58,8 @@ lib_libpbcore_la_SOURCES = \
        lib/util/util.c \
        lib/util/util.h \
        lib/flash/config.h \
-       lib/flash/flash.h
+       lib/flash/flash.h \
+       $(gpg_int_SOURCES)
 
 if ENABLE_MTD
 lib_libpbcore_la_SOURCES += \
@@ -61,7 +70,7 @@ lib_libpbcore_la_CPPFLAGS += \
 
 lib_libpbcore_la_LDFLAGS = \
        $(AM_LDFLAGS) \
-       -l:libflash.so
+       $(LIBFLASH_LIBS)
 
 lib_libpbcore_la_SOURCES += \
        lib/flash/flash.c