Print this page
9704 move socket functions to libc
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libc/i386/Makefile.com
+++ new/usr/src/lib/libc/i386/Makefile.com
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 (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2016 Joyent, Inc.
25 25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
26 26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
27 27 # Copyright 2018 Nexenta Systems, Inc.
28 28 #
29 29
30 30 LIBCDIR= $(SRC)/lib/libc
31 31 LIB_PIC= libc_pic.a
32 32 VERS= .1
33 33 CPP= /usr/lib/cpp
34 34 TARGET_ARCH= i386
35 35
36 36 # include comm page definitions
37 37 include $(SRC)/lib/commpage/Makefile.shared.com
38 38 include $(SRC)/lib/commpage/Makefile.shared.targ
39 39
40 40 VALUES= values-Xa.o
41 41
42 42 # objects are grouped by source directory
43 43
44 44 # local objects
45 45 STRETS=
46 46
47 47 CRTOBJS= \
48 48 cerror.o \
49 49 cerror64.o
50 50
51 51 DYNOBJS= \
52 52 _rtbootld.o
53 53
54 54 FPOBJS= \
55 55 _D_cplx_div.o \
56 56 _D_cplx_div_ix.o \
57 57 _D_cplx_div_rx.o \
58 58 _D_cplx_lr_div.o \
59 59 _D_cplx_lr_div_ix.o \
60 60 _D_cplx_lr_div_rx.o \
61 61 _D_cplx_mul.o \
62 62 _F_cplx_div.o \
63 63 _F_cplx_div_ix.o \
64 64 _F_cplx_div_rx.o \
65 65 _F_cplx_lr_div.o \
66 66 _F_cplx_lr_div_ix.o \
67 67 _F_cplx_lr_div_rx.o \
68 68 _F_cplx_mul.o \
69 69 _X_cplx_div.o \
70 70 _X_cplx_div_ix.o \
71 71 _X_cplx_div_rx.o \
72 72 _X_cplx_lr_div.o \
73 73 _X_cplx_lr_div_ix.o \
74 74 _X_cplx_lr_div_rx.o \
75 75 _X_cplx_mul.o \
76 76 fpgetmask.o \
77 77 fpgetround.o \
78 78 fpgetsticky.o \
79 79 fpsetmask.o \
80 80 fpsetround.o \
81 81 fpsetsticky.o \
82 82 fpstart.o \
83 83 ieee.o
84 84
85 85 FPASMOBJS= \
86 86 __xgetRD.o \
87 87 _base_il.o \
88 88 _xtoll.o \
89 89 _xtoull.o \
90 90 fpcw.o
91 91
92 92 ATOMICOBJS= \
93 93 atomic.o
94 94
95 95 CHACHAOBJS= \
96 96 chacha.o
97 97
98 98 XATTROBJS= \
99 99 xattr_common.o
100 100
101 101 COMOBJS= \
102 102 bcmp.o \
103 103 bcopy.o \
104 104 bsearch.o \
105 105 bzero.o \
106 106 qsort.o \
107 107 strtol.o \
108 108 strtoul.o \
109 109 strtoll.o \
110 110 strtoull.o
111 111
112 112 DTRACEOBJS= \
113 113 dtrace_data.o
114 114
115 115 SECFLAGSOBJS= \
116 116 secflags.o
117 117
118 118 GENOBJS= \
119 119 $(COMMPAGE_OBJS) \
120 120 _div64.o \
121 121 _divdi3.o \
122 122 _getsp.o \
123 123 _mul64.o \
124 124 abs.o \
125 125 alloca.o \
126 126 arc4random.o \
127 127 arc4random_uniform.o \
128 128 byteorder.o \
129 129 byteorder64.o \
130 130 cuexit.o \
131 131 ecvt.o \
132 132 endian.o \
133 133 errlst.o \
134 134 i386_data.o \
135 135 ladd.o \
136 136 ldivide.o \
137 137 lmul.o \
138 138 lock.o \
139 139 lshiftl.o \
140 140 lsign.o \
141 141 lsub.o \
142 142 makectxt.o \
143 143 memccpy.o \
144 144 memchr.o \
145 145 memcmp.o \
146 146 memcpy.o \
147 147 memset.o \
148 148 new_list.o \
149 149 setjmp.o \
150 150 siginfolst.o \
151 151 siglongjmp.o \
152 152 strcat.o \
153 153 strchr.o \
154 154 strcmp.o \
155 155 strcpy.o \
156 156 strlen.o \
157 157 strncat.o \
158 158 strncmp.o \
159 159 strncpy.o \
160 160 strnlen.o \
161 161 strrchr.o \
162 162 sync_instruction_memory.o
163 163
164 164 # sysobjs that contain large-file interfaces
165 165 COMSYSOBJS64= \
166 166 fstatvfs64.o \
167 167 getdents64.o \
168 168 getrlimit64.o \
169 169 lseek64.o \
170 170 mmap64.o \
171 171 pread64.o \
172 172 preadv64.o \
173 173 pwrite64.o \
174 174 pwritev64.o \
175 175 setrlimit64.o \
176 176 statvfs64.o
177 177
178 178 SYSOBJS64=
179 179
180 180 COMSYSOBJS= \
181 181 __clock_timer.o \
182 182 __getloadavg.o \
183 183 __rusagesys.o \
184 184 __signotify.o \
185 185 __sigrt.o \
186 186 __time.o \
187 187 _lgrp_home_fast.o \
188 188 _lgrpsys.o \
189 189 _nfssys.o \
190 190 _portfs.o \
191 191 _pset.o \
192 192 _rpcsys.o \
193 193 _sigaction.o \
194 194 _so_accept.o \
195 195 _so_bind.o \
196 196 _so_connect.o \
197 197 _so_getpeername.o \
198 198 _so_getsockname.o \
199 199 _so_getsockopt.o \
200 200 _so_listen.o \
201 201 _so_recv.o \
202 202 _so_recvfrom.o \
203 203 _so_recvmsg.o \
204 204 _so_send.o \
205 205 _so_sendmsg.o \
206 206 _so_sendto.o \
207 207 _so_setsockopt.o \
208 208 _so_shutdown.o \
209 209 _so_socket.o \
210 210 _so_socketpair.o \
211 211 _sockconfig.o \
212 212 acct.o \
213 213 acl.o \
214 214 adjtime.o \
215 215 alarm.o \
216 216 brk.o \
217 217 chdir.o \
218 218 chroot.o \
219 219 cladm.o \
220 220 close.o \
221 221 execve.o \
222 222 exit.o \
223 223 facl.o \
224 224 fchdir.o \
225 225 fchroot.o \
226 226 fdsync.o \
227 227 fpathconf.o \
228 228 fstatfs.o \
229 229 fstatvfs.o \
230 230 getcpuid.o \
231 231 getdents.o \
232 232 getegid.o \
233 233 geteuid.o \
234 234 getgid.o \
235 235 getgroups.o \
236 236 gethrtime.o \
237 237 getitimer.o \
238 238 getmsg.o \
239 239 getpid.o \
240 240 getpmsg.o \
241 241 getppid.o \
242 242 getrandom.o \
243 243 getrlimit.o \
244 244 getuid.o \
245 245 gtty.o \
246 246 install_utrap.o \
247 247 ioctl.o \
248 248 kaio.o \
249 249 kill.o \
250 250 llseek.o \
251 251 lseek.o \
252 252 mmapobjsys.o \
253 253 memcntl.o \
254 254 mincore.o \
255 255 mmap.o \
256 256 modctl.o \
257 257 mount.o \
258 258 mprotect.o \
259 259 munmap.o \
260 260 nice.o \
261 261 ntp_adjtime.o \
262 262 ntp_gettime.o \
263 263 p_online.o \
264 264 pathconf.o \
265 265 pause.o \
266 266 pcsample.o \
267 267 pipe2.o \
268 268 pollsys.o \
269 269 pread.o \
270 270 preadv.o \
271 271 priocntlset.o \
272 272 processor_bind.o \
273 273 processor_info.o \
274 274 profil.o \
275 275 psecflagsset.o \
276 276 putmsg.o \
277 277 putpmsg.o \
278 278 pwrite.o \
279 279 pwritev.o \
280 280 read.o \
281 281 readv.o \
282 282 resolvepath.o \
283 283 seteguid.o \
284 284 setgid.o \
285 285 setgroups.o \
286 286 setitimer.o \
287 287 setreid.o \
288 288 setrlimit.o \
289 289 setuid.o \
290 290 sigaltstk.o \
291 291 sigprocmsk.o \
292 292 sigsendset.o \
293 293 sigsuspend.o \
294 294 statfs.o \
295 295 statvfs.o \
296 296 stty.o \
297 297 sync.o \
298 298 sysconfig.o \
299 299 sysfs.o \
300 300 sysinfo.o \
301 301 syslwp.o \
302 302 times.o \
303 303 ulimit.o \
304 304 umask.o \
305 305 umount2.o \
306 306 utssys.o \
307 307 uucopy.o \
308 308 vhangup.o \
309 309 waitid.o \
310 310 write.o \
311 311 writev.o \
312 312 yield.o
313 313
314 314 SYSOBJS= \
315 315 __clock_gettime.o \
316 316 __clock_gettime_sys.o \
317 317 __getcontext.o \
318 318 __uadmin.o \
319 319 _lwp_mutex_unlock.o \
320 320 _stack_grow.o \
321 321 door.o \
322 322 forkx.o \
323 323 forkallx.o \
324 324 getcontext.o \
325 325 gettimeofday.o \
326 326 lwp_private.o \
327 327 nuname.o \
328 328 ptrace.o \
329 329 syscall.o \
330 330 sysi86.o \
331 331 tls_get_addr.o \
332 332 uadmin.o \
333 333 umount.o \
334 334 uname.o \
335 335 vforkx.o \
336 336 xstat.o
337 337
338 338 # objects under $(LIBCDIR)/port which contain transitional large file interfaces
339 339 PORTGEN64= \
340 340 _xftw64.o \
341 341 attropen64.o \
342 342 ftw64.o \
343 343 mkstemp64.o \
344 344 nftw64.o \
345 345 tell64.o \
346 346 truncate64.o
347 347
348 348 # objects from source under $(LIBCDIR)/port
349 349 PORTFP= \
350 350 __flt_decim.o \
351 351 __flt_rounds.o \
352 352 __tbl_10_b.o \
353 353 __tbl_10_h.o \
354 354 __tbl_10_s.o \
355 355 __tbl_2_b.o \
356 356 __tbl_2_h.o \
357 357 __tbl_2_s.o \
358 358 __tbl_fdq.o \
359 359 __tbl_tens.o \
360 360 __x_power.o \
361 361 _base_sup.o \
362 362 aconvert.o \
363 363 decimal_bin.o \
364 364 double_decim.o \
365 365 econvert.o \
366 366 fconvert.o \
367 367 file_decim.o \
368 368 finite.o \
369 369 fp_data.o \
370 370 func_decim.o \
371 371 gconvert.o \
372 372 hex_bin.o \
373 373 ieee_globals.o \
374 374 pack_float.o \
375 375 sigfpe.o \
376 376 string_decim.o
377 377
378 378 PORTGEN= \
379 379 _env_data.o \
380 380 _xftw.o \
381 381 a64l.o \
382 382 abort.o \
383 383 addsev.o \
384 384 ascii_strcasecmp.o \
385 385 ascii_strncasecmp.o \
386 386 assert.o \
387 387 atexit.o \
388 388 atfork.o \
389 389 atof.o \
390 390 atoi.o \
391 391 atol.o \
392 392 atoll.o \
393 393 attrat.o \
394 394 attropen.o \
395 395 basename.o \
396 396 calloc.o \
397 397 catgets.o \
398 398 catopen.o \
399 399 cfgetispeed.o \
400 400 cfgetospeed.o \
401 401 cfree.o \
402 402 cfsetispeed.o \
403 403 cfsetospeed.o \
404 404 cftime.o \
405 405 clock.o \
406 406 closedir.o \
407 407 closefrom.o \
408 408 confstr.o \
409 409 crypt.o \
410 410 csetlen.o \
411 411 ctime.o \
412 412 ctime_r.o \
413 413 daemon.o \
414 414 deflt.o \
415 415 directio.o \
416 416 dirname.o \
417 417 div.o \
418 418 drand48.o \
419 419 dup.o \
420 420 env_data.o \
421 421 err.o \
422 422 errno.o \
423 423 euclen.o \
424 424 event_port.o \
425 425 execvp.o \
426 426 explicit_bzero.o \
427 427 fattach.o \
428 428 fdetach.o \
429 429 fdopendir.o \
430 430 ffs.o \
431 431 flock.o \
432 432 fls.o \
433 433 fmtmsg.o \
434 434 freezero.o \
435 435 ftime.o \
436 436 ftok.o \
437 437 fts.o \
438 438 ftw.o \
439 439 gcvt.o \
440 440 get_nprocs.o \
441 441 getauxv.o \
442 442 getcwd.o \
443 443 getdate_err.o \
444 444 getdtblsize.o \
445 445 getentropy.o \
446 446 getenv.o \
447 447 getexecname.o \
448 448 getgrnam.o \
449 449 getgrnam_r.o \
450 450 gethostid.o \
451 451 gethostname.o \
452 452 gethz.o \
453 453 getisax.o \
454 454 getloadavg.o \
455 455 getlogin.o \
456 456 getmntent.o \
457 457 getnetgrent.o \
458 458 getopt.o \
459 459 getopt_long.o \
460 460 getpagesize.o \
461 461 getpw.o \
462 462 getpwnam.o \
463 463 getpwnam_r.o \
464 464 getrusage.o \
465 465 getspent.o \
466 466 getspent_r.o \
467 467 getsubopt.o \
468 468 gettxt.o \
469 469 getusershell.o \
470 470 getut.o \
471 471 getutx.o \
472 472 getvfsent.o \
473 473 getwd.o \
474 474 getwidth.o \
475 475 getxby_door.o \
476 476 gtxt.o \
477 477 hsearch.o \
478 478 iconv.o \
479 479 imaxabs.o \
480 480 imaxdiv.o \
481 481 index.o \
482 482 initgroups.o \
483 483 insque.o \
484 484 isaexec.o \
485 485 isastream.o \
486 486 isatty.o \
487 487 killpg.o \
488 488 klpdlib.o \
489 489 l64a.o \
490 490 lckpwdf.o \
491 491 lconstants.o \
492 492 lexp10.o \
493 493 lfind.o \
494 494 lfmt.o \
495 495 lfmt_log.o \
496 496 llabs.o \
497 497 lldiv.o \
498 498 llog10.o \
499 499 lltostr.o \
500 500 localtime.o \
501 501 lsearch.o \
502 502 madvise.o \
503 503 malloc.o \
504 504 memalign.o \
505 505 memmem.o \
506 506 mkdev.o \
507 507 mkdtemp.o \
508 508 mkfifo.o \
509 509 mkstemp.o \
510 510 mktemp.o \
511 511 mlock.o \
512 512 mlockall.o \
513 513 mon.o \
514 514 msync.o \
515 515 munlock.o \
516 516 munlockall.o \
517 517 ndbm.o \
518 518 nftw.o \
519 519 nlspath_checks.o \
520 520 nsparse.o \
521 521 nss_common.o \
522 522 nss_dbdefs.o \
523 523 nss_deffinder.o \
524 524 opendir.o \
525 525 opt_data.o \
526 526 perror.o \
527 527 pfmt.o \
528 528 pfmt_data.o \
529 529 pfmt_print.o \
530 530 pipe.o \
531 531 plock.o \
532 532 poll.o \
533 533 posix_fadvise.o \
534 534 posix_fallocate.o \
535 535 posix_madvise.o \
536 536 posix_memalign.o \
537 537 priocntl.o \
538 538 priv_str_xlate.o \
539 539 privlib.o \
540 540 psecflags.o \
541 541 psiginfo.o \
542 542 psignal.o \
543 543 pt.o \
544 544 putpwent.o \
545 545 putspent.o \
546 546 raise.o \
547 547 rand.o \
548 548 random.o \
549 549 rctlops.o \
550 550 readdir.o \
551 551 readdir_r.o \
552 552 reallocarray.o \
553 553 recallocarray.o \
554 554 realpath.o \
555 555 reboot.o \
556 556 regexpr.o \
557 557 remove.o \
558 558 rewinddir.o \
559 559 rindex.o \
560 560 scandir.o \
561 561 seekdir.o \
562 562 select.o \
563 563 setlabel.o \
564 564 setpriority.o \
565 565 settimeofday.o \
566 566 sh_locks.o \
567 567 sigflag.o \
568 568 siglist.o \
569 569 sigsend.o \
570 570 sigsetops.o \
571 571 ssignal.o \
572 572 stack.o \
573 573 stpcpy.o \
574 574 stpncpy.o \
575 575 str2sig.o \
576 576 strcase_charmap.o \
577 577 strchrnul.o \
578 578 strcspn.o \
579 579 strdup.o \
580 580 strerror.o \
581 581 strlcat.o \
582 582 strlcpy.o \
583 583 strndup.o \
584 584 strpbrk.o \
585 585 strsep.o \
586 586 strsignal.o \
587 587 strspn.o \
588 588 strstr.o \
589 589 strtod.o \
590 590 strtoimax.o \
591 591 strtok.o \
592 592 strtok_r.o \
593 593 strtonum.o \
594 594 strtoumax.o \
595 595 swab.o \
596 596 swapctl.o \
597 597 sysconf.o \
598 598 syslog.o \
599 599 tcdrain.o \
600 600 tcflow.o \
601 601 tcflush.o \
602 602 tcgetattr.o \
603 603 tcgetpgrp.o \
604 604 tcgetsid.o \
605 605 tcsendbreak.o \
606 606 tcsetattr.o \
607 607 tcsetpgrp.o \
608 608 tell.o \
609 609 telldir.o \
610 610 tfind.o \
611 611 time_data.o \
612 612 time_gdata.o \
613 613 timespec_get.o \
614 614 tls_data.o \
615 615 truncate.o \
616 616 tsdalloc.o \
617 617 tsearch.o \
618 618 ttyname.o \
619 619 ttyslot.o \
620 620 ualarm.o \
621 621 ucred.o \
622 622 valloc.o \
623 623 vlfmt.o \
624 624 vpfmt.o \
625 625 waitpid.o \
626 626 walkstack.o \
627 627 wdata.o \
628 628 xgetwidth.o \
629 629 xpg4.o \
630 630 xpg6.o
631 631
632 632 PORTINET= \
633 633 inet_lnaof.o \
634 634 inet_makeaddr.o \
635 635 inet_network.o \
636 636 inet_ntoa.o \
637 637 inet_ntop.o \
638 638 inet_pton.o
639 639
640 640 PORTPRINT_W= \
641 641 doprnt_w.o
642 642
643 643 PORTPRINT= \
644 644 asprintf.o \
645 645 doprnt.o \
646 646 fprintf.o \
647 647 printf.o \
648 648 snprintf.o \
649 649 sprintf.o \
650 650 vfprintf.o \
651 651 vprintf.o \
652 652 vsnprintf.o \
653 653 vsprintf.o \
654 654 vwprintf.o \
↓ open down ↓ |
654 lines elided |
↑ open up ↑ |
655 655 wprintf.o
656 656
657 657 # c89 variants to support 32-bit size of c89 u/intmax_t (32-bit libc only)
658 658 PORTPRINT_C89= \
659 659 vfprintf_c89.o \
660 660 vprintf_c89.o \
661 661 vsnprintf_c89.o \
662 662 vsprintf_c89.o \
663 663 vwprintf_c89.o
664 664
665 +PORTSOCKET= \
666 + sockatmark.o \
667 + socket.o \
668 + socketpair.o
669 +
665 670 PORTSTDIO_C89= \
666 671 vscanf_c89.o \
667 672 vwscanf_c89.o \
668 673
669 674 # portable stdio objects that contain large file interfaces.
670 675 # Note: fopen64 is a special case, as we build it small.
671 676 PORTSTDIO64= \
672 677 fopen64.o \
673 678 fpos64.o
674 679
675 680 PORTSTDIO_W= \
676 681 doscan_w.o
677 682
678 683 PORTSTDIO= \
679 684 __extensions.o \
680 685 _endopen.o \
681 686 _filbuf.o \
682 687 _findbuf.o \
683 688 _flsbuf.o \
684 689 _wrtchk.o \
685 690 clearerr.o \
686 691 ctermid.o \
687 692 ctermid_r.o \
688 693 cuserid.o \
689 694 data.o \
690 695 doscan.o \
691 696 fdopen.o \
692 697 feof.o \
693 698 ferror.o \
694 699 fgetc.o \
695 700 fgets.o \
696 701 fileno.o \
697 702 flockf.o \
698 703 flush.o \
699 704 fopen.o \
700 705 fpos.o \
701 706 fputc.o \
702 707 fputs.o \
703 708 fread.o \
704 709 fseek.o \
705 710 fseeko.o \
706 711 ftell.o \
707 712 ftello.o \
708 713 fwrite.o \
709 714 getc.o \
710 715 getchar.o \
711 716 getline.o \
712 717 getpass.o \
713 718 gets.o \
714 719 getw.o \
715 720 mse.o \
716 721 popen.o \
717 722 putc.o \
718 723 putchar.o \
719 724 puts.o \
720 725 putw.o \
721 726 rewind.o \
722 727 scanf.o \
723 728 setbuf.o \
724 729 setbuffer.o \
725 730 setvbuf.o \
726 731 system.o \
727 732 tempnam.o \
728 733 tmpfile.o \
729 734 tmpnam_r.o \
730 735 ungetc.o \
731 736 vscanf.o \
732 737 vwscanf.o \
733 738 wscanf.o
734 739
735 740 PORTI18N= \
736 741 getwchar.o \
737 742 putwchar.o \
738 743 putws.o \
739 744 strtows.o \
740 745 wcsnlen.o \
741 746 wcsstr.o \
742 747 wcstoimax.o \
743 748 wcstol.o \
744 749 wcstoul.o \
745 750 wcswcs.o \
746 751 wmemchr.o \
747 752 wmemcmp.o \
748 753 wmemcpy.o \
749 754 wmemmove.o \
750 755 wmemset.o \
751 756 wscat.o \
752 757 wschr.o \
753 758 wscmp.o \
754 759 wscpy.o \
755 760 wscspn.o \
756 761 wsdup.o \
757 762 wslen.o \
758 763 wsncat.o \
759 764 wsncmp.o \
760 765 wsncpy.o \
761 766 wspbrk.o \
762 767 wsprintf.o \
763 768 wsrchr.o \
764 769 wsscanf.o \
765 770 wsspn.o \
766 771 wstod.o \
767 772 wstok.o \
768 773 wstol.o \
769 774 wstoll.o \
770 775 wsxfrm.o \
771 776 gettext.o \
772 777 gettext_gnu.o \
773 778 gettext_real.o \
774 779 gettext_util.o \
775 780 plural_parser.o \
776 781 wdresolve.o \
777 782 _ctype.o \
778 783 isascii.o \
779 784 toascii.o
780 785
781 786 PORTI18N_COND= \
782 787 wcstol_longlong.o \
783 788 wcstoul_longlong.o
784 789
785 790 PORTLOCALE= \
786 791 big5.o \
787 792 btowc.o \
788 793 collate.o \
789 794 collcmp.o \
790 795 euc.o \
791 796 fnmatch.o \
792 797 fgetwc.o \
793 798 fgetws.o \
794 799 fix_grouping.o \
795 800 fputwc.o \
796 801 fputws.o \
797 802 fwide.o \
798 803 gb18030.o \
799 804 gb2312.o \
800 805 gbk.o \
801 806 getdate.o \
802 807 isdigit.o \
803 808 iswctype.o \
804 809 ldpart.o \
805 810 lmessages.o \
806 811 lnumeric.o \
807 812 lmonetary.o \
808 813 localeconv.o \
809 814 localeimpl.o \
810 815 mbftowc.o \
811 816 mblen.o \
812 817 mbrlen.o \
813 818 mbrtowc.o \
814 819 mbsinit.o \
815 820 mbsnrtowcs.o \
816 821 mbsrtowcs.o \
817 822 mbstowcs.o \
818 823 mbtowc.o \
819 824 mskanji.o \
820 825 nextwctype.o \
821 826 nl_langinfo.o \
822 827 none.o \
823 828 rune.o \
824 829 runetype.o \
825 830 setlocale.o \
826 831 setrunelocale.o \
827 832 strcasecmp.o \
828 833 strcasestr.o \
829 834 strcoll.o \
830 835 strfmon.o \
831 836 strftime.o \
832 837 strncasecmp.o \
833 838 strptime.o \
834 839 strxfrm.o \
835 840 table.o \
836 841 timelocal.o \
837 842 tolower.o \
838 843 towlower.o \
839 844 ungetwc.o \
840 845 utf8.o \
841 846 wcrtomb.o \
842 847 wcscasecmp.o \
843 848 wcscoll.o \
844 849 wcsftime.o \
845 850 wcsnrtombs.o \
846 851 wcsrtombs.o \
847 852 wcswidth.o \
848 853 wcstombs.o \
849 854 wcsxfrm.o \
850 855 wctob.o \
851 856 wctomb.o \
852 857 wctrans.o \
853 858 wctype.o \
854 859 wcwidth.o \
855 860 wscol.o
856 861
857 862 AIOOBJS= \
858 863 aio.o \
859 864 aio_alloc.o \
860 865 posix_aio.o
861 866
862 867 RTOBJS= \
863 868 clock_timer.o \
864 869 mqueue.o \
865 870 pos4obj.o \
866 871 sched.o \
867 872 sem.o \
868 873 shm.o \
869 874 sigev_thread.o
870 875
871 876 TPOOLOBJS= \
872 877 thread_pool.o
873 878
874 879 THREADSOBJS= \
875 880 alloc.o \
876 881 assfail.o \
877 882 cancel.o \
878 883 c11_thr.o \
879 884 door_calls.o \
880 885 tmem.o \
881 886 pthr_attr.o \
882 887 pthr_barrier.o \
883 888 pthr_cond.o \
884 889 pthr_mutex.o \
885 890 pthr_rwlock.o \
886 891 pthread.o \
887 892 rwlock.o \
888 893 scalls.o \
889 894 sema.o \
890 895 sigaction.o \
891 896 spawn.o \
892 897 synch.o \
893 898 tdb_agent.o \
894 899 thr.o \
895 900 thread_interface.o \
896 901 tls.o \
897 902 tsd.o
898 903
899 904 THREADSMACHOBJS= \
900 905 machdep.o
901 906
902 907 THREADSASMOBJS= \
903 908 asm_subr.o
904 909
905 910 UNICODEOBJS= \
906 911 u8_textprep.o \
907 912 uconv.o
908 913
909 914 UNWINDMACHOBJS= \
910 915 unwind.o
911 916
912 917 UNWINDASMOBJS= \
913 918 unwind_frame.o
914 919
915 920 # objects that implement the transitional large file API
916 921 PORTSYS64= \
917 922 lockf64.o \
918 923 stat64.o
919 924
920 925 PORTSYS= \
921 926 _autofssys.o \
922 927 access.o \
923 928 acctctl.o \
924 929 bsd_signal.o \
925 930 chmod.o \
926 931 chown.o \
927 932 corectl.o \
928 933 epoll.o \
929 934 eventfd.o \
930 935 exacctsys.o \
931 936 execl.o \
932 937 execle.o \
933 938 execv.o \
934 939 fcntl.o \
935 940 getpagesizes.o \
936 941 getpeerucred.o \
937 942 inst_sync.o \
938 943 issetugid.o \
939 944 label.o \
940 945 link.o \
941 946 lockf.o \
942 947 lwp.o \
943 948 lwp_cond.o \
944 949 lwp_rwlock.o \
945 950 lwp_sigmask.o \
946 951 meminfosys.o \
947 952 mkdir.o \
948 953 mknod.o \
949 954 msgsys.o \
950 955 nfssys.o \
951 956 open.o \
952 957 pgrpsys.o \
953 958 posix_sigwait.o \
954 959 ppriv.o \
955 960 psetsys.o \
956 961 rctlsys.o \
957 962 readlink.o \
958 963 rename.o \
959 964 sbrk.o \
960 965 semsys.o \
961 966 set_errno.o \
962 967 sharefs.o \
963 968 shmsys.o \
964 969 sidsys.o \
965 970 siginterrupt.o \
966 971 signal.o \
967 972 signalfd.o \
968 973 sigpending.o \
969 974 sigstack.o \
970 975 stat.o \
971 976 symlink.o \
972 977 tasksys.o \
973 978 time.o \
974 979 time_util.o \
975 980 timerfd.o \
976 981 ucontext.o \
977 982 unlink.o \
978 983 ustat.o \
979 984 utimesys.o \
980 985 zone.o
981 986
982 987 PORTREGEX= \
983 988 glob.o \
984 989 regcmp.o \
985 990 regcomp.o \
986 991 regerror.o \
987 992 regex.o \
988 993 regexec.o \
989 994 regfree.o \
990 995 wordexp.o
991 996
992 997 PORTREGEX64= \
993 998 glob64.o
994 999
995 1000 MOSTOBJS= \
996 1001 $(STRETS) \
997 1002 $(CRTOBJS) \
998 1003 $(DYNOBJS) \
999 1004 $(FPOBJS) \
1000 1005 $(FPASMOBJS) \
1001 1006 $(ATOMICOBJS) \
1002 1007 $(CHACHAOBJS) \
1003 1008 $(XATTROBJS) \
1004 1009 $(COMOBJS) \
1005 1010 $(DTRACEOBJS) \
1006 1011 $(GENOBJS) \
1007 1012 $(PORTFP) \
1008 1013 $(PORTGEN) \
↓ open down ↓ |
334 lines elided |
↑ open up ↑ |
1009 1014 $(PORTGEN64) \
1010 1015 $(PORTI18N) \
1011 1016 $(PORTI18N_COND) \
1012 1017 $(PORTINET) \
1013 1018 $(PORTLOCALE) \
1014 1019 $(PORTPRINT) \
1015 1020 $(PORTPRINT_C89) \
1016 1021 $(PORTPRINT_W) \
1017 1022 $(PORTREGEX) \
1018 1023 $(PORTREGEX64) \
1024 + $(PORTSOCKET) \
1019 1025 $(PORTSTDIO) \
1020 1026 $(PORTSTDIO64) \
1021 1027 $(PORTSTDIO_C89) \
1022 1028 $(PORTSTDIO_W) \
1023 1029 $(PORTSYS) \
1024 1030 $(PORTSYS64) \
1025 1031 $(AIOOBJS) \
1026 1032 $(RTOBJS) \
1027 1033 $(SECFLAGSOBJS) \
1028 1034 $(TPOOLOBJS) \
1029 1035 $(THREADSOBJS) \
1030 1036 $(THREADSMACHOBJS) \
1031 1037 $(THREADSASMOBJS) \
1032 1038 $(UNICODEOBJS) \
1033 1039 $(UNWINDMACHOBJS) \
1034 1040 $(UNWINDASMOBJS) \
1035 1041 $(COMSYSOBJS) \
1036 1042 $(SYSOBJS) \
1037 1043 $(COMSYSOBJS64) \
1038 1044 $(SYSOBJS64) \
1039 1045 $(VALUES)
1040 1046
1041 1047 TRACEOBJS= \
1042 1048 plockstat.o
1043 1049
1044 1050 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1045 1051 # modules whose source is provided in the $(SRC)/lib/crt directory.
1046 1052 # This must be done because otherwise the Sun C compiler would insert
1047 1053 # its own versions of these modules and those versions contain code
1048 1054 # to call out to C++ initialization functions. Such C++ initialization
1049 1055 # functions can call back into libc before thread initialization is
1050 1056 # complete and this leads to segmentation violations and other problems.
1051 1057 # Since libc contains no C++ code, linking with the minimal crti.o and
1052 1058 # crtn.o modules is safe and avoids the problems described above.
1053 1059 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1054 1060 CRTSRCS= ../../crt/i386
1055 1061
1056 1062 LDPASS_OFF= $(POUND_SIGN)
1057 1063
1058 1064 # include common library definitions
1059 1065 include ../../Makefile.lib
1060 1066
1061 1067 # we need to override the default SONAME here because we might
1062 1068 # be building a variant object (still libc.so.1, but different filename)
1063 1069 SONAME = libc.so.1
1064 1070
1065 1071 CFLAGS += $(CCVERBOSE) $(CTF_FLAGS)
1066 1072
1067 1073 # This is necessary to avoid problems with calling _ex_unwind().
1068 1074 # We probably don't want any inlining anyway.
1069 1075 XINLINE = -xinline=
1070 1076 CFLAGS += $(XINLINE)
1071 1077
1072 1078 CERRWARN += -_gcc=-Wno-parentheses
1073 1079 CERRWARN += -_gcc=-Wno-switch
1074 1080 CERRWARN += -_gcc=-Wno-uninitialized
1075 1081 CERRWARN += -_gcc=-Wno-unused-value
1076 1082 CERRWARN += -_gcc=-Wno-unused-label
1077 1083 CERRWARN += -_gcc=-Wno-unused-variable
1078 1084 CERRWARN += -_gcc=-Wno-type-limits
1079 1085 CERRWARN += -_gcc=-Wno-char-subscripts
1080 1086 CERRWARN += -_gcc=-Wno-clobbered
1081 1087 CERRWARN += -_gcc=-Wno-unused-function
1082 1088 CERRWARN += -_gcc=-Wno-address
1083 1089
1084 1090 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1085 1091 # enables ASSERT() checking in the threads portion of the library.
1086 1092 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1087 1093 THREAD_DEBUG =
1088 1094 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1089 1095
1090 1096 # Make string literals read-only to save memory.
1091 1097 CFLAGS += $(XSTRCONST)
1092 1098
1093 1099 ALTPICS= $(TRACEOBJS:%=pics/%)
1094 1100
1095 1101 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) \
1096 1102 $(EXTPICS) $(LDLIBS)
1097 1103
1098 1104 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1099 1105
1100 1106 #
1101 1107 # EXTN_CPPFLAGS and EXTN_CFLAGS set in enclosing Makefile
1102 1108 #
1103 1109 CFLAGS += $(EXTN_CFLAGS)
1104 1110 CPPFLAGS= -D_REENTRANT -Di386 $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1105 1111 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1106 1112 ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) $(i386_AS_XARCH)
1107 1113
1108 1114 # As a favor to the dtrace syscall provider, libc still calls the
1109 1115 # old syscall traps that have been obsoleted by the *at() interfaces.
1110 1116 # Delete this to compile libc using only the new *at() system call traps
1111 1117 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1112 1118
1113 1119 # Inform the run-time linker about libc specialized initialization
1114 1120 RTLDINFO = -z rtldinfo=tls_rtldinfo
1115 1121 DYNFLAGS += $(RTLDINFO)
1116 1122
1117 1123 # Force libc's internal references to be resolved immediately upon loading
1118 1124 # in order to avoid critical region problems. Since almost all libc symbols
1119 1125 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1120 1126 DYNFLAGS += -znow
1121 1127
1122 1128 DYNFLAGS += -e __rtboot
1123 1129 DYNFLAGS += $(EXTN_DYNFLAGS)
1124 1130
1125 1131 # Inform the kernel about the initial DTrace area (in case
1126 1132 # libc is being used as the interpreter / runtime linker).
1127 1133 DTRACE_DATA = -zdtrace=dtrace_data
1128 1134 DYNFLAGS += $(DTRACE_DATA)
1129 1135
1130 1136 # DTrace needs an executable data segment.
1131 1137 MAPFILE.NED=
1132 1138
1133 1139 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1134 1140
1135 1141 # Override this top level flag so the compiler builds in its native
1136 1142 # C99 mode. This has been enabled to support the complex arithmetic
1137 1143 # added to libc.
1138 1144 CSTD= $(CSTD_GNU99)
1139 1145
1140 1146 # libc method of building an archive
1141 1147 # The "$(GREP) -v ' L '" part is necessary only until
1142 1148 # lorder is fixed to ignore thread-local variables.
1143 1149 BUILD.AR= $(RM) $@ ; \
1144 1150 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1145 1151
1146 1152 # extra files for the clean target
1147 1153 CLEANFILES += \
1148 1154 $(LIBCDIR)/port/gen/errlst.c \
1149 1155 $(LIBCDIR)/port/gen/new_list.c \
1150 1156 assym.h \
1151 1157 genassym \
1152 1158 crt/_rtld.s \
1153 1159 crt/_rtbootld.s \
1154 1160 pics/_rtbootld.o \
1155 1161 pics/crti.o \
1156 1162 pics/crtn.o \
1157 1163 $(ALTPICS)
1158 1164
1159 1165 CLOBBERFILES += $(LIB_PIC)
1160 1166
1161 1167 # list of C source for lint
1162 1168 SRCS= \
1163 1169 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
↓ open down ↓ |
135 lines elided |
↑ open up ↑ |
1164 1170 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1165 1171 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1166 1172 $(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c) \
1167 1173 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1168 1174 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1169 1175 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1170 1176 $(PORTINET:%.o=$(LIBCDIR)/port/inet/%.c) \
1171 1177 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1172 1178 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1173 1179 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1180 + $(PORTSOCKET:%.o=$(LIBCDIR)/port/socket/%.c) \
1174 1181 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1175 1182 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1176 1183 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1177 1184 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1178 1185 $(SECFLAGSOBJS:%.o=$(SRC)/common/secflags/%.c) \
1179 1186 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1180 1187 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1181 1188 $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c) \
1182 1189 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1183 1190 $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c) \
1184 1191 $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c) \
1185 1192 $(LIBCBASE)/gen/ecvt.c \
1186 1193 $(LIBCBASE)/gen/makectxt.c \
1187 1194 $(LIBCBASE)/gen/siginfolst.c \
1188 1195 $(LIBCBASE)/gen/siglongjmp.c \
1189 1196 $(LIBCBASE)/gen/strcmp.c \
1190 1197 $(LIBCBASE)/gen/sync_instruction_memory.c \
1191 1198 $(LIBCBASE)/sys/ptrace.c \
1192 1199 $(LIBCBASE)/sys/uadmin.c
1193 1200
1194 1201 # conditional assignments
1195 1202 $(DYNLIB) := CRTI = crti.o
1196 1203 $(DYNLIB) := CRTN = crtn.o
1197 1204
1198 1205 # Files which need the threads .il inline template
1199 1206 TIL= \
1200 1207 aio.o \
1201 1208 alloc.o \
1202 1209 assfail.o \
1203 1210 atexit.o \
1204 1211 atfork.o \
1205 1212 cancel.o \
1206 1213 door_calls.o \
1207 1214 err.o \
1208 1215 errno.o \
1209 1216 lwp.o \
1210 1217 ma.o \
1211 1218 machdep.o \
1212 1219 posix_aio.o \
1213 1220 pthr_attr.o \
1214 1221 pthr_barrier.o \
1215 1222 pthr_cond.o \
1216 1223 pthr_mutex.o \
1217 1224 pthr_rwlock.o \
1218 1225 pthread.o \
1219 1226 rand.o \
1220 1227 rwlock.o \
1221 1228 scalls.o \
1222 1229 sched.o \
1223 1230 sema.o \
1224 1231 sigaction.o \
1225 1232 sigev_thread.o \
1226 1233 spawn.o \
1227 1234 stack.o \
1228 1235 synch.o \
1229 1236 tdb_agent.o \
1230 1237 thr.o \
1231 1238 thread_interface.o \
1232 1239 thread_pool.o \
1233 1240 tls.o \
1234 1241 tsd.o \
1235 1242 tmem.o \
1236 1243 unwind.o
1237 1244
1238 1245 THREADS_INLINES = $(LIBCBASE)/threads/i386.il
1239 1246 $(TIL:%=pics/%) := CFLAGS += $(THREADS_INLINES)
1240 1247
1241 1248 # pics/mul64.o := CFLAGS += $(LIBCBASE)/crt/mul64.il
1242 1249
1243 1250 # large-file-aware components that should be built large
1244 1251
1245 1252 $(COMSYSOBJS64:%=pics/%) := \
1246 1253 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1247 1254
1248 1255 $(SYSOBJS64:%=pics/%) := \
1249 1256 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1250 1257
1251 1258 $(PORTGEN64:%=pics/%) := \
1252 1259 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1253 1260
1254 1261 $(PORTREGEX64:%=pics/%) := \
1255 1262 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1256 1263
1257 1264 $(PORTSTDIO64:%=pics/%) := \
1258 1265 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1259 1266
1260 1267 $(PORTSYS64:%=pics/%) := \
1261 1268 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1262 1269
1263 1270 $(PORTSTDIO_W:%=pics/%) := \
1264 1271 CPPFLAGS += -D_WIDE
1265 1272
1266 1273 $(PORTPRINT_W:%=pics/%) := \
1267 1274 CPPFLAGS += -D_WIDE
1268 1275
1269 1276 $(PORTPRINT_C89:%=pics/%) := \
1270 1277 CPPFLAGS += -D_C89_INTMAX32
1271 1278
1272 1279 $(PORTSTDIO_C89:%=pics/%) := \
1273 1280 CPPFLAGS += -D_C89_INTMAX32
1274 1281
1275 1282 $(PORTI18N_COND:%=pics/%) := \
1276 1283 CPPFLAGS += -D_WCS_LONGLONG
1277 1284
1278 1285 pics/arc4random.o := CPPFLAGS += -I$(SRC)/common/crypto/chacha
1279 1286
1280 1287 pics/__clock_gettime.o := CPPFLAGS += $(COMMPAGE_CPPFLAGS)
1281 1288
1282 1289 .KEEP_STATE:
1283 1290
1284 1291 all: $(LIBS) $(LIB_PIC)
1285 1292
1286 1293 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1287 1294 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1288 1295 lint := LINTFLAGS += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
1289 1296
1290 1297 lint:
1291 1298 @echo $(LINT.c) ...
1292 1299 @$(LINT.c) $(SRCS) $(LDLIBS)
1293 1300
1294 1301 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1295 1302 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1296 1303 $(LINTLIB):= LINTFLAGS=-nvx
1297 1304
1298 1305 # object files that depend on inline template
1299 1306 $(TIL:%=pics/%): $(LIBCBASE)/threads/i386.il
1300 1307 # pics/mul64.o: $(LIBCBASE)/crt/mul64.il
1301 1308
1302 1309 # include common libc targets
1303 1310 include $(LIBCDIR)/Makefile.targ
1304 1311
1305 1312 # We need to strip out all CTF and DOF data from the static library
1306 1313 $(LIB_PIC) := DIR = pics
1307 1314 $(LIB_PIC): pics $$(PICS)
1308 1315 $(BUILD.AR)
1309 1316 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1310 1317 $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1311 1318 $(AR) -ts $@ > /dev/null
1312 1319 $(POST_PROCESS_A)
1313 1320
1314 1321 $(LIBCBASE)/crt/_rtbootld.s: $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.c
1315 1322 $(CC) $(CPPFLAGS) $(CTF_FLAGS) -O -S $(C_PICFLAGS) \
1316 1323 $(LIBCBASE)/crt/_rtld.c -o $(LIBCBASE)/crt/_rtld.s
1317 1324 $(CAT) $(LIBCBASE)/crt/_rtboot.s $(LIBCBASE)/crt/_rtld.s > $@
1318 1325 $(RM) $(LIBCBASE)/crt/_rtld.s
1319 1326
1320 1327 # partially built from C source
1321 1328 pics/_rtbootld.o: $(LIBCBASE)/crt/_rtbootld.s
1322 1329 $(AS) $(ASFLAGS) $(LIBCBASE)/crt/_rtbootld.s -o $@
1323 1330 $(CTFCONVERT_O)
1324 1331
1325 1332 ASSYMDEP_OBJS= \
1326 1333 _lwp_mutex_unlock.o \
1327 1334 _stack_grow.o \
1328 1335 getcontext.o \
1329 1336 setjmp.o \
1330 1337 tls_get_addr.o \
1331 1338 vforkx.o
1332 1339
1333 1340 $(ASSYMDEP_OBJS:%=pics/%) := CPPFLAGS += -I.
1334 1341
1335 1342 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1336 1343
1337 1344 # assym.h build rules
1338 1345
1339 1346 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1340 1347
1341 1348 genassym: $(GENASSYM_C)
1342 1349 $(NATIVECC) $(NATIVE_CFLAGS) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1343 1350 -D__EXTENSIONS__ $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
1344 1351
1345 1352 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1346 1353
1347 1354 assym.h: $(OFFSETS) genassym
1348 1355 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1349 1356 ./genassym >>$@
1350 1357
1351 1358 # derived C source and related explicit dependencies
1352 1359 $(LIBCDIR)/port/gen/errlst.c + \
1353 1360 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1354 1361 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1355 1362
1356 1363 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1357 1364
1358 1365 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
↓ open down ↓ |
175 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX