discover: Update to reflect generic signed boot API
[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 sbin_PROGRAMS += discover/pb-discover
16 noinst_PROGRAMS += discover/platform.ro
17
18 discover_pb_discover_SOURCES = \
19         discover/boot.c \
20         discover/boot.h \
21         discover/cdrom.c \
22         discover/cdrom.h \
23         discover/device-handler.c \
24         discover/device-handler.h \
25         discover/discover-server.c \
26         discover/discover-server.h \
27         discover/devmapper.c \
28         discover/devmapper.h \
29         discover/event.c \
30         discover/event.h \
31         discover/params.c \
32         discover/params.h \
33         discover/parser.c \
34         discover/parser.h \
35         discover/parser-conf.c \
36         discover/parser-conf.h \
37         discover/parser-utils.c \
38         discover/parser-utils.h \
39         discover/paths.c \
40         discover/paths.h \
41         discover/pb-discover.c \
42         discover/pb-discover.h \
43         discover/resource.c \
44         discover/resource.h \
45         discover/sysinfo.c \
46         discover/sysinfo.h \
47         discover/network.c \
48         discover/network.h \
49         discover/udev.c \
50         discover/udev.h \
51         discover/user-event.c \
52         discover/user-event.h \
53         discover/kboot-parser.c \
54         discover/yaboot-parser.c \
55         discover/pxe-parser.c \
56         discover/syslinux-parser.c
57
58 discover_pb_discover_LDADD = \
59         discover/grub2/grub2-parser.ro \
60         discover/platform.ro \
61         $(core_lib) \
62         $(UDEV_LIBS)
63
64 discover_pb_discover_LDFLAGS = \
65         $(AM_LDFLAGS) \
66         $(DEVMAPPER_LIBS)
67
68 discover_pb_discover_CPPFLAGS = \
69         $(AM_CPPFLAGS) \
70         -DLOCAL_STATE_DIR='"$(localstatedir)"' \
71         -DLOCALEDIR='"$(localedir)"' \
72         -DPKG_LIBEXEC_DIR='"$(pkglibexecdir)"' \
73         -DPKG_SHARE_DIR='"$(pkgsharedir)"' \
74         -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"'
75
76 discover_platform_ro_SOURCES = \
77         discover/platform.c \
78         discover/platform.h \
79         discover/ipmi.c \
80         discover/ipmi.h \
81         discover/dt.c \
82         discover/dt.h \
83         discover/hostboot.h \
84         discover/platform-powerpc.c
85
86 discover_platform_ro_CPPFLAGS = \
87         $(AM_CPPFLAGS)
88
89 if ENABLE_MTD
90 discover_platform_ro_SOURCES += \
91         discover/hostboot.c
92
93 discover_platform_ro_LDFLAGS = \
94         $(core_lib) \
95         $(UDEV_LIBS)
96
97 endif
98
99 discover_platform_ro_LINK = \
100         $(LD) -r -o $@