discover: Add PXE parser
[petitboot] / discover / Makefile.am
index a85885554eb7b099a8a9c24d93b757b1cf6e4d87..ce8cff5b32b45e25a9c4a0bbe6153e229d9b82fc 100644 (file)
@@ -19,24 +19,26 @@ AM_CFLAGS = $(DEFAULT_CFLAGS)  \
        -DPKG_SHARE_DIR='"$(pkgdatadir)"' \
        -DLOCAL_STATE_DIR='"$(localstatedir)"'
 
-noinst_LTLIBRARIES = libparser.la
+noinst_LIBRARIES = libparser.o
 
-libparser_la_SOURCES = \
+libparser_o_SOURCES = \
        parser.c \
        parser.h \
        parser-conf.c \
        parser-conf.h \
-       parser-utils.c \
-       parser-utils.h \
        paths.c \
        paths.h \
+       resource.c \
+       resource.h \
        kboot-parser.c \
        grub2-parser.c \
-       yaboot-parser.c
+       yaboot-parser.c \
+       pxe-parser.c
 
-EXTRA_DIST = native-parser.c
+libparser.o: $(libparser_o_OBJECTS)
+       $(LD) -r -o $@ $^
 
-libparser_la_LIBADD = $(top_builddir)/lib/libpbcore.la
+EXTRA_DIST = native-parser.c
 
 sbin_PROGRAMS = pb-discover
 
@@ -52,14 +54,15 @@ pb_discover_SOURCES = \
        event-parser.c \
        params.c \
        params.h \
+       parser-utils.c \
+       parser-utils.h \
        pb-discover.c \
        pb-discover.h \
-       resource.h \
        udev.c \
        udev.h \
        user-event.c \
        user-event.h
 
-pb_discover_LDADD = libparser.la $(top_builddir)/lib/libpbcore.la
+pb_discover_LDADD = libparser.o $(top_builddir)/lib/libpbcore.la
 
 MAINTAINERCLEANFILES = Makefile.in