discover: Add ipmi module
[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/event.c \
28         discover/event.h \
29         discover/params.c \
30         discover/params.h \
31         discover/parser.c \
32         discover/parser.h \
33         discover/parser-conf.c \
34         discover/parser-conf.h \
35         discover/parser-utils.c \
36         discover/parser-utils.h \
37         discover/paths.c \
38         discover/paths.h \
39         discover/pb-discover.c \
40         discover/pb-discover.h \
41         discover/resource.c \
42         discover/resource.h \
43         discover/sysinfo.c \
44         discover/sysinfo.h \
45         discover/network.c \
46         discover/network.h \
47         discover/udev.c \
48         discover/udev.h \
49         discover/user-event.c \
50         discover/user-event.h \
51         discover/kboot-parser.c \
52         discover/yaboot-parser.c \
53         discover/pxe-parser.c
54
55 discover_pb_discover_LDADD = \
56         discover/grub2/grub2-parser.ro \
57         discover/platform.ro \
58         $(core_lib) \
59         $(UDEV_LIBS)
60
61 discover_pb_discover_CPPFLAGS = \
62         $(AM_CPPFLAGS) \
63         -DLOCAL_STATE_DIR='"$(localstatedir)"' \
64         -DLOCALEDIR='"$(localedir)"' \
65         -DPKG_LIBEXEC_DIR='"$(pkglibexecdir)"' \
66         -DPKG_SHARE_DIR='"$(pkgsharedir)"' \
67         -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"'
68
69 discover_platform_ro_SOURCES = \
70         discover/platform.c \
71         discover/platform.h \
72         discover/ipmi.c \
73         discover/ipmi.h \
74         discover/platform-powerpc.c
75
76 discover_platform_ro_LINK = \
77         $(LD) -r -o $@