-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
sbin_PROGRAMS = pb-discover
pb_discover_SOURCES = \
+ boot.c \
+ boot.h \
device-handler.c \
device-handler.h \
discover-server.c \
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
+
+pb_discover_LDFLAGS = -ludev
-EXTRA_DIST = native-parser.c
MAINTAINERCLEANFILES = Makefile.in