package/gcc: fix libgcc build for xtensa
[buildroot-gz.git] / package / audit / 0001-Missed-cross-compile-fixes.patch
bloba52d0cdcd5ba3c65b12abd7fb626a9151cedb55c
1 From d93f9cc084bb88d245413da2e8b03db26c6957bc Mon Sep 17 00:00:00 2001
2 From: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
3 Date: Wed, 22 Jul 2015 08:58:36 -0500
4 Subject: [PATCH] Missed cross compile fixes
6 My previous patch set attempted to fix the building of the gen_tables.c
7 applications so they can run on the build machine when cross compiling.
8 I failed to realize that automake would still attempt to insert the
9 CFLAGS and CPPFLAGS variables even when they should be CFLAGS_FOR_BUILD
10 and CPPFLAGS_FOR_BUILD. This change set should override those FLAGS
11 variables properly.
13 Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
14 ---
15 auparse/Makefile.am | 185 +++++++++++++++++++++++++++++++++++++++++-----------
16 lib/Makefile.am | 85 +++++++++++++++++++-----
17 2 files changed, 216 insertions(+), 54 deletions(-)
19 diff --git a/auparse/Makefile.am b/auparse/Makefile.am
20 index 742f7ba..4b864d7 100644
21 --- a/auparse/Makefile.am
22 +++ b/auparse/Makefile.am
23 @@ -79,302 +79,413 @@ noinst_PROGRAMS = gen_accesstabs_h gen_captabs_h gen_clock_h \
24 gen_umounttabs_h
26 gen_accesstabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h accesstab.h
27 -gen_accesstabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="accesstab.h"'
28 +gen_accesstabs_h_CFLAGS = '-DTABLE_H="accesstab.h"'
29 $(gen_accesstabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
30 +$(gen_accesstabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
31 $(gen_accesstabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
32 gen_accesstabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
33 +gen_accesstabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
34 +gen_accesstabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
35 accesstabs.h: gen_accesstabs_h Makefile
36 ./gen_accesstabs_h --i2s-transtab access > $@
38 gen_captabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h captab.h
39 -gen_captabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="captab.h"'
40 +gen_captabs_h_CFLAGS = '-DTABLE_H="captab.h"'
41 $(gen_captabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
42 +$(gen_captabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
43 $(gen_captabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
44 gen_captabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
45 +gen_captabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
46 +gen_captabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
47 captabs.h: gen_captabs_h Makefile
48 ./gen_captabs_h --i2s cap > $@
50 gen_clock_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h clocktab.h
51 -gen_clock_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="clocktab.h"'
52 +gen_clock_h_CFLAGS = '-DTABLE_H="clocktab.h"'
53 $(gen_clock_h_OBJECTS): CC=$(CC_FOR_BUILD)
54 +$(gen_clock_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
55 $(gen_clock_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
56 gen_clock_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
57 +gen_clock_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
58 +gen_clock_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
59 clocktabs.h: gen_clock_h Makefile
60 ./gen_clock_h --i2s clock > $@
62 gen_clone_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \
63 clone-flagtab.h
64 -gen_clone_flagtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="clone-flagtab.h"'
65 +gen_clone_flagtabs_h_CFLAGS = '-DTABLE_H="clone-flagtab.h"'
66 $(gen_clone_flagtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
67 +$(gen_clone_flagtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
68 $(gen_clone_flagtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
69 gen_clone-flagtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
70 +gen_clone-flagtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
71 +gen_clone-flagtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
72 clone-flagtabs.h: gen_clone-flagtabs_h Makefile
73 ./gen_clone-flagtabs_h --i2s-transtab clone_flag > $@
75 gen_epoll_ctls_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h epoll_ctl.h
76 -gen_epoll_ctls_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="epoll_ctl.h"'
77 +gen_epoll_ctls_h_CFLAGS = '-DTABLE_H="epoll_ctl.h"'
78 $(gen_epoll_ctls_h_OBJECTS): CC=$(CC_FOR_BUILD)
79 +$(gen_epoll_ctls_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
80 $(gen_epoll_ctls_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
81 gen_epoll_ctls_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
82 +gen_epoll_ctls_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
83 +gen_epoll_ctls_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
84 epoll_ctls.h: gen_epoll_ctls_h Makefile
85 ./gen_epoll_ctls_h --i2s epoll_ctl > $@
87 gen_famtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h famtab.h
88 -gen_famtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="famtab.h"'
89 +gen_famtabs_h_CFLAGS = '-DTABLE_H="famtab.h"'
90 $(gen_famtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
91 +$(gen_famtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
92 $(gen_famtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
93 gen_famtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
94 +gen_famtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
95 +gen_famtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
96 famtabs.h: gen_famtabs_h Makefile
97 ./gen_famtabs_h --i2s fam > $@
99 gen_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h flagtab.h
100 # ../auparse/ is used to avoid using ../lib/flagtab.h
101 -gen_flagtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="../auparse/flagtab.h"'
102 +gen_flagtabs_h_CFLAGS = '-DTABLE_H="../auparse/flagtab.h"'
103 $(gen_flagtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
104 +$(gen_flagtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
105 $(gen_flagtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
106 gen_flagtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
107 +gen_flagtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
108 +gen_flagtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
109 flagtabs.h: gen_flagtabs_h Makefile
110 ./gen_flagtabs_h --i2s-transtab flag > $@
112 gen_fcntl_cmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \
113 fcntl-cmdtab.h
114 -gen_fcntl_cmdtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="fcntl-cmdtab.h"'
115 +gen_fcntl_cmdtabs_h_CFLAGS = '-DTABLE_H="fcntl-cmdtab.h"'
116 $(gen_fcntl_cmdtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
117 +$(gen_fcntl_cmdtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
118 $(gen_fcntl_cmdtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
119 gen_fcntl-cmdtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
120 +gen_fcntl-cmdtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
121 +gen_fcntl-cmdtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
122 fcntl-cmdtabs.h: gen_fcntl-cmdtabs_h Makefile
123 ./gen_fcntl-cmdtabs_h --i2s fcntl > $@
125 gen_icmptypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h icmptypetab.h
126 -gen_icmptypetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="icmptypetab.h"'
127 +gen_icmptypetabs_h_CFLAGS = '-DTABLE_H="icmptypetab.h"'
128 $(gen_icmptypetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
129 +$(gen_icmptypetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
130 $(gen_icmptypetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
131 gen_icmptypetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
132 +gen_icmptypetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
133 +gen_icmptypetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
134 icmptypetabs.h: gen_icmptypetabs_h Makefile
135 ./gen_icmptypetabs_h --i2s icmptype > $@
137 gen_ioctlreqtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ioctlreqtab.h
138 -gen_ioctlreqtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ioctlreqtab.h"'
139 +gen_ioctlreqtabs_h_CFLAGS = '-DTABLE_H="ioctlreqtab.h"'
140 $(gen_ioctlreqtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
141 +$(gen_ioctlreqtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
142 $(gen_ioctlreqtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
143 gen_ioctlreqtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
144 +gen_ioctlreqtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
145 +gen_ioctlreqtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
146 ioctlreqtabs.h: gen_ioctlreqtabs_h Makefile
147 ./gen_ioctlreqtabs_h --i2s ioctlreq > $@
149 gen_ipctabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipctab.h
150 -gen_ipctabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ipctab.h"'
151 +gen_ipctabs_h_CFLAGS = '-DTABLE_H="ipctab.h"'
152 $(gen_ipctabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
153 +$(gen_ipctabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
154 $(gen_ipctabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
155 gen_ipctabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
156 +gen_ipctabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
157 +gen_ipctabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
158 ipctabs.h: gen_ipctabs_h Makefile
159 ./gen_ipctabs_h --i2s ipc > $@
161 gen_ipccmdtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipccmdtab.h
162 -gen_ipccmdtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ipccmdtab.h"'
163 +gen_ipccmdtabs_h_CFLAGS = '-DTABLE_H="ipccmdtab.h"'
164 $(gen_ipccmdtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
165 +$(gen_ipccmdtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
166 $(gen_ipccmdtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
167 gen_ipccmdtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
168 +gen_ipccmdtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
169 +gen_ipccmdtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
170 ipccmdtabs.h: gen_ipccmdtabs_h Makefile
171 ./gen_ipccmdtabs_h --i2s-transtab ipccmd > $@
173 gen_ipoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ipoptnametab.h
174 -gen_ipoptnametabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ipoptnametab.h"'
175 +gen_ipoptnametabs_h_CFLAGS = '-DTABLE_H="ipoptnametab.h"'
176 $(gen_ipoptnametabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
177 +$(gen_ipoptnametabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
178 $(gen_ipoptnametabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
179 gen_ipoptnametabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
180 +gen_ipoptnametabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
181 +gen_ipoptnametabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
182 ipoptnametabs.h: gen_ipoptnametabs_h Makefile
183 ./gen_ipoptnametabs_h --i2s ipoptname > $@
185 gen_ip6optnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ip6optnametab.h
186 -gen_ip6optnametabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ip6optnametab.h"'
187 +gen_ip6optnametabs_h_CFLAGS = '-DTABLE_H="ip6optnametab.h"'
188 $(gen_ip6optnametabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
189 +$(gen_ip6optnametabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
190 $(gen_ip6optnametabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
191 gen_ip6optnametabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
192 +gen_ip6optnametabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
193 +gen_ip6optnametabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
194 ip6optnametabs.h: gen_ip6optnametabs_h Makefile
195 ./gen_ip6optnametabs_h --i2s ip6optname > $@
197 gen_mmaptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mmaptab.h
198 -gen_mmaptabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="mmaptab.h"'
199 +gen_mmaptabs_h_CFLAGS = '-DTABLE_H="mmaptab.h"'
200 $(gen_mmaptabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
201 +$(gen_mmaptabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
202 $(gen_mmaptabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
203 gen_mmaptabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
204 +gen_mmaptabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
205 +gen_mmaptabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
206 mmaptabs.h: gen_mmaptabs_h Makefile
207 ./gen_mmaptabs_h --i2s-transtab mmap > $@
209 gen_mounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h mounttab.h
210 -gen_mounttabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="mounttab.h"'
211 +gen_mounttabs_h_CFLAGS = '-DTABLE_H="mounttab.h"'
212 $(gen_mounttabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
213 +$(gen_mounttabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
214 $(gen_mounttabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
215 gen_mounttabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
216 +gen_mounttabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
217 +gen_mounttabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
218 mounttabs.h: gen_mounttabs_h Makefile
219 ./gen_mounttabs_h --i2s-transtab mount > $@
221 gen_nfprototabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h nfprototab.h
222 -gen_nfprototabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="nfprototab.h"'
223 +gen_nfprototabs_h_CFLAGS = '-DTABLE_H="nfprototab.h"'
224 $(gen_nfprototabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
225 +$(gen_nfprototabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
226 $(gen_nfprototabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
227 gen_nfprototabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
228 +gen_nfprototabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
229 +gen_nfprototabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
230 nfprototabs.h: gen_nfprototabs_h Makefile
231 ./gen_nfprototabs_h --i2s nfproto > $@
233 gen_open_flagtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h \
234 open-flagtab.h
235 -gen_open_flagtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="open-flagtab.h"'
236 +gen_open_flagtabs_h_CFLAGS = '-DTABLE_H="open-flagtab.h"'
237 $(gen_open_flagtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
238 +$(gen_open_flagtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
239 $(gen_open_flagtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
240 gen_open-flagtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
241 +gen_open-flagtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
242 +gen_open-flagtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
243 open-flagtabs.h: gen_open-flagtabs_h Makefile
244 ./gen_open-flagtabs_h --i2s-transtab open_flag > $@
246 gen_persontabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h persontab.h
247 -gen_persontabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="persontab.h"'
248 +gen_persontabs_h_CFLAGS = '-DTABLE_H="persontab.h"'
249 $(gen_persontabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
250 +$(gen_persontabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
251 $(gen_persontabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
252 gen_persontabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
253 +gen_persontabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
254 +gen_persontabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
255 persontabs.h: gen_persontabs_h Makefile
256 ./gen_persontabs_h --i2s person > $@
258 gen_ptracetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h ptracetab.h
259 -gen_ptracetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ptracetab.h"'
260 +gen_ptracetabs_h_CFLAGS = '-DTABLE_H="ptracetab.h"'
261 $(gen_ptracetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
262 +$(gen_ptracetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
263 $(gen_ptracetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
264 gen_ptracetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
265 +gen_ptracetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
266 +gen_ptracetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
267 ptracetabs.h: gen_ptracetabs_h Makefile
268 ./gen_ptracetabs_h --i2s ptrace > $@
270 gen_prctl_opttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prctl-opt-tab.h
271 -gen_prctl_opttabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="prctl-opt-tab.h"'
272 +gen_prctl_opttabs_h_CFLAGS = '-DTABLE_H="prctl-opt-tab.h"'
273 $(gen_prctl_opttabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
274 +$(gen_prctl_opttabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
275 $(gen_prctl_opttabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
276 gen_prctl_opttabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
277 +gen_prctl_opttabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
278 +gen_prctl_opttabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
279 prctl_opttabs.h: gen_prctl_opttabs_h Makefile
280 ./gen_prctl_opttabs_h --i2s prctl_opt > $@
282 gen_pktoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h pktoptnametab.h
283 -gen_pktoptnametabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="pktoptnametab.h"'
284 +gen_pktoptnametabs_h_CFLAGS = '-DTABLE_H="pktoptnametab.h"'
285 $(gen_pktoptnametabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
286 +$(gen_pktoptnametabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
287 $(gen_pktoptnametabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
288 gen_pktoptnametabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
289 +gen_pktoptnametabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
290 +gen_pktoptnametabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
291 pktoptnametabs.h: gen_pktoptnametabs_h Makefile
292 ./gen_pktoptnametabs_h --i2s pktoptname > $@
294 gen_prottabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h prottab.h
295 -gen_prottabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="prottab.h"'
296 +gen_prottabs_h_CFLAGS = '-DTABLE_H="prottab.h"'
297 $(gen_prottabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
298 +$(gen_prottabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
299 $(gen_prottabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
300 gen_prottabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
301 +gen_prottabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
302 +gen_prottabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
303 prottabs.h: gen_prottabs_h Makefile
304 ./gen_prottabs_h --i2s-transtab prot > $@
306 gen_recvtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h recvtab.h
307 -gen_recvtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="recvtab.h"'
308 +gen_recvtabs_h_CFLAGS = '-DTABLE_H="recvtab.h"'
309 $(gen_recvtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
310 +$(gen_recvtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
311 $(gen_recvtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
312 gen_recvtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
313 +gen_recvtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
314 +gen_recvtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
315 recvtabs.h: gen_recvtabs_h Makefile
316 ./gen_recvtabs_h --i2s-transtab recv > $@
318 gen_rlimit_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h rlimittab.h
319 -gen_rlimit_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="rlimittab.h"'
320 +gen_rlimit_h_CFLAGS = '-DTABLE_H="rlimittab.h"'
321 $(gen_rlimit_h_OBJECTS): CC=$(CC_FOR_BUILD)
322 +$(gen_rlimit_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
323 $(gen_rlimit_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
324 gen_rlimit_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
325 +gen_rlimit_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
326 +gen_rlimit_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
327 rlimittabs.h: gen_rlimit_h Makefile
328 ./gen_rlimit_h --i2s rlimit > $@
330 gen_schedtabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h schedtab.h
331 -gen_schedtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="schedtab.h"'
332 +gen_schedtabs_h_CFLAGS = '-DTABLE_H="schedtab.h"'
333 $(gen_schedtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
334 +$(gen_schedtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
335 $(gen_schedtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
336 gen_schedtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
337 +gen_schedtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
338 +gen_schedtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
339 schedtabs.h: gen_schedtabs_h Makefile
340 ./gen_schedtabs_h --i2s sched > $@
342 gen_seccomptabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seccomptab.h
343 -gen_seccomptabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="seccomptab.h"'
344 +gen_seccomptabs_h_CFLAGS = '-DTABLE_H="seccomptab.h"'
345 $(gen_seccomptabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
346 +$(gen_seccomptabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
347 $(gen_seccomptabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
348 gen_seccomptabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
349 +gen_seccomptabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
350 +gen_seccomptabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
351 seccomptabs.h: gen_seccomptabs_h Makefile
352 ./gen_seccomptabs_h --i2s seccomp > $@
354 gen_seektabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h seektab.h
355 -gen_seektabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="seektab.h"'
356 +gen_seektabs_h_CFLAGS = '-DTABLE_H="seektab.h"'
357 $(gen_seektabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
358 +$(gen_seektabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
359 $(gen_seektabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
360 gen_seektabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
361 +gen_seektabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
362 +gen_seektabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
363 seektabs.h: gen_seektabs_h Makefile
364 ./gen_seektabs_h --i2s seek > $@
366 gen_shm_modetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h shm_modetab.h
367 -gen_shm_modetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="shm_modetab.h"'
368 +gen_shm_modetabs_h_CFLAGS = '-DTABLE_H="shm_modetab.h"'
369 $(gen_shm_modetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
370 +$(gen_shm_modetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
371 $(gen_shm_modetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
372 gen_shm_modetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
373 +gen_shm_modetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
374 +gen_shm_modetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
375 shm_modetabs.h: gen_shm_modetabs_h Makefile
376 ./gen_shm_modetabs_h --i2s-transtab shm_mode > $@
378 gen_signals_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h signaltab.h
379 -gen_signals_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="signaltab.h"'
380 +gen_signals_h_CFLAGS = '-DTABLE_H="signaltab.h"'
381 $(gen_signals_h_OBJECTS): CC=$(CC_FOR_BUILD)
382 +$(gen_signals_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
383 $(gen_signals_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
384 gen_signals_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
385 +gen_signals_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
386 +gen_signals_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
387 signaltabs.h: gen_signals_h Makefile
388 ./gen_signals_h --i2s signal > $@
390 gen_sockleveltabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockleveltab.h
391 -gen_sockleveltabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="sockleveltab.h"'
392 +gen_sockleveltabs_h_CFLAGS = '-DTABLE_H="sockleveltab.h"'
393 $(gen_sockleveltabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
394 +$(gen_sockleveltabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
395 $(gen_sockleveltabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
396 gen_sockleveltabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
397 +gen_sockleveltabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
398 +gen_sockleveltabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
399 sockleveltabs.h: gen_sockleveltabs_h Makefile
400 ./gen_sockleveltabs_h --i2s socklevel > $@
402 gen_sockoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h sockoptnametab.h
403 -gen_sockoptnametabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="sockoptnametab.h"'
404 +gen_sockoptnametabs_h_CFLAGS = '-DTABLE_H="sockoptnametab.h"'
405 $(gen_sockoptnametabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
406 +$(gen_sockoptnametabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
407 $(gen_sockoptnametabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
408 gen_sockoptnametabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
409 +gen_sockoptnametabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
410 +gen_sockoptnametabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
411 sockoptnametabs.h: gen_sockoptnametabs_h Makefile
412 ./gen_sockoptnametabs_h --i2s sockoptname > $@
414 gen_socktabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktab.h
415 -gen_socktabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="socktab.h"'
416 +gen_socktabs_h_CFLAGS = '-DTABLE_H="socktab.h"'
417 $(gen_socktabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
418 +$(gen_socktabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
419 $(gen_socktabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
420 gen_socktabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
421 +gen_socktabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
422 +gen_socktabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
423 socktabs.h: gen_socktabs_h Makefile
424 ./gen_socktabs_h --i2s sock > $@
426 gen_socktypetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h socktypetab.h
427 -gen_socktypetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="socktypetab.h"'
428 +gen_socktypetabs_h_CFLAGS = '-DTABLE_H="socktypetab.h"'
429 $(gen_socktypetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
430 +$(gen_socktypetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
431 $(gen_socktypetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
432 gen_socktypetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
433 +gen_socktypetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
434 +gen_socktypetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
435 socktypetabs.h: gen_socktypetabs_h Makefile
436 ./gen_socktypetabs_h --i2s sock_type > $@
438 gen_tcpoptnametabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h tcpoptnametab.h
439 -gen_tcpoptnametabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="tcpoptnametab.h"'
440 +gen_tcpoptnametabs_h_CFLAGS = '-DTABLE_H="tcpoptnametab.h"'
441 $(gen_tcpoptnametabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
442 +$(gen_tcpoptnametabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
443 $(gen_tcpoptnametabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
444 gen_tcpoptnametabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
445 +gen_tcpoptnametabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
446 +gen_tcpoptnametabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
447 tcpoptnametabs.h: gen_tcpoptnametabs_h Makefile
448 ./gen_tcpoptnametabs_h --i2s tcpoptname > $@
450 gen_typetabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h typetab.h
451 -gen_typetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="typetab.h"'
452 +gen_typetabs_h_CFLAGS = '-DTABLE_H="typetab.h"'
453 $(gen_typetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
454 +$(gen_typetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
455 $(gen_typetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
456 gen_typetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
457 +gen_typetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
458 +gen_typetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
459 typetabs.h: gen_typetabs_h Makefile
460 ./gen_typetabs_h --s2i type > $@
462 gen_umounttabs_h_SOURCES = ../lib/gen_tables.c ../lib/gen_tables.h umounttab.h
463 -gen_umounttabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="umounttab.h"'
464 +gen_umounttabs_h_CFLAGS = '-DTABLE_H="umounttab.h"'
465 $(gen_umounttabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
466 +$(gen_umounttabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
467 $(gen_umounttabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
468 gen_umounttabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
469 +gen_umounttabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
470 +gen_umounttabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
471 umounttabs.h: gen_umounttabs_h Makefile
472 ./gen_umounttabs_h --i2s-transtab umount > $@
474 diff --git a/lib/Makefile.am b/lib/Makefile.am
475 index dddadd5..e2ed101 100644
476 --- a/lib/Makefile.am
477 +++ b/lib/Makefile.am
478 @@ -70,145 +70,196 @@ if USE_AARCH64
479 noinst_PROGRAMS += gen_aarch64_tables_h
480 endif
481 gen_actiontabs_h_SOURCES = gen_tables.c gen_tables.h actiontab.h
482 -gen_actiontabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="actiontab.h"'
483 +gen_actiontabs_h_CFLAGS = '-DTABLE_H="actiontab.h"'
484 $(gen_actiontabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
485 +$(gen_actiontabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
486 $(gen_actiontabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
487 gen_actiontabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
488 +gen_actiontabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
489 +gen_actiontabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
490 actiontabs.h: gen_actiontabs_h Makefile
491 ./gen_actiontabs_h --lowercase --i2s --s2i action > $@
493 if USE_ALPHA
494 gen_alpha_tables_h_SOURCES = gen_tables.c gen_tables.h alpha_table.h
495 -gen_alpha_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="alpha_table.h"'
496 +gen_alpha_tables_h_CFLAGS = '-DTABLE_H="alpha_table.h"'
497 $(gen_alpha_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
498 +$(gen_alpha_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
499 $(gen_alpha_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
500 gen_alpha_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
501 +gen_alpha_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
502 +gen_alpha_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
503 alpha_tables.h: gen_alpha_tables_h Makefile
504 ./gen_alpha_tables_h --lowercase --i2s --s2i alpha_syscall > $@
505 endif
507 if USE_ARM
508 gen_arm_tables_h_SOURCES = gen_tables.c gen_tables.h arm_table.h
509 -gen_arm_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="arm_table.h"'
510 +gen_arm_tables_h_CFLAGS = '-DTABLE_H="arm_table.h"'
511 $(gen_arm_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
512 +$(gen_arm_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
513 $(gen_arm_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
514 gen_arm_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
515 +gen_arm_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
516 +gen_arm_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
517 arm_tables.h: gen_arm_tables_h Makefile
518 ./gen_arm_tables_h --lowercase --i2s --s2i arm_syscall > $@
519 endif
521 if USE_AARCH64
522 gen_aarch64_tables_h_SOURCES = gen_tables.c gen_tables.h aarch64_table.h
523 -gen_aarch64_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="aarch64_table.h"'
524 +gen_aarch64_tables_h_CFLAGS = '-DTABLE_H="aarch64_table.h"'
525 $(gen_aarch64_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
526 +$(gen_aarch64_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
527 $(gen_aarch64_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
528 gen_aarch64_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
529 +gen_aarch64_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
530 +gen_aarch64_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
531 aarch64_tables.h: gen_aarch64_tables_h Makefile
532 ./gen_aarch64_tables_h --lowercase --i2s --s2i aarch64_syscall > $@
533 endif
535 gen_errtabs_h_SOURCES = gen_tables.c gen_tables.h errtab.h
536 -gen_errtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="errtab.h"'
537 +gen_errtabs_h_CFLAGS = '-DTABLE_H="errtab.h"'
538 $(gen_errtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
539 +$(gen_errtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
540 $(gen_errtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
541 gen_errtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
542 +gen_errtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
543 +gen_errtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
544 errtabs.h: gen_errtabs_h Makefile
545 ./gen_errtabs_h --duplicate-ints --uppercase --i2s --s2i err > $@
547 gen_fieldtabs_h_SOURCES = gen_tables.c gen_tables.h fieldtab.h
548 -gen_fieldtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="fieldtab.h"'
549 +gen_fieldtabs_h_CFLAGS = '-DTABLE_H="fieldtab.h"'
550 $(gen_fieldtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
551 +$(gen_fieldtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
552 $(gen_fieldtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
553 gen_fieldtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
554 +gen_fieldtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
555 +gen_fieldtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
556 fieldtabs.h: gen_fieldtabs_h Makefile
557 ./gen_fieldtabs_h --duplicate-ints --lowercase --i2s --s2i field > $@
559 gen_flagtabs_h_SOURCES = gen_tables.c gen_tables.h flagtab.h
560 -gen_flagtabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="flagtab.h"'
561 +gen_flagtabs_h_CFLAGS = '-DTABLE_H="flagtab.h"'
562 $(gen_flagtabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
563 +$(gen_flagtabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
564 $(gen_flagtabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
565 gen_flagtabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
566 +gen_flagtabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
567 +gen_flagtabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
568 flagtabs.h: gen_flagtabs_h Makefile
569 ./gen_flagtabs_h --lowercase --i2s --s2i flag > $@
571 gen_ftypetabs_h_SOURCES = gen_tables.c gen_tables.h ftypetab.h
572 -gen_ftypetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ftypetab.h"'
573 +gen_ftypetabs_h_CFLAGS = '-DTABLE_H="ftypetab.h"'
574 $(gen_ftypetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
575 +$(gen_ftypetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
576 $(gen_ftypetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
577 gen_ftypetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
578 +gen_ftypetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
579 +gen_ftypetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
580 ftypetabs.h: gen_ftypetabs_h Makefile
581 ./gen_ftypetabs_h --lowercase --i2s --s2i ftype > $@
583 gen_i386_tables_h_SOURCES = gen_tables.c gen_tables.h i386_table.h
584 -gen_i386_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="i386_table.h"'
585 +gen_i386_tables_h_CFLAGS = '-DTABLE_H="i386_table.h"'
586 $(gen_i386_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
587 +$(gen_i386_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
588 $(gen_i386_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
589 gen_i386_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
590 +gen_i386_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
591 +gen_i386_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
592 i386_tables.h: gen_i386_tables_h Makefile
593 ./gen_i386_tables_h --duplicate-ints --lowercase --i2s --s2i \
594 i386_syscall > $@
596 gen_ia64_tables_h_SOURCES = gen_tables.c gen_tables.h ia64_table.h
597 -gen_ia64_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ia64_table.h"'
598 +gen_ia64_tables_h_CFLAGS = '-DTABLE_H="ia64_table.h"'
599 $(gen_ia64_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
600 +$(gen_ia64_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
601 $(gen_ia64_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
602 gen_ia64_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
603 +gen_ia64_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
604 +gen_ia64_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
605 ia64_tables.h: gen_ia64_tables_h Makefile
606 ./gen_ia64_tables_h --lowercase --i2s --s2i ia64_syscall > $@
608 gen_machinetabs_h_SOURCES = gen_tables.c gen_tables.h machinetab.h
609 -gen_machinetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="machinetab.h"'
610 +gen_machinetabs_h_CFLAGS = '-DTABLE_H="machinetab.h"'
611 $(gen_machinetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
612 +$(gen_machinetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
613 $(gen_machinetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
614 gen_machinetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
615 +gen_machinetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
616 +gen_machinetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
617 machinetabs.h: gen_machinetabs_h Makefile
618 ./gen_machinetabs_h --duplicate-ints --lowercase --i2s --s2i machine \
619 > $@
621 gen_msg_typetabs_h_SOURCES = gen_tables.c gen_tables.h msg_typetab.h
622 -gen_msg_typetabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="msg_typetab.h"'
623 +gen_msg_typetabs_h_CFLAGS = '-DTABLE_H="msg_typetab.h"'
624 $(gen_msg_typetabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
625 +$(gen_msg_typetabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
626 $(gen_msg_typetabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
627 gen_msg_typetabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
628 +gen_msg_typetabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
629 +gen_msg_typetabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
630 msg_typetabs.h: gen_msg_typetabs_h Makefile
631 ./gen_msg_typetabs_h --uppercase --i2s --s2i msg_type > $@
633 gen_optabs_h_SOURCES = gen_tables.c gen_tables.h optab.h
634 -gen_optabs_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="optab.h"'
635 +gen_optabs_h_CFLAGS = '-DTABLE_H="optab.h"'
636 $(gen_optabs_h_OBJECTS): CC=$(CC_FOR_BUILD)
637 +$(gen_optabs_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
638 $(gen_optabs_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
639 gen_optabs_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
640 +gen_optabs_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
641 +gen_optabs_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
642 optabs.h: gen_optabs_h Makefile
643 ./gen_optabs_h --i2s op > $@
645 gen_ppc_tables_h_SOURCES = gen_tables.c gen_tables.h ppc_table.h
646 -gen_ppc_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="ppc_table.h"'
647 +gen_ppc_tables_h_CFLAGS = '-DTABLE_H="ppc_table.h"'
648 $(gen_ppc_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
649 +$(gen_ppc_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
650 $(gen_ppc_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
651 gen_ppc_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
652 +gen_ppc_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
653 +gen_ppc_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
654 ppc_tables.h: gen_ppc_tables_h Makefile
655 ./gen_ppc_tables_h --lowercase --i2s --s2i ppc_syscall > $@
657 gen_s390_tables_h_SOURCES = gen_tables.c gen_tables.h s390_table.h
658 -gen_s390_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="s390_table.h"'
659 +gen_s390_tables_h_CFLAGS = '-DTABLE_H="s390_table.h"'
660 $(gen_s390_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
661 +$(gen_s390_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
662 $(gen_s390_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
663 gen_s390_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
664 +gen_s390_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
665 +gen_s390_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
666 s390_tables.h: gen_s390_tables_h Makefile
667 ./gen_s390_tables_h --lowercase --i2s --s2i s390_syscall > $@
669 gen_s390x_tables_h_SOURCES = gen_tables.c gen_tables.h s390x_table.h
670 -gen_s390x_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="s390x_table.h"'
671 +gen_s390x_tables_h_CFLAGS = '-DTABLE_H="s390x_table.h"'
672 $(gen_s390x_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
673 +$(gen_s390x_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
674 $(gen_s390x_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
675 gen_s390x_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
676 +gen_s390x_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
677 +gen_s390x_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
678 s390x_tables.h: gen_s390x_tables_h Makefile
679 ./gen_s390x_tables_h --lowercase --i2s --s2i s390x_syscall > $@
681 gen_x86_64_tables_h_SOURCES = gen_tables.c gen_tables.h x86_64_table.h
682 -gen_x86_64_tables_h_CFLAGS = $(CFLAGS_FOR_BUILD) '-DTABLE_H="x86_64_table.h"'
683 +gen_x86_64_tables_h_CFLAGS = '-DTABLE_H="x86_64_table.h"'
684 $(gen_x86_64_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
685 +$(gen_x86_64_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
686 $(gen_x86_64_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
687 gen_x86_64_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
688 +gen_x86_64_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
689 +gen_x86_64_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
690 x86_64_tables.h: gen_x86_64_tables_h Makefile
691 ./gen_x86_64_tables_h --lowercase --i2s --s2i x86_64_syscall > $@
693 1.9.1