summaryrefslogtreecommitdiffstats
path: root/discover/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'discover/Makefile.am')
-rw-r--r--discover/Makefile.am13
1 files changed, 10 insertions, 3 deletions
diff --git a/discover/Makefile.am b/discover/Makefile.am
index 0dc5e89..cd5c957 100644
--- a/discover/Makefile.am
+++ b/discover/Makefile.am
@@ -13,6 +13,7 @@
#
sbin_PROGRAMS += discover/pb-discover
+noinst_PROGRAMS += discover/platform.ro
discover_pb_discover_SOURCES = \
discover/boot.c \
@@ -39,9 +40,6 @@ discover_pb_discover_SOURCES = \
discover/paths.h \
discover/pb-discover.c \
discover/pb-discover.h \
- discover/platform.c \
- discover/platform.h \
- discover/platform-powerpc.c \
discover/resource.c \
discover/resource.h \
discover/sysinfo.c \
@@ -58,6 +56,7 @@ discover_pb_discover_SOURCES = \
discover_pb_discover_LDADD = \
discover/grub2/grub2-parser.ro \
+ discover/platform.ro \
$(core_lib) \
$(UDEV_LIBS)
@@ -69,5 +68,13 @@ discover_pb_discover_CPPFLAGS = \
-DPKG_SHARE_DIR='"$(pkgsharedir)"' \
-DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"'
+discover_platform_ro_SOURCES = \
+ discover/platform.c \
+ discover/platform.h \
+ discover/platform-powerpc.c
+
+discover_platform_ro_LINK = \
+ $(LD) -r -o $@
+
EXTRA_DIST += discover/native-parser.c
OpenPOWER on IntegriCloud