]> git.ozlabs.org Git - petitboot/blob - discover/Makefile.am
Add pkgsysconfdir
[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 pkgsysconfdir = @sysconfdir@/@PACKAGE@
16
17 AM_CPPFLAGS = -I$(top_srcdir)/lib $(DEFAULT_CPPFLAGS)
18
19 AM_CFLAGS = $(DEFAULT_CFLAGS)  \
20         -DPREFIX='"$(prefix)"' \
21         -DPKG_SHARE_DIR='"$(pkgdatadir)"' \
22         -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"' \
23         -DLOCAL_STATE_DIR='"$(localstatedir)"'
24
25 noinst_LIBRARIES = libparser.o
26
27 libparser_o_SOURCES = \
28         parser.c \
29         parser.h \
30         parser-conf.c \
31         parser-conf.h \
32         paths.c \
33         paths.h \
34         resource.c \
35         resource.h \
36         kboot-parser.c \
37         grub2-parser.c \
38         yaboot-parser.c \
39         pxe-parser.c
40
41 libparser.o: $(libparser_o_OBJECTS)
42         $(LD) -r -o $@ $^
43
44 EXTRA_DIST = native-parser.c
45
46 sbin_PROGRAMS = pb-discover
47
48 pb_discover_SOURCES = \
49         boot.c \
50         boot.h \
51         device-handler.c \
52         device-handler.h \
53         discover-server.c \
54         discover-server.h \
55         event.c \
56         event.h \
57         event-parser.c \
58         params.c \
59         params.h \
60         parser-utils.c \
61         parser-utils.h \
62         pb-discover.c \
63         pb-discover.h \
64         network.c \
65         network.h \
66         udev.c \
67         udev.h \
68         user-event.c \
69         user-event.h
70
71 pb_discover_LDADD = libparser.o $(top_builddir)/lib/libpbcore.la
72
73 pb_discover_LDFLAGS = -ludev
74
75 MAINTAINERCLEANFILES = Makefile.in