discover: Use pxeconffile for udhcpc option name
[petitboot] / discover / Makefile.am
index 829270aa489d1a4d48085ae35dd757e429d47f04..2a7885d7c7c1ebb379578766a579ec21b9f8c5cc 100644 (file)
 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 #
 
+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_LTLIBRARIES = libparser.la
-
-libparser_la_SOURCES = \
-       parser.c \
-       parser.h \
-       parser-conf.c \
-       parser-conf.h \
-       parser-utils.c \
-       parser-utils.h \
-       paths.c \
-       paths.h \
-       kboot-parser.c \
-       grub2-parser.c \
-       yaboot-parser.c
-
 EXTRA_DIST = native-parser.c
 
-libparser_la_LIBADD = $(top_builddir)/lib/libpbcore.la
-
 sbin_PROGRAMS = pb-discover
 
 pb_discover_SOURCES = \
+       boot.c \
+       boot.h \
        device-handler.c \
        device-handler.h \
        discover-server.c \
        discover-server.h \
        event.c \
        event.h \
-       event-parser.c \
-       message.h \
+       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 \
+       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 = $(top_builddir)/lib/libpbcore.la grub2/grub2-parser.ro
 
-pb_discover_LDADD = libparser.la $(top_builddir)/lib/libpbcore.la
+pb_discover_LDFLAGS = -ludev
 
 MAINTAINERCLEANFILES = Makefile.in