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