-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
159 lines (125 loc) · 4.09 KB
/
Makefile.am
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
ACLOCAL_AMFLAGS = -I m4
noinst_HEADERS =
sbin_PROGRAMS =
EXTRA_DIST =
docdir = $(datadir)/doc/packages/@PACKAGE@
doc_DATA = README COPYRIGHT
bin_SCRIPTS = scripts/amsstat
sbin_SCRIPTS = \
scripts/update_flash \
scripts/update_flash_nv \
scripts/hvcsadmin \
scripts/rtas_dump \
scripts/snap \
scripts/bootlist \
scripts/ofpathname \
scripts/lsdevinfo \
scripts/ls-veth \
scripts/ls-vscsi \
scripts/ls-vdev \
scripts/pseries_platform
man_MANS = \
man/activate_firmware.8 \
man/rtas_ibm_get_vpd.8 \
man/uesensor.8 \
man/amsstat.1 \
man/serv_config.8 \
man/update_flash.8 \
man/nvram.8 \
man/set_poweron_time.8 \
man/bootlist.8 \
man/ofpathname.8 \
man/snap.8 \
man/hvcsadmin.8 \
man/rtas_dump.8 \
man/sys_ident.8 \
man/lparcfg.5 \
man/lparstat.8 \
man/lsslot.8 \
man/ppc64_cpu.8
EXTRA_DIST += $(bin_SCRIPTS) $(sbin_SCRIPTS) $(man_MANS)
EXTRA_DIST += COPYRIGHT Changelog powerpc-utils.spec.in doc/activate_firmware.doxycfg \
doc/nvram.doxycfg doc/rtas_ibm_get_vpd.doxycfg doc/serv_config.doxycfg \
doc/set_poweron_time.doxycfg doc/uesensor.doxycfg
if WITH_SYSTEMD
EXTRA_DIST += systemd/smt_off.service.in
endif
sbin_PROGRAMS += src/nvram src/lsprop src/lparstat src/ppc64_cpu
pseries_platform_SOURCES = src/common/pseries_platform.c src/common/pseries_platform.h
librtas_error_SOURCES = src/common/librtas_error.c src/common/librtas_error.h
src_nvram_SOURCES = src/nvram.c src/nvram.h $(pseries_platform_SOURCES)
src_nvram_LDADD = -ldl -lz
src_lsprop_SOURCES = src/lsprop.c $(pseries_platform_SOURCES)
src_lparstat_SOURCES = src/lparstat.c src/lparstat.h $(pseries_platform_SOURCES)
src_ppc64_cpu_SOURCES = src/ppc64_cpu.c $(pseries_platform_SOURCES)
src_ppc64_cpu_LDADD = -lpthread
AM_CFLAGS = -Wall -g -I $(top_srcdir)/src/common/
if WITH_LIBRTAS
sbin_PROGRAMS += \
src/activate_firmware \
src/set_poweron_time \
src/rtas_ibm_get_vpd \
src/serv_config \
src/uesensor \
src/rtas_event_decode \
src/sys_ident
src_activate_firmware_SOURCES = src/activate_fw.c $(pseries_platform_SOURCES)
src_activate_firmware_LDADD = -lrtas
src_set_poweron_time_SOURCES = src/set_poweron_time.c $(librtas_error_SOURCES) $(pseries_platform_SOURCES)
src_set_poweron_time_LDADD = -lrtas
src_rtas_ibm_get_vpd_SOURCES = src/rtas_ibm_get_vpd.c $(librtas_error_SOURCES) $(pseries_platform_SOURCES)
src_rtas_ibm_get_vpd_LDADD = -lrtas
src_serv_config_SOURCES = src/serv_config.c $(librtas_error_SOURCES) $(pseries_platform_SOURCES)
src_serv_config_LDADD = -lrtas
src_uesensor_SOURCES = src/uesensor.c $(librtas_error_SOURCES) $(pseries_platform_SOURCES)
src_uesensor_LDADD = -lrtas
src_rtas_event_decode_SOURCES = src/rtas_event_decode.c $(pseries_platform_SOURCES)
src_rtas_event_decode_LDADD = -lrtasevent
src_sys_ident_SOURCES = src/sys_ident.c $(pseries_platform_SOURCES)
src_sys_ident_LDADD = -lrtas
src_ppc64_cpu_SOURCES += $(librtas_error_SOURCES)
src_ppc64_cpu_LDADD += -lrtas
sbin_PROGRAMS += src/drmgr/drmgr src/drmgr/lsslot
endif
src_drmgr_drmgr_SOURCES = \
src/drmgr/common.c \
src/drmgr/common_cpu.c \
src/drmgr/common_ofdt.c \
src/drmgr/common_pci.c \
src/drmgr/drmgr.c \
src/drmgr/drmig_chrp_pmig.c \
src/drmgr/drslot_chrp_cpu.c \
src/drmgr/drslot_chrp_hea.c \
src/drmgr/drslot_chrp_mem.c \
src/drmgr/drslot_chrp_pci.c \
src/drmgr/drslot_chrp_phb.c \
src/drmgr/drslot_chrp_slot.c \
src/drmgr/rtas_calls.c \
$(pseries_platform_SOURCES)
noinst_HEADERS += \
src/drmgr/drcpu.h \
src/drmgr/dr.h \
src/drmgr/drmem.h \
src/drmgr/drpci.h \
src/drmgr/rtas_calls.h \
src/drmgr/ofdt.h \
src/drmgr/lsslot.h \
src/drmgr/rtas_calls.h
src_drmgr_drmgr_LDADD = -lrtas
src_drmgr_lsslot_SOURCES = \
src/drmgr/lsslot.c \
src/drmgr/lsslot_chrp_cpu.c \
src/drmgr/common.c \
src/drmgr/common_cpu.c \
src/drmgr/common_pci.c \
src/drmgr/common_ofdt.c \
src/drmgr/rtas_calls.c \
src/drmgr/drslot_chrp_mem.c \
$(pseries_platform_SOURCES)
src_drmgr_lsslot_LDADD = -lrtas
if WITH_SYSTEMD
install-data-hook: systemd/smt_off.service
$(MKDIR_P) @prefix@${systemd_unit_dir}
$(INSTALL_SCRIPT) $< @prefix@${systemd_unit_dir}/
sed -i -e 's,$${exec_prefix},@sbindir@,g' @prefix@${systemd_unit_dir}/smt_off.service
endif