summaryrefslogtreecommitdiffstats
path: root/discover/Makefile.am
blob: 4a6cbd094737a3b32ffd3205d844b4c08b0c0563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; version 2 of the License.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

sbin_PROGRAMS += discover/pb-discover
noinst_PROGRAMS += discover/platform.ro

discover_pb_discover_SOURCES = \
	discover/boot.c \
	discover/boot.h \
	discover/cdrom.c \
	discover/cdrom.h \
	discover/device-handler.c \
	discover/device-handler.h \
	discover/discover-server.c \
	discover/discover-server.h \
	discover/devmapper.c \
	discover/devmapper.h \
	discover/event.c \
	discover/event.h \
	discover/params.c \
	discover/params.h \
	discover/parser.c \
	discover/parser.h \
	discover/parser-conf.c \
	discover/parser-conf.h \
	discover/parser-utils.c \
	discover/parser-utils.h \
	discover/paths.c \
	discover/paths.h \
	discover/pb-discover.c \
	discover/pb-discover.h \
	discover/resource.c \
	discover/resource.h \
	discover/sysinfo.c \
	discover/sysinfo.h \
	discover/network.c \
	discover/network.h \
	discover/udev.c \
	discover/udev.h \
	discover/user-event.c \
	discover/user-event.h \
	discover/kboot-parser.c \
	discover/yaboot-parser.c \
	discover/pxe-parser.c

discover_pb_discover_LDADD = \
	discover/grub2/grub2-parser.ro \
	discover/platform.ro \
	$(core_lib) \
	$(UDEV_LIBS) \
	$(GPGME_LIBS)

discover_pb_discover_LDFLAGS = \
	$(AM_LDFLAGS) \
	$(DEVMAPPER_LIBS)

discover_pb_discover_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-DLOCAL_STATE_DIR='"$(localstatedir)"' \
	-DLOCALEDIR='"$(localedir)"' \
	-DPKG_LIBEXEC_DIR='"$(pkglibexecdir)"' \
	-DPKG_SHARE_DIR='"$(pkgsharedir)"' \
	-DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"'

discover_platform_ro_SOURCES = \
	discover/platform.c \
	discover/platform.h \
	discover/ipmi.c \
	discover/ipmi.h \
	discover/dt.c \
	discover/dt.h \
	discover/hostboot.h \
	discover/platform-powerpc.c

discover_platform_ro_CPPFLAGS = \
	$(AM_CPPFLAGS)

if ENABLE_MTD
discover_platform_ro_SOURCES += \
	discover/hostboot.c

discover_platform_ro_LDFLAGS = \
	$(core_lib) \
	$(UDEV_LIBS)

endif

discover_platform_ro_LINK = \
	$(LD) -r -o $@
OpenPOWER on IntegriCloud