From 434a6c9c100bc8daca1e6c41137f993d88f20fe3 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Sun, 30 Jun 2013 13:45:58 -0700 Subject: discover: Fix automake warnings Change the Makfile.am relocatable output files from automake _LIBRARIES to automake _PROGRAMS. Also, change the output file name extension from .o to .ro to better show these are relocatable files. Fixes automake warnings like these: discover/Makefile.am: `libparser.o' is not a standard library name discover/Makefile.am: did you mean `libparser.a'? Signed-off-by: Geoff Levand --- discover/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'discover/Makefile.am') diff --git a/discover/Makefile.am b/discover/Makefile.am index 0feb3e5..d4fe722 100644 --- a/discover/Makefile.am +++ b/discover/Makefile.am @@ -22,9 +22,9 @@ AM_CFLAGS = $(DEFAULT_CFLAGS) \ -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"' \ -DLOCAL_STATE_DIR='"$(localstatedir)"' -noinst_LIBRARIES = libparser.o +noinst_PROGRAMS = libparser.ro -libparser_o_SOURCES = \ +libparser_ro_SOURCES = \ parser.c \ parser.h \ parser-conf.c \ @@ -38,7 +38,7 @@ libparser_o_SOURCES = \ yaboot-parser.c \ pxe-parser.c -libparser.o: $(libparser_o_OBJECTS) +libparser.ro: $(libparser_ro_OBJECTS) $(LD) -r -o $@ $^ EXTRA_DIST = native-parser.c @@ -68,7 +68,7 @@ pb_discover_SOURCES = \ user-event.c \ user-event.h -pb_discover_LDADD = libparser.o $(top_builddir)/lib/libpbcore.la +pb_discover_LDADD = libparser.ro $(top_builddir)/lib/libpbcore.la pb_discover_LDFLAGS = -ludev -- cgit v1.2.1