Display VERSION partition info on BMC machines
[petitboot] / lib / Makefile.am
index a2421a52f498c0e69363c996eaa334d4dc4e0f7b..a3ae943861ba4f89f1b2230083e853f13800fbde 100644 (file)
@@ -48,4 +48,21 @@ 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
+
+if ENABLE_MTD
+lib_libpbcore_la_SOURCES += \
+       lib/flash/flash.c
+
+lib_libpbcore_la_CPPFLAGS += \
+       $(AM_CPPFLAGS)
+
+lib_libpbcore_la_LDFLAGS = \
+       $(AM_LDFLAGS) \
+       -l:libflash.so
+
+lib_libpbcore_la_SOURCES += \
+       lib/flash/flash.c
+endif