discover: Add PXE parser
[petitboot] / discover / Makefile.am
index 6ace4004a52b45c6346ffa9c4e14c0004855f477..ce8cff5b32b45e25a9c4a0bbe6153e229d9b82fc 100644 (file)
@@ -19,21 +19,32 @@ 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
+       paths.h \
+       resource.c \
+       resource.h \
+       kboot-parser.c \
+       grub2-parser.c \
+       yaboot-parser.c \
+       pxe-parser.c
+
+libparser.o: $(libparser_o_OBJECTS)
+       $(LD) -r -o $@ $^
+
+EXTRA_DIST = native-parser.c
 
-bin_PROGRAMS = pb-discover
+sbin_PROGRAMS = pb-discover
 
 pb_discover_SOURCES = \
+       boot.c \
+       boot.h \
        device-handler.c \
        device-handler.h \
        discover-server.c \
@@ -41,18 +52,17 @@ pb_discover_SOURCES = \
        event.c \
        event.h \
        event-parser.c \
-       kboot-parser.c \
-       message.h \
        params.c \
        params.h \
+       parser-utils.c \
+       parser-utils.h \
        pb-discover.c \
        pb-discover.h \
        udev.c \
        udev.h \
        user-event.c \
-       user-event.h \
-       yaboot-parser.c
-pb_discover_LDADD = libparser.la $(top_builddir)/lib/libpbcore.la
+       user-event.h
+
+pb_discover_LDADD = libparser.o $(top_builddir)/lib/libpbcore.la
 
-EXTRA_DIST = native-parser.c
 MAINTAINERCLEANFILES = Makefile.in