discover: Update udev routines to use libudev
[petitboot] / discover / Makefile.am
1 #  This program is free software; you can redistribute it and/or modify
2 #  it under the terms of the GNU General Public License as published by
3 #  the Free Software Foundation; version 2 of the License.
4 #
5 #  This program is distributed in the hope that it will be useful,
6 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8 #  GNU General Public License for more details.
9 #
10 #  You should have received a copy of the GNU General Public License
11 #  along with this program; if not, write to the Free Software
12 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
13 #
14
15 AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS)
16
17 AM_CFLAGS = $(DEFAULT_CFLAGS)  \
18         -DPREFIX='"$(prefix)"' \
19         -DPKG_SHARE_DIR='"$(pkgdatadir)"' \
20         -DLOCAL_STATE_DIR='"$(localstatedir)"'
21
22 noinst_LIBRARIES = libparser.o
23
24 libparser_o_SOURCES = \
25         parser.c \
26         parser.h \
27         parser-conf.c \
28         parser-conf.h \
29         paths.c \
30         paths.h \
31         resource.c \
32         resource.h \
33         kboot-parser.c \
34         grub2-parser.c \
35         yaboot-parser.c \
36         pxe-parser.c
37
38 libparser.o: $(libparser_o_OBJECTS)
39         $(LD) -r -o $@ $^
40
41 EXTRA_DIST = native-parser.c
42
43 sbin_PROGRAMS = pb-discover
44
45 pb_discover_SOURCES = \
46         boot.c \
47         boot.h \
48         device-handler.c \
49         device-handler.h \
50         discover-server.c \
51         discover-server.h \
52         event.c \
53         event.h \
54         event-parser.c \
55         params.c \
56         params.h \
57         parser-utils.c \
58         parser-utils.h \
59         pb-discover.c \
60         pb-discover.h \
61         udev.c \
62         udev.h \
63         user-event.c \
64         user-event.h
65
66 pb_discover_LDADD = libparser.o $(top_builddir)/lib/libpbcore.la
67
68 pb_discover_LDFLAGS = -ludev
69
70 MAINTAINERCLEANFILES = Makefile.in