]> git.ozlabs.org Git - petitboot/commitdiff
discover: Fix automake warnings
authorGeoff Levand <geoff@infradead.org>
Sun, 30 Jun 2013 20:45:58 +0000 (13:45 -0700)
committerGeoff Levand <geoff@infradead.org>
Sun, 30 Jun 2013 20:45:58 +0000 (13:45 -0700)
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 <geoff@infradead.org>
discover/Makefile.am
test/parser/Makefile.am

index 0feb3e5a000d77c47dae0f792006dcd6ad0c8912..d4fe72221f5ac1cfba888c34912ed59c7b11c63e 100644 (file)
@@ -22,9 +22,9 @@ AM_CFLAGS = $(DEFAULT_CFLAGS)  \
        -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"' \
        -DLOCAL_STATE_DIR='"$(localstatedir)"'
 
        -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 \
        parser.c \
        parser.h \
        parser-conf.c \
@@ -38,7 +38,7 @@ libparser_o_SOURCES = \
        yaboot-parser.c \
        pxe-parser.c
 
        yaboot-parser.c \
        pxe-parser.c
 
-libparser.o: $(libparser_o_OBJECTS)
+libparser.ro: $(libparser_ro_OBJECTS)
        $(LD) -r -o $@ $^
 
 EXTRA_DIST = native-parser.c
        $(LD) -r -o $@ $^
 
 EXTRA_DIST = native-parser.c
@@ -68,7 +68,7 @@ pb_discover_SOURCES = \
        user-event.c \
        user-event.h
 
        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
 
 
 pb_discover_LDFLAGS = -ludev
 
index e5c32cface37179cf489e5313d72571ba197a559..5dba679f682bf39c582bdce98f349cad02adf871 100644 (file)
@@ -23,7 +23,7 @@ AM_CPPFLAGS = \
 
 AM_CFLAGS = -O0 -ggdb -Wall -Wextra -Werror
 
 
 AM_CFLAGS = -O0 -ggdb -Wall -Wextra -Werror
 
-LDADD = $(top_builddir)/lib/libpbcore.la libtest.o
+LDADD = $(top_builddir)/lib/libpbcore.la libtest.ro
 
 TESTS = \
        test-null \
 
 TESTS = \
        test-null \
@@ -54,18 +54,17 @@ parser_objs = \
        $(top_srcdir)/discover/device-handler.c \
        $(top_srcdir)/discover/parser-conf.c
 
        $(top_srcdir)/discover/device-handler.c \
        $(top_srcdir)/discover/parser-conf.c
 
-libtest_o_SOURCES = \
+libtest_ro_SOURCES = \
        main.c \
        utils.c \
        handler.c \
        parser-test.h \
        $(parser_objs)
 
        main.c \
        utils.c \
        handler.c \
        parser-test.h \
        $(parser_objs)
 
-libtest.o: $(libtest_o_OBJECTS)
+libtest.ro: $(libtest_ro_OBJECTS)
        $(LD) -o $@ -r $^
 
        $(LD) -o $@ -r $^
 
-check_PROGRAMS = $(TESTS)
-check_LIBRARIES = libtest.o
+check_PROGRAMS = $(TESTS) libtest.ro
 
 check_DATA = \
        data/grub2-f18-ppc64.conf \
 
 check_DATA = \
        data/grub2-f18-ppc64.conf \