Display VERSION partition info on BMC machines
[petitboot] / lib / Makefile.am
index cce05fe6b3b218ab505840c3afe48a4f21936b13..a3ae943861ba4f89f1b2230083e853f13800fbde 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 \
-       types/types.h \
-       talloc/talloc.c \
-       talloc/talloc.h \
-       system/system.c \
-       system/system.h \
-       url/url.c \
-       url/url.h
-
-MAINTAINERCLEANFILES = Makefile.in
+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
+
+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