log: Allow runtime selection of 'debug' log level
[petitboot] / discover / Makefile.am
index fc9336eac2ba6f9fe47f74146a97294ee22be4c4..5d5f5b42787df172e5804f6c08678f1ac512bd88 100644 (file)
 
 pkgsysconfdir = @sysconfdir@/@PACKAGE@
 
+SUBDIRS = grub2
+
 AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS)
 
 AM_CFLAGS = $(DEFAULT_CFLAGS)  \
        -DPREFIX='"$(prefix)"' \
        -DPKG_SHARE_DIR='"$(pkgdatadir)"' \
        -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"' \
+       -DPKG_LIBEXEC_DIR='"$(pkglibexecdir)"' \
        -DLOCAL_STATE_DIR='"$(localstatedir)"'
 
-noinst_PROGRAMS = libparser.ro
-
-libparser_ro_SOURCES = \
-       parser.c \
-       parser.h \
-       parser-conf.c \
-       parser-conf.h \
-       paths.c \
-       paths.h \
-       resource.c \
-       resource.h \
-       kboot-parser.c \
-       grub2-parser.c \
-       yaboot-parser.c \
-       pxe-parser.c
-
-libparser.ro$(EXEEXT): $(libparser_ro_OBJECTS)
-       $(LD) -r -o $@ $^
-
 EXTRA_DIST = native-parser.c
 
 sbin_PROGRAMS = pb-discover
@@ -48,27 +32,46 @@ sbin_PROGRAMS = pb-discover
 pb_discover_SOURCES = \
        boot.c \
        boot.h \
+       cdrom.c \
+       cdrom.h \
        device-handler.c \
        device-handler.h \
        discover-server.c \
        discover-server.h \
        event.c \
        event.h \
-       event-parser.c \
+       file.c \
+       file.h \
        params.c \
        params.h \
+       parser.c \
+       parser.h \
+       parser-conf.c \
+       parser-conf.h \
        parser-utils.c \
        parser-utils.h \
+       paths.c \
+       paths.h \
        pb-discover.c \
        pb-discover.h \
+       platform.c \
+       platform.h \
+       platform-powerpc.c \
+       resource.c \
+       resource.h \
+       sysinfo.c \
+       sysinfo.h \
        network.c \
        network.h \
        udev.c \
        udev.h \
        user-event.c \
-       user-event.h
+       user-event.h \
+       kboot-parser.c \
+       yaboot-parser.c \
+       pxe-parser.c
 
-pb_discover_LDADD = libparser.ro $(top_builddir)/lib/libpbcore.la
+pb_discover_LDADD = $(top_builddir)/lib/libpbcore.la grub2/grub2-parser.ro
 
 pb_discover_LDFLAGS = -ludev