Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD
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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 # Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright 2013 Garrett D'Amore <garrett@damore.org>
26 +#
25 27 # head/Makefile
26 28 #
27 29 # include global definitions
28 30 include ../Makefile.master
29 31
30 32 sparc_HDRS=
31 33 i386_HDRS= stack_unwind.h
32 34
33 35 # Headers are listed one per line so that TeamWare can auto-merge most changes
34 36
35 37 KRB5HDRS= mit_copyright.h mit-sipb-copyright.h
36 38
37 39 ATTRDB_HDRS= secdb.h auth_attr.h exec_attr.h prof_attr.h user_attr.h \
38 40 auth_list.h
39 41
40 42 HDRS= $($(MACH)_HDRS) $(ATTRDB_HDRS) \
41 43 aio.h \
42 44 alloca.h \
43 45 apptrace.h \
44 46 apptrace_impl.h \
45 47 ar.h \
46 48 archives.h \
47 49 assert.h \
48 50 atomic.h \
49 51 attr.h \
50 52 config_admin.h \
51 53 cpio.h \
52 54 crypt.h \
53 55 ctype.h \
54 56 deflt.h \
55 57 devid.h \
56 58 devmgmt.h \
57 59 devpoll.h \
58 60 dial.h \
59 61 dirent.h \
60 62 dlfcn.h \
61 63 door.h \
62 64 elf.h \
63 65 err.h \
64 66 errno.h \
65 67 euc.h \
66 68 exacct.h \
67 69 exacct_impl.h \
68 70 execinfo.h \
69 71 fatal.h \
70 72 fcntl.h \
71 73 float.h \
72 74 fmtmsg.h \
73 75 fnmatch.h \
74 76 ftw.h \
75 77 gelf.h \
76 78 getopt.h \
77 79 getwidth.h \
78 80 glob.h \
79 81 grp.h \
80 82 iconv.h \
81 83 ieeefp.h \
82 84 ifaddrs.h \
83 85 inttypes.h \
84 86 iso646.h \
85 87 klpd.h \
86 88 langinfo.h \
87 89 lastlog.h \
88 90 lber.h \
89 91 ldap.h \
90 92 libelf.h \
91 93 libgen.h \
92 94 libintl.h \
93 95 libw.h \
94 96 libzonecfg.h \
95 97 limits.h \
96 98 linenum.h \
97 99 link.h \
98 100 listen.h \
99 101 locale.h \
100 102 macros.h \
101 103 malloc.h \
102 104 mdmn_changelog.h \
103 105 memory.h \
104 106 meta.h \
105 107 meta_runtime.h \
106 108 metadyn.h \
107 109 mon.h \
108 110 monetary.h \
109 111 mp.h \
110 112 mqueue.h \
111 113 nan.h \
112 114 ndbm.h \
113 115 ndpd.h \
114 116 netconfig.h \
115 117 netdb.h \
116 118 netdir.h \
117 119 nl_types.h \
118 120 nlist.h \
119 121 note.h \
120 122 nsctl.h \
121 123 nsswitch.h \
122 124 nss_common.h \
123 125 nss_dbdefs.h \
124 126 nss_netdir.h \
125 127 paths.h \
126 128 pcsample.h \
127 129 pfmt.h \
128 130 pkgdev.h \
129 131 pkginfo.h \
130 132 pkglocs.h \
131 133 pkgstrct.h \
132 134 pkgtrans.h \
133 135 poll.h \
134 136 port.h \
135 137 priv.h \
136 138 priv_utils.h \
137 139 proc_service.h \
138 140 procfs.h \
139 141 prof.h \
140 142 project.h \
141 143 pthread.h \
142 144 pw.h \
143 145 pwd.h \
144 146 rctl.h \
145 147 re_comp.h \
146 148 regex.h \
147 149 regexp.h \
148 150 resolv.h \
149 151 rje.h \
150 152 rtld_db.h \
151 153 sac.h \
152 154 sched.h \
153 155 schedctl.h \
154 156 sdssc.h \
155 157 search.h \
156 158 semaphore.h \
157 159 setjmp.h \
158 160 sgtty.h \
159 161 shadow.h \
160 162 siginfo.h \
161 163 signal.h \
162 164 spawn.h \
163 165 stdarg.h \
164 166 stdbool.h \
165 167 stddef.h \
166 168 stdint.h \
167 169 stdio.h \
168 170 stdio_ext.h \
169 171 stdio_tag.h \
170 172 stdio_impl.h \
171 173 stdlib.h \
172 174 storclass.h \
173 175 string.h \
174 176 strings.h \
175 177 stropts.h \
176 178 synch.h \
177 179 sysexits.h \
178 180 syslog.h \
179 181 syms.h \
180 182 tar.h \
181 183 termio.h \
182 184 termios.h \
183 185 thread.h \
184 186 thread_db.h \
185 187 time.h \
186 188 tiuser.h \
187 189 tzfile.h \
188 190 ucontext.h \
189 191 ucred.h \
190 192 ulimit.h \
191 193 unistd.h \
192 194 userdefs.h \
193 195 ustat.h \
194 196 utime.h \
195 197 utmp.h \
↓ open down ↓ |
161 lines elided |
↑ open up ↑ |
196 198 utmpx.h \
197 199 valtools.h \
198 200 values.h \
199 201 varargs.h \
200 202 wait.h \
201 203 wchar.h \
202 204 wchar_impl.h \
203 205 wctype.h \
204 206 widec.h \
205 207 wordexp.h \
208 + xlocale.h \
206 209 xti.h \
207 210 xti_inet.h \
208 211 zone.h
209 212
210 213 ISOHDRS = \
211 - ctype_c99.h \
212 214 ctype_iso.h \
213 215 limits_iso.h \
214 216 locale_iso.h \
215 217 setjmp_iso.h \
216 218 signal_iso.h \
217 219 stdarg_c99.h \
218 220 stdarg_iso.h \
219 221 stddef_iso.h \
220 222 stdio_c99.h \
221 223 stdio_iso.h \
222 224 stdlib_c99.h \
223 225 stdlib_iso.h \
224 226 string_iso.h \
225 227 time_iso.h \
226 228 wchar_c99.h \
227 229 wchar_iso.h \
228 - wctype_c99.h \
229 230 wctype_iso.h
230 231
231 232 ARPAHDRS = \
232 233 ftp.h \
233 234 inet.h \
234 235 nameser.h \
235 236 telnet.h \
236 237 tftp.h \
237 238 nameser_compat.h
238 239
239 240 AUDIOHDRS = \
240 241 au.h
241 242
242 243 UUIDHDRS = \
243 244 uuid.h
244 245
245 246 # rpcsvc headers which are just headers (not derived from a .x file)
246 247 RPCSVC_SRC_HDRS = \
247 248 bootparam.h \
248 249 daemon_utils.h \
249 250 dbm.h \
250 251 nis_db.h \
251 252 nislib.h \
252 253 svc_dg_priv.h \
253 254 yp_prot.h \
254 255 ypclnt.h \
255 256 yppasswd.h \
256 257 ypupd.h \
257 258 rpc_sztypes.h
258 259
259 260 # rpcsvc headers which are generated from .x files
260 261 RPCSVC_GEN_HDRS = \
261 262 bootparam_prot.h \
262 263 mount.h \
263 264 nfs_prot.h \
264 265 nfs4_prot.h \
265 266 nis.h \
266 267 rex.h \
267 268 rquota.h \
268 269 rstat.h \
269 270 rusers.h \
270 271 rwall.h \
271 272 spray.h \
272 273 ufs_prot.h \
273 274 nfs_acl.h
274 275
275 276 LVMRPCHDRS = \
276 277 mhdx.h mdiox.h meta_basic.h metad.h metamed.h metamhd.h metacl.h
277 278
278 279 SYMHDRASSERT = $(ROOT)/usr/include/iso/assert_iso.h
279 280 SYMHDRERRNO = $(ROOT)/usr/include/iso/errno_iso.h
280 281 SYMHDRFLOAT = $(ROOT)/usr/include/iso/float_iso.h
281 282 SYMHDRISO646 = $(ROOT)/usr/include/iso/iso646_iso.h
282 283
283 284 RPCGENFLAGS = -C -h
284 285 rpcsvc/rwall.h := RPCGENFLAGS += -M
285 286 meta_basic.h := RPCGENFLAGS += -M
286 287 metad.h := RPCGENFLAGS += -M
287 288 metamed.h := RPCGENFLAGS += -M
288 289 mhdx.h := RPCGENFLAGS += -M
289 290 mdiox.h := RPCGENFLAGS += -M
290 291 metamhd.h := RPCGENFLAGS += -M
291 292 metacl.h := RPCGENFLAGS += -M
292 293
293 294 # rpcsvc rpcgen source (.x files)
294 295 #
295 296 # yp.x is an attempt at codifying what was hand coded in RPCL.
296 297 # Unfortunately it doesn't quite work. (The handcoded stuff isn't
297 298 # expressable in RPCL) this is due to the fact that YP was written
298 299 # before rpcgen existed. Hence, yp_prot.h cannot be derived from yp.x
299 300 #
300 301 # There is no `.h' for nis_object.x because it is included by nis.x and
301 302 # the resulting .h is nis.h.
302 303
303 304 RPCSVCPROTS = \
304 305 $(RPCSVC_GEN_HDRS:%.h=%.x) nis_object.x yp.x
305 306
306 307 LVMSVCPROTS = \
307 308 $(LVMRPCHDRS:%.h=%.x)
308 309
309 310 RPCSVCHDRS= $(RPCSVC_SRC_HDRS) $(RPCSVC_GEN_HDRS)
310 311
311 312 PROTOHDRS= dumprestore.h routed.h ripngd.h rwhod.h timed.h
312 313
313 314 ROOTHDRS= $(HDRS:%=$(ROOT)/usr/include/%) \
314 315 $(KRB5HDRS:%=$(ROOT)/usr/include/kerberosv5/%) \
315 316 $(ISOHDRS:%=$(ROOT)/usr/include/iso/%) \
316 317 $(ARPAHDRS:%=$(ROOT)/usr/include/arpa/%) \
317 318 $(AUDIOHDRS:%=$(ROOT)/usr/include/audio/%) \
318 319 $(UUIDHDRS:%=$(ROOT)/usr/include/uuid/%) \
319 320 $(RPCSVCHDRS:%=$(ROOT)/usr/include/rpcsvc/%) \
320 321 $(RPCSVCPROTS:%=$(ROOT)/usr/include/rpcsvc/%) \
321 322 $(LVMRPCHDRS:%=$(ROOT)/usr/include/%) \
322 323 $(PROTOHDRS:%=$(ROOT)/usr/include/protocols/%)
323 324
324 325 DIRS= iso arpa audio rpcsvc protocols security uuid kerberosv5
325 326 ROOTDIRS= $(DIRS:%=$(ROOT)/usr/include/%)
326 327
327 328 SED= sed
328 329
329 330 # check files really don't exist
330 331 #
331 332 # should do something with the rpcsvc headers
332 333
333 334 iso/%.check: iso/%.h
334 335 $(DOT_H_CHECK)
335 336
336 337 arpa/%.check: arpa/%.h
337 338 $(DOT_H_CHECK)
338 339
339 340 audio/%.check: audio/%.h
340 341 $(DOT_H_CHECK)
341 342
342 343 rpcsvc/%.check: rpcsvc/%.h
343 344 $(DOT_H_CHECK)
344 345
345 346 rpcsvc/%.check: rpcsvc/%.x
346 347 $(DOT_X_CHECK)
347 348
348 349 protocols/%.check: protocols/%.h
349 350 $(DOT_H_CHECK)
350 351
351 352 kerberosv5/%.check: kerberosv5/%.h
352 353 $(DOT_H_CHECK)
353 354
354 355 uuid/%.check: uuid/%.h
355 356 $(DOT_H_CHECK)
356 357
357 358 # Note that the derived headers (rpcgen) are not checked at this time. These
358 359 # need work at the source level and rpcgen itself has a bug which causes a
359 360 # cstyle violation. Furthermore, there seems to be good reasons for the
360 361 # generated headers to not pass all of the hdrchk rules.
361 362 #
362 363 # Add the following to the CHECKHDRS list to activate the .x checks:
363 364 # $(RPCSVCPROTS:%.x=rpcsvc/%.check) \
364 365 #
365 366 CHECKHDRS= $(HDRS:%.h=%.check) \
366 367 $(KRB5HDRS:%.h=kerberosv5/%.check) \
367 368 $(ISOHDRS:%.h=iso/%.check) \
368 369 $(ARPAHDRS:%.h=arpa/%.check) \
369 370 $(AUDIOHDRS:%.h=audio/%.check) \
370 371 $(UUIDHDRS:%.h=uuid/%.check) \
371 372 $(RPCSVC_SRC_HDRS:%.h=rpcsvc/%.check) \
372 373 $(PROTOHDRS:%.h=protocols/%.check)
373 374
374 375 # headers which won't quite meet the standards...
375 376 #
376 377 # assert.h is required by ansi-c to *not* be idempotent (section 4.1.2).
377 378 # Hence the trailing guard is not the last thing in the file nor can it
378 379 # be without playing silly games.
379 380
380 381 assert.check := HDRCHK_TAIL = | grep -v "end guard wrong" | true
381 382
382 383 # install rules
383 384
384 385 $(ROOT)/usr/include/security/%: security/%
385 386 $(INS.file)
386 387
387 388 $(ROOT)/usr/include/protocols/%: protocols/%
388 389 $(INS.file)
389 390
390 391 $(ROOT)/usr/include/rpcsvc/%: rpcsvc/%
391 392 $(INS.file)
392 393
393 394 $(ROOT)/usr/include/kerberosv5/%: kerberosv5/%
394 395 $(INS.file)
395 396
396 397 $(ROOT)/usr/include/arpa/%: arpa/%
397 398 $(INS.file)
398 399
399 400 $(ROOT)/usr/include/audio/%: audio/%
400 401 $(INS.file)
401 402
402 403 $(ROOT)/usr/include/iso/%: iso/%
403 404 $(INS.file)
404 405
405 406 $(ROOT)/usr/include/uuid/%: uuid/%
406 407 $(INS.file)
407 408
408 409 $(ROOT)/usr/include/%: %
409 410 $(INS.file)
410 411
411 412 .KEEP_STATE:
412 413
413 414 .PARALLEL: $(ROOTHDRS) $(CHECKHDRS)
414 415
415 416 install_h: $(ROOTDIRS) .WAIT $(ROOTHDRS) $(SYMHDRASSERT) $(SYMHDRERRNO) \
416 417 $(SYMHDRFLOAT) $(SYMHDRISO646)
417 418
418 419 check: $(CHECKHDRS)
419 420
420 421 clean clobber:
421 422 $(RM) $(LVMRPCHDRS);
422 423 cd rpcsvc ; $(RM) $(RPCSVC_GEN_HDRS)
423 424
424 425 $(ROOTDIRS):
425 426 $(INS.dir)
426 427
427 428 $(SYMHDRASSERT):
428 429 -$(RM) $@; $(SYMLINK) ../assert.h $@
429 430
430 431 $(SYMHDRERRNO):
431 432 -$(RM) $@; $(SYMLINK) ../errno.h $@
432 433
433 434 $(SYMHDRFLOAT):
434 435 -$(RM) $@; $(SYMLINK) ../float.h $@
435 436
436 437 $(SYMHDRISO646):
437 438 -$(RM) $@; $(SYMLINK) ../iso646.h $@
438 439
439 440 rpcsvc/%.h: rpcsvc/%.x
440 441 $(RPCGEN) $(RPCGENFLAGS) $< -o $@
441 442
442 443 rpcsvc/nis.h: rpcsvc/nis.x
443 444 $(RPCGEN) $(RPCGENFLAGS) rpcsvc/nis.x |\
444 445 $(SED) -e '/EDIT_START/,$$ d' > $@
445 446
446 447 meta_basic.h: ../uts/common/sys/lvm/meta_basic.x
447 448 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/meta_basic.x | \
448 449 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
449 450 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
450 451 { print $0 } \
451 452 ' > $@
452 453
453 454 metad.h: metad.x
454 455 $(RPCGEN) $(RPCGENFLAGS) metad.x | \
455 456 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
456 457 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
457 458 { print $0 } \
458 459 ' > $@
459 460
460 461 mhdx.h: ../uts/common/sys/lvm/mhdx.x
461 462 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mhdx.x | \
462 463 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
463 464 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
464 465 { print $0 } \
465 466 ' > $@
466 467
467 468 mdiox.h: ../uts/common/sys/lvm/mdiox.x
468 469 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/mdiox.x | \
469 470 nawk '{sub(/sys\/lvm\/md_mhdx/, "mhdx"); print $$0}' | \
470 471 nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
471 472 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
472 473 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
473 474 { print $0 } \
474 475 ' > $@
475 476
476 477 metamed.h: ../uts/common/sys/lvm/metamed.x
477 478 $(RPCGEN) $(RPCGENFLAGS) ../uts/common/sys/lvm/metamed.x | \
478 479 nawk '{sub(/sys\/lvm\/md_basic/, "meta_basic"); print $$0}' | \
479 480 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
480 481 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
481 482 { print $0 } \
482 483 ' > $@
483 484
484 485 metamhd.h: metamhd.x
485 486 $(RPCGEN) $(RPCGENFLAGS) metamhd.x | \
486 487 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
487 488 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
488 489 { print $0 } \
489 490 ' > $@
490 491
491 492 metacl.h: metacl.x
492 493 $(RPCGEN) $(RPCGENFLAGS) metacl.x | \
493 494 awk '/<synch.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
494 495 /<thread.h>/ { print "#ifdef _REENTRANT"; print $$0; print "#endif\t/* _REENTRANT */"; next } \
495 496 { print $0 } \
496 497 ' > $@
↓ open down ↓ |
258 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX