]> git.ozlabs.org Git - petitboot/blob - discover/Makefile.am
lib: Add AUTH_MSG_DECRYPT
[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/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         discover/syslinux-parser.c
55
56 discover_pb_discover_LDADD = \
57         discover/grub2/grub2-parser.ro \
58         discover/native/native-parser.ro \
59         discover/platform.ro \
60         $(core_lib) \
61         $(UDEV_LIBS)
62
63 discover_pb_discover_LDFLAGS = \
64         $(AM_LDFLAGS) \
65         $(DEVMAPPER_LIBS)
66
67 discover_pb_discover_CPPFLAGS = \
68         $(AM_CPPFLAGS) \
69         -DLOCAL_STATE_DIR='"$(localstatedir)"' \
70         -DLOCALEDIR='"$(localedir)"' \
71         -DPKG_LIBEXEC_DIR='"$(pkglibexecdir)"' \
72         -DPKG_SHARE_DIR='"$(pkgsharedir)"' \
73         -DPKG_SYSCONF_DIR='"$(pkgsysconfdir)"'
74
75 discover_platform_ro_SOURCES = \
76         discover/platform.c \
77         discover/platform.h \
78         discover/ipmi.c \
79         discover/ipmi.h \
80         discover/dt.c \
81         discover/dt.h \
82         discover/hostboot.h
83
84 if PLATFORM_ARM64
85 discover_platform_ro_SOURCES += discover/platform-arm64.c
86 endif
87
88 if PLATFORM_POWERPC
89 discover_platform_ro_SOURCES += discover/platform-powerpc.c
90 endif
91
92 # Build dummy last to put it at the end of the platforms section.
93 discover_platform_ro_SOURCES += discover/platform-dummy.c
94
95 if ENABLE_MTD
96 discover_platform_ro_SOURCES += \
97         discover/hostboot.c
98
99 discover_platform_ro_LDFLAGS = \
100         $(core_lib) \
101         $(UDEV_LIBS)
102
103 endif
104
105 discover_platform_ro_CPPFLAGS = \
106         $(AM_CPPFLAGS)
107
108 discover_platform_ro_LINK = \
109         $(LD) -r -o $@