Print this page
9674 Let's scrap AVS/sdbc
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/Makefile
+++ new/usr/src/head/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
26 26 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
27 27 # Copyright 2017 Nexenta Systems, Inc.
28 28 #
29 29
30 30 # include global definitions
31 31 include ../Makefile.master
32 32
33 33 sparc_HDRS=
34 34 i386_HDRS= stack_unwind.h
35 35
36 36 KRB5HDRS= \
37 37 mit_copyright.h \
38 38 mit-sipb-copyright.h
39 39
40 40 ATTRDB_HDRS= \
41 41 auth_attr.h \
42 42 auth_list.h \
43 43 exec_attr.h \
44 44 prof_attr.h \
45 45 secdb.h \
46 46 user_attr.h
47 47
48 48 HDRS= $($(MACH)_HDRS) \
49 49 $(ATTRDB_HDRS) \
50 50 aio.h \
51 51 alloca.h \
52 52 apptrace.h \
53 53 apptrace_impl.h \
54 54 ar.h \
55 55 archives.h \
56 56 assert.h \
57 57 atomic.h \
58 58 attr.h \
59 59 complex.h \
60 60 config_admin.h \
61 61 cpio.h \
62 62 crypt.h \
63 63 ctype.h \
64 64 deflt.h \
65 65 devid.h \
66 66 devmgmt.h \
67 67 devpoll.h \
68 68 dial.h \
69 69 dirent.h \
70 70 dlfcn.h \
71 71 door.h \
72 72 elf.h \
73 73 endian.h \
74 74 err.h \
75 75 errno.h \
76 76 euc.h \
77 77 exacct.h \
78 78 exacct_impl.h \
79 79 execinfo.h \
80 80 fatal.h \
81 81 fcntl.h \
82 82 fenv.h \
83 83 float.h \
84 84 floatingpoint.h \
85 85 fmtmsg.h \
86 86 fnmatch.h \
87 87 fts.h \
88 88 ftw.h \
89 89 gelf.h \
90 90 getopt.h \
91 91 getwidth.h \
92 92 glob.h \
93 93 grp.h \
94 94 iconv.h \
95 95 ieeefp.h \
96 96 ifaddrs.h \
97 97 inttypes.h \
98 98 iso646.h \
99 99 klpd.h \
100 100 langinfo.h \
101 101 lastlog.h \
102 102 lber.h \
103 103 ldap.h \
104 104 libelf.h \
105 105 libgen.h \
106 106 libintl.h \
107 107 libw.h \
108 108 libzonecfg.h \
109 109 limits.h \
110 110 linenum.h \
111 111 link.h \
112 112 listen.h \
113 113 locale.h \
114 114 macros.h \
115 115 malloc.h \
116 116 math.h \
117 117 memory.h \
118 118 mon.h \
119 119 monetary.h \
120 120 mp.h \
↓ open down ↓ |
120 lines elided |
↑ open up ↑ |
121 121 mqueue.h \
122 122 nan.h \
123 123 ndbm.h \
124 124 ndpd.h \
125 125 netconfig.h \
126 126 netdb.h \
127 127 netdir.h \
128 128 nl_types.h \
129 129 nlist.h \
130 130 note.h \
131 - nsctl.h \
132 131 nsswitch.h \
133 132 nss_common.h \
134 133 nss_dbdefs.h \
135 134 nss_netdir.h \
136 135 paths.h \
137 136 pcsample.h \
138 137 pfmt.h \
139 138 pkgdev.h \
140 139 pkginfo.h \
141 140 pkglocs.h \
142 141 pkgstrct.h \
143 142 pkgtrans.h \
144 143 poll.h \
145 144 port.h \
146 145 priv.h \
147 146 priv_utils.h \
148 147 proc_service.h \
149 148 procfs.h \
150 149 prof.h \
151 150 project.h \
152 151 pthread.h \
153 152 pw.h \
154 153 pwd.h \
155 154 rctl.h \
156 155 re_comp.h \
157 156 regex.h \
158 157 regexp.h \
159 158 resolv.h \
160 159 rje.h \
161 160 rtld_db.h \
162 161 sac.h \
163 162 sched.h \
164 163 schedctl.h \
165 164 search.h \
166 165 semaphore.h \
167 166 setjmp.h \
168 167 sgtty.h \
169 168 shadow.h \
170 169 siginfo.h \
171 170 signal.h \
172 171 spawn.h \
173 172 stdalign.h \
174 173 stdarg.h \
175 174 stdbool.h \
176 175 stddef.h \
177 176 stdint.h \
178 177 stdio.h \
179 178 stdio_ext.h \
180 179 stdio_tag.h \
181 180 stdio_impl.h \
182 181 stdlib.h \
183 182 stdnoreturn.h \
184 183 storclass.h \
185 184 string.h \
186 185 strings.h \
187 186 stropts.h \
188 187 synch.h \
189 188 sysexits.h \
190 189 syslog.h \
191 190 syms.h \
192 191 tar.h \
193 192 termio.h \
194 193 termios.h \
195 194 tgmath.h \
196 195 thread.h \
197 196 thread_db.h \
198 197 threads.h \
199 198 time.h \
200 199 tiuser.h \
201 200 tzfile.h \
202 201 ucontext.h \
203 202 ucred.h \
204 203 ulimit.h \
205 204 unistd.h \
206 205 userdefs.h \
207 206 ustat.h \
208 207 utime.h \
209 208 utmp.h \
210 209 utmpx.h \
211 210 valtools.h \
212 211 values.h \
213 212 varargs.h \
214 213 wait.h \
215 214 wchar.h \
216 215 wchar_impl.h \
217 216 wctype.h \
218 217 widec.h \
219 218 wordexp.h \
220 219 xlocale.h \
221 220 xti.h \
222 221 xti_inet.h \
223 222 zone.h
224 223
225 224 ISOHDRS = \
226 225 ctype_iso.h \
227 226 limits_iso.h \
228 227 locale_iso.h \
229 228 math_c99.h \
230 229 math_iso.h \
231 230 setjmp_iso.h \
232 231 signal_iso.h \
233 232 stdarg_c99.h \
234 233 stdarg_iso.h \
235 234 stddef_iso.h \
236 235 stdio_c99.h \
237 236 stdio_iso.h \
238 237 stdlib_c99.h \
239 238 stdlib_c11.h \
240 239 stdlib_iso.h \
241 240 string_iso.h \
242 241 time_iso.h \
243 242 wchar_c99.h \
244 243 wchar_iso.h \
245 244 wctype_iso.h
246 245
247 246 ARPAHDRS = \
248 247 ftp.h \
249 248 inet.h \
250 249 nameser.h \
251 250 telnet.h \
252 251 tftp.h \
253 252 nameser_compat.h
254 253
255 254 AUDIOHDRS = \
256 255 au.h
257 256
258 257 UUIDHDRS = \
259 258 uuid.h
260 259
261 260 # rpcsvc headers which are just headers (not derived from a .x file)
262 261 RPCSVC_SRC_HDRS = \
263 262 bootparam.h \
264 263 daemon_utils.h \
265 264 dbm.h \
266 265 nis_db.h \
267 266 nislib.h \
268 267 svc_dg_priv.h \
269 268 yp_prot.h \
270 269 ypclnt.h \
271 270 yppasswd.h \
272 271 ypupd.h \
273 272 rpc_sztypes.h
274 273
275 274 # rpcsvc headers which are generated from .x files
276 275 RPCSVC_GEN_HDRS = \
277 276 bootparam_prot.h \
278 277 mount.h \
279 278 nfs_prot.h \
280 279 nfs4_prot.h \
281 280 nis.h \
282 281 rquota.h \
283 282 rstat.h \
284 283 rusers.h \
285 284 rwall.h \
286 285 spray.h \
287 286 ufs_prot.h \
288 287 nfs_acl.h
289 288
290 289 SYMHDRASSERT = $(ROOT)/usr/include/iso/assert_iso.h
291 290 SYMHDRERRNO = $(ROOT)/usr/include/iso/errno_iso.h
292 291 SYMHDRFLOAT = $(ROOT)/usr/include/iso/float_iso.h
293 292 SYMHDRISO646 = $(ROOT)/usr/include/iso/iso646_iso.h
294 293
295 294 RPCGENFLAGS = -C -h
296 295 rpcsvc/rwall.h := RPCGENFLAGS += -M
297 296
298 297 # rpcsvc rpcgen source (.x files)
299 298 #
300 299 # yp.x is an attempt at codifying what was hand coded in RPCL.
301 300 # Unfortunately it doesn't quite work. (The handcoded stuff isn't
302 301 # expressable in RPCL) this is due to the fact that YP was written
303 302 # before rpcgen existed. Hence, yp_prot.h cannot be derived from yp.x
304 303 #
305 304 # There is no `.h' for nis_object.x because it is included by nis.x and
306 305 # the resulting .h is nis.h.
307 306
308 307 RPCSVCPROTS = \
309 308 $(RPCSVC_GEN_HDRS:%.h=%.x) nis_object.x yp.x
310 309
311 310 RPCSVCHDRS= $(RPCSVC_SRC_HDRS) $(RPCSVC_GEN_HDRS)
312 311
313 312 PROTOHDRS= dumprestore.h routed.h ripngd.h rwhod.h timed.h
314 313
315 314 ROOTHDRS= $(HDRS:%=$(ROOT)/usr/include/%) \
316 315 $(KRB5HDRS:%=$(ROOT)/usr/include/kerberosv5/%) \
317 316 $(ISOHDRS:%=$(ROOT)/usr/include/iso/%) \
318 317 $(ARPAHDRS:%=$(ROOT)/usr/include/arpa/%) \
319 318 $(AUDIOHDRS:%=$(ROOT)/usr/include/audio/%) \
320 319 $(UUIDHDRS:%=$(ROOT)/usr/include/uuid/%) \
321 320 $(RPCSVCHDRS:%=$(ROOT)/usr/include/rpcsvc/%) \
322 321 $(RPCSVCPROTS:%=$(ROOT)/usr/include/rpcsvc/%) \
323 322 $(PROTOHDRS:%=$(ROOT)/usr/include/protocols/%)
324 323
325 324 DIRS= iso arpa audio rpcsvc protocols security uuid kerberosv5
326 325 ROOTDIRS= $(DIRS:%=$(ROOT)/usr/include/%)
327 326
328 327 # check files really don't exist
329 328 #
330 329 # should do something with the rpcsvc headers
331 330
332 331 iso/%.check: iso/%.h
333 332 $(DOT_H_CHECK)
334 333
335 334 arpa/%.check: arpa/%.h
336 335 $(DOT_H_CHECK)
337 336
338 337 audio/%.check: audio/%.h
339 338 $(DOT_H_CHECK)
340 339
341 340 rpcsvc/%.check: rpcsvc/%.h
342 341 $(DOT_H_CHECK)
343 342
344 343 rpcsvc/%.check: rpcsvc/%.x
345 344 $(DOT_X_CHECK)
346 345
347 346 protocols/%.check: protocols/%.h
348 347 $(DOT_H_CHECK)
349 348
350 349 kerberosv5/%.check: kerberosv5/%.h
351 350 $(DOT_H_CHECK)
352 351
353 352 uuid/%.check: uuid/%.h
354 353 $(DOT_H_CHECK)
355 354
356 355 # Note that the derived headers (rpcgen) are not checked at this time. These
357 356 # need work at the source level and rpcgen itself has a bug which causes a
358 357 # cstyle violation. Furthermore, there seems to be good reasons for the
359 358 # generated headers to not pass all of the hdrchk rules.
360 359 #
361 360 # Add the following to the CHECKHDRS list to activate the .x checks:
362 361 # $(RPCSVCPROTS:%.x=rpcsvc/%.check) \
363 362 #
364 363 CHECKHDRS= $(HDRS:%.h=%.check) \
365 364 $(KRB5HDRS:%.h=kerberosv5/%.check) \
366 365 $(ISOHDRS:%.h=iso/%.check) \
367 366 $(ARPAHDRS:%.h=arpa/%.check) \
368 367 $(AUDIOHDRS:%.h=audio/%.check) \
369 368 $(UUIDHDRS:%.h=uuid/%.check) \
370 369 $(RPCSVC_SRC_HDRS:%.h=rpcsvc/%.check) \
371 370 $(PROTOHDRS:%.h=protocols/%.check)
372 371
373 372 # headers which won't quite meet the standards...
374 373 #
375 374 # assert.h is required by ansi-c to *not* be idempotent (section 4.1.2).
376 375 # Hence the trailing guard is not the last thing in the file nor can it
377 376 # be without playing silly games.
378 377
379 378 assert.check := HDRCHK_TAIL = | grep -v "end guard wrong" | true
380 379
381 380 # install rules
382 381
383 382 $(ROOT)/usr/include/security/%: security/%
384 383 $(INS.file)
385 384
386 385 $(ROOT)/usr/include/protocols/%: protocols/%
387 386 $(INS.file)
388 387
389 388 $(ROOT)/usr/include/rpcsvc/%: rpcsvc/%
390 389 $(INS.file)
391 390
392 391 $(ROOT)/usr/include/kerberosv5/%: kerberosv5/%
393 392 $(INS.file)
394 393
395 394 $(ROOT)/usr/include/arpa/%: arpa/%
396 395 $(INS.file)
397 396
398 397 $(ROOT)/usr/include/audio/%: audio/%
399 398 $(INS.file)
400 399
401 400 $(ROOT)/usr/include/iso/%: iso/%
402 401 $(INS.file)
403 402
404 403 $(ROOT)/usr/include/uuid/%: uuid/%
405 404 $(INS.file)
406 405
407 406 $(ROOT)/usr/include/%: %
408 407 $(INS.file)
409 408
410 409 .KEEP_STATE:
411 410
412 411 .PARALLEL: $(ROOTHDRS) $(CHECKHDRS)
413 412
414 413 install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(SYMHDRASSERT) $(SYMHDRERRNO) \
415 414 $(SYMHDRFLOAT) $(SYMHDRISO646)
416 415
417 416 check: $(CHECKHDRS)
418 417
419 418 clean clobber:
420 419 cd rpcsvc ; $(RM) $(RPCSVC_GEN_HDRS)
421 420
422 421 $(ROOTDIRS):
423 422 $(INS.dir)
424 423
425 424 $(SYMHDRASSERT):
426 425 -$(RM) $@; $(SYMLINK) ../assert.h $@
427 426
428 427 $(SYMHDRERRNO):
429 428 -$(RM) $@; $(SYMLINK) ../errno.h $@
430 429
431 430 $(SYMHDRFLOAT):
432 431 -$(RM) $@; $(SYMLINK) ../float.h $@
433 432
434 433 $(SYMHDRISO646):
435 434 -$(RM) $@; $(SYMLINK) ../iso646.h $@
436 435
437 436 rpcsvc/%.h: rpcsvc/%.x
438 437 $(RPCGEN) $(RPCGENFLAGS) $< -o $@
439 438
440 439 rpcsvc/nis.h: rpcsvc/nis.x
441 440 $(RPCGEN) $(RPCGENFLAGS) rpcsvc/nis.x |\
442 441 $(SED) -e '/EDIT_START/,$$ d' > $@
↓ open down ↓ |
301 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX