Unleashed v1.4
[unleashed.git] / usr / src / lib / libc / amd64 / Makefile
blobae738b31aa5d7d6f80f19f9c4c1966c2992dba80
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2016 Joyent, Inc.
25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
27 # Copyright 2018 Nexenta Systems, Inc.
28 # Copyright (c) 2019, Joyent, Inc.
31 LIBCBASE= .
32 LIBCDIR= $(SRC)/lib/libc
33 LIBRARY= libc.a
34 LIB_PIC= libc_pic.a
35 VERS= .1
36 TARGET_ARCH= amd64
38 # include comm page definitions
39 include $(SRC)/lib/commpage/Makefile.shared.com
40 include $(SRC)/lib/commpage/Makefile.shared.targ
42 # objects are grouped by source directory
44 # local objects
45 STRETS=
47 CRTOBJS= \
48 cerror.o
50 DYNOBJS=
52 FPOBJS= \
53 fpgetmask.o \
54 fpgetround.o \
55 fpsetmask.o \
56 fpsetround.o \
57 fpstart.o \
58 ieee.o
60 I386FPOBJS= \
61 _D_cplx_div.o \
62 _D_cplx_div_ix.o \
63 _D_cplx_div_rx.o \
64 _D_cplx_lr_div.o \
65 _D_cplx_lr_div_ix.o \
66 _D_cplx_lr_div_rx.o \
67 _D_cplx_mul.o \
68 _F_cplx_div.o \
69 _F_cplx_div_ix.o \
70 _F_cplx_div_rx.o \
71 _F_cplx_lr_div.o \
72 _F_cplx_lr_div_ix.o \
73 _F_cplx_lr_div_rx.o \
74 _F_cplx_mul.o \
75 _X_cplx_div.o \
76 _X_cplx_div_ix.o \
77 _X_cplx_div_rx.o \
78 _X_cplx_lr_div.o \
79 _X_cplx_lr_div_ix.o \
80 _X_cplx_lr_div_rx.o \
81 _X_cplx_mul.o
83 FPASMOBJS= \
84 __xgetRD.o \
85 _xtoll.o \
86 _xtoull.o \
87 _base_il.o \
88 fpcw.o \
89 fpgetsticky.o \
90 fpsetsticky.o
92 ATOMICOBJS= \
93 atomic.o
95 CHACHAOBJS= \
96 chacha.o
98 XATTROBJS= \
99 xattr_common.o
100 COMOBJS= \
101 bcmp.o \
102 bcopy.o \
103 bsearch.o \
104 bzero.o \
105 qsort.o \
106 strtol.o \
107 strtoul.o \
108 strtoll.o \
109 strtoull.o
111 GENOBJS= \
112 $(COMMPAGE_OBJS) \
113 _getsp.o \
114 abs.o \
115 alloca.o \
116 arc4random.o \
117 arc4random_uniform.o \
118 attrat.o \
119 byteorder.o \
120 cuexit.o \
121 ecvt.o \
122 endian.o \
123 errlst.o \
124 fts.o \
125 freezero.o \
126 amd64_data.o \
127 ldivide.o \
128 lock.o \
129 makectxt.o \
130 memccpy.o \
131 memchr.o \
132 memcmp.o \
133 memcpy.o \
134 memset.o \
135 new_list.o \
136 proc64_id.o \
137 proc64_support.o \
138 reallocarray.o \
139 recallocarray.o \
140 setjmp.o \
141 siginfolst.o \
142 siglongjmp.o \
143 strcmp.o \
144 strcpy.o \
145 strlen.o \
146 strncmp.o \
147 strncpy.o \
148 strnlen.o \
149 sync_instruction_memory.o\
150 unvis.o \
151 vis.o
153 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
154 # This macro should ALWAYS be empty; native APIs are already 'large file'.
155 COMSYSOBJS64=
157 SYSOBJS64=
159 COMSYSOBJS= \
160 __clock_timer.o \
161 __getloadavg.o \
162 __rusagesys.o \
163 __signotify.o \
164 __sigrt.o \
165 __time.o \
166 _lgrp_home_fast.o \
167 _lgrpsys.o \
168 _nfssys.o \
169 _portfs.o \
170 _pset.o \
171 _rpcsys.o \
172 _sigaction.o \
173 _so_accept.o \
174 _so_bind.o \
175 _so_connect.o \
176 _so_getpeername.o \
177 _so_getsockname.o \
178 _so_getsockopt.o \
179 _so_listen.o \
180 _so_recv.o \
181 _so_recvfrom.o \
182 _so_recvmsg.o \
183 _so_send.o \
184 _so_sendmsg.o \
185 _so_sendto.o \
186 _so_setsockopt.o \
187 _so_shutdown.o \
188 _so_socket.o \
189 _so_socketpair.o \
190 _sockconfig.o \
191 acct.o \
192 acl.o \
193 adjtime.o \
194 alarm.o \
195 brk.o \
196 chdir.o \
197 chroot.o \
198 close.o \
199 execve.o \
200 exit.o \
201 facl.o \
202 fchdir.o \
203 fchroot.o \
204 fdsync.o \
205 fpathconf.o \
206 fstatfs.o \
207 fstatvfs.o \
208 getcpuid.o \
209 getdents.o \
210 getegid.o \
211 geteuid.o \
212 getgid.o \
213 getgroups.o \
214 gethrtime.o \
215 getitimer.o \
216 getmsg.o \
217 getpid.o \
218 getpmsg.o \
219 getppid.o \
220 getrandom.o \
221 getrlimit.o \
222 getuid.o \
223 install_utrap.o \
224 ioctl.o \
225 kaio.o \
226 kill.o \
227 lseek.o \
228 mmapobjsys.o \
229 memcntl.o \
230 mincore.o \
231 mmap.o \
232 modctl.o \
233 mount.o \
234 mprotect.o \
235 munmap.o \
236 nice.o \
237 ntp_adjtime.o \
238 ntp_gettime.o \
239 p_online.o \
240 pathconf.o \
241 pause.o \
242 pcsample.o \
243 pipe2.o \
244 pollsys.o \
245 pread.o \
246 preadv.o \
247 priocntlset.o \
248 processor_bind.o \
249 processor_info.o \
250 profil.o \
251 psecflagsset.o \
252 putmsg.o \
253 putpmsg.o \
254 pwrite.o \
255 pwritev.o \
256 read.o \
257 readv.o \
258 resolvepath.o \
259 seteguid.o \
260 setgid.o \
261 setgroups.o \
262 setitimer.o \
263 setreid.o \
264 setrlimit.o \
265 setuid.o \
266 sigaltstk.o \
267 sigprocmsk.o \
268 sigsendset.o \
269 sigsuspend.o \
270 statfs.o \
271 statvfs.o \
272 sync.o \
273 sysconfig.o \
274 sysfs.o \
275 sysinfo.o \
276 syslwp.o \
277 times.o \
278 ulimit.o \
279 umask.o \
280 umount2.o \
281 uname.o \
282 utssys.o \
283 uucopy.o \
284 vhangup.o \
285 waitid.o \
286 write.o \
287 writev.o \
288 yield.o
290 SYSOBJS= \
291 __clock_gettime.o \
292 __clock_gettime_sys.o \
293 __getcontext.o \
294 __uadmin.o \
295 _lwp_mutex_unlock.o \
296 _stack_grow.o \
297 door.o \
298 forkx.o \
299 forkallx.o \
300 getcontext.o \
301 gettimeofday.o \
302 lwp_private.o \
303 syscall.o \
304 sysi86.o \
305 tls_get_addr.o \
306 uadmin.o \
307 umount.o \
308 vforkx.o
310 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
311 # This macro should ALWAYS be empty; native APIs are already 'large file'.
312 PORTGEN64=
314 # objects from source under $(LIBCDIR)/port
315 PORTFP= \
316 __flt_decim.o \
317 __flt_rounds.o \
318 __tbl_10_b.o \
319 __tbl_10_h.o \
320 __tbl_10_s.o \
321 __tbl_2_b.o \
322 __tbl_2_h.o \
323 __tbl_2_s.o \
324 __tbl_fdq.o \
325 __tbl_tens.o \
326 __x_power.o \
327 _base_sup.o \
328 aconvert.o \
329 decimal_bin.o \
330 double_decim.o \
331 econvert.o \
332 fconvert.o \
333 file_decim.o \
334 finite.o \
335 func_decim.o \
336 gconvert.o \
337 hex_bin.o \
338 ieee_globals.o \
339 pack_float.o \
340 sigfpe.o \
341 string_decim.o
343 PORTGEN= \
344 _env_data.o \
345 _xftw.o \
346 a64l.o \
347 abort.o \
348 addsev.o \
349 ascii_strcasecmp.o \
350 ascii_strncasecmp.o \
351 assert.o \
352 atof.o \
353 atoi.o \
354 atol.o \
355 atoll.o \
356 attropen.o \
357 atexit.o \
358 atfork.o \
359 base64.o \
360 basename.o \
361 calloc.o \
362 catgets.o \
363 catopen.o \
364 cfgetispeed.o \
365 cfgetospeed.o \
366 cfree.o \
367 cfsetispeed.o \
368 cfsetospeed.o \
369 cftime.o \
370 clock.o \
371 closedir.o \
372 closefrom.o \
373 confstr.o \
374 crypt.o \
375 csetlen.o \
376 ctime.o \
377 daemon.o \
378 deflt.o \
379 directio.o \
380 dirname.o \
381 div.o \
382 drand48.o \
383 dup.o \
384 env_data.o \
385 err.o \
386 errno.o \
387 euclen.o \
388 event_port.o \
389 execvp.o \
390 explicit_bzero.o \
391 fattach.o \
392 fdetach.o \
393 fdopendir.o \
394 ffs.o \
395 flock.o \
396 fls.o \
397 fmtmsg.o \
398 ftime.o \
399 ftok.o \
400 ftw.o \
401 gcvt.o \
402 getauxv.o \
403 getcwd.o \
404 getdate_err.o \
405 getdtblsize.o \
406 getentropy.o \
407 getenv.o \
408 getexecname.o \
409 getgrnam.o \
410 getgrnam_r.o \
411 gethostid.o \
412 gethostname.o \
413 gethz.o \
414 getisax.o \
415 getloadavg.o \
416 getlogin.o \
417 getmntent.o \
418 getnetgrent.o \
419 get_nprocs.o \
420 getopt.o \
421 getopt_long.o \
422 getpagesize.o \
423 getpwnam.o \
424 getpwnam_r.o \
425 getrusage.o \
426 getspent.o \
427 getspent_r.o \
428 getsubopt.o \
429 gettxt.o \
430 getusershell.o \
431 getut.o \
432 getutx.o \
433 getvfsent.o \
434 getwd.o \
435 getwidth.o \
436 getxby_door.o \
437 gtxt.o \
438 hsearch.o \
439 iconv.o \
440 imaxabs.o \
441 imaxdiv.o \
442 index.o \
443 initgroups.o \
444 insque.o \
445 isaexec.o \
446 isastream.o \
447 isatty.o \
448 killpg.o \
449 klpdlib.o \
450 l64a.o \
451 lckpwdf.o \
452 lconstants.o \
453 lexp10.o \
454 lfind.o \
455 lfmt.o \
456 lfmt_log.o \
457 lldiv.o \
458 llog10.o \
459 lltostr.o \
460 lmath.o \
461 localtime.o \
462 lsearch.o \
463 madvise.o \
464 malloc.o \
465 memalign.o \
466 memmem.o \
467 memset_s.o \
468 mkdev.o \
469 mkdtemp.o \
470 mkfifo.o \
471 mkstemp.o \
472 mktemp.o \
473 mlock.o \
474 mlockall.o \
475 mon.o \
476 msync.o \
477 munlock.o \
478 munlockall.o \
479 ndbm.o \
480 nftw.o \
481 nlspath_checks.o \
482 nsparse.o \
483 nss_common.o \
484 nss_dbdefs.o \
485 nss_deffinder.o \
486 opendir.o \
487 opt_data.o \
488 perror.o \
489 pfmt.o \
490 pfmt_data.o \
491 pfmt_print.o \
492 pipe.o \
493 plock.o \
494 poll.o \
495 posix_fadvise.o \
496 posix_fallocate.o \
497 posix_madvise.o \
498 posix_memalign.o \
499 priocntl.o \
500 privlib.o \
501 priv_str_xlate.o \
502 progname.o \
503 psecflags.o \
504 psiginfo.o \
505 psignal.o \
506 pt.o \
507 putpwent.o \
508 putspent.o \
509 raise.o \
510 rand.o \
511 random.o \
512 rctlops.o \
513 readdir.o \
514 readdir_r.o \
515 realpath.o \
516 reboot.o \
517 regexpr.o \
518 remove.o \
519 rewinddir.o \
520 rindex.o \
521 scandir.o \
522 seekdir.o \
523 select.o \
524 set_constraint_handler_s.o \
525 setlabel.o \
526 setmode.o \
527 setpriority.o \
528 settimeofday.o \
529 sh_locks.o \
530 sigflag.o \
531 siglist.o \
532 sigsend.o \
533 sigsetops.o \
534 ssignal.o \
535 stack.o \
536 stpcpy.o \
537 stpncpy.o \
538 str2sig.o \
539 strcase_charmap.o \
540 strcat.o \
541 strchr.o \
542 strchrnul.o \
543 strcspn.o \
544 strdup.o \
545 strerror.o \
546 strlcat.o \
547 strlcpy.o \
548 strncat.o \
549 strndup.o \
550 strpbrk.o \
551 strrchr.o \
552 strsep.o \
553 strsignal.o \
554 strspn.o \
555 strstr.o \
556 strtod.o \
557 strtoimax.o \
558 strtok.o \
559 strtok_r.o \
560 strtonum.o \
561 strtoumax.o \
562 swab.o \
563 swapctl.o \
564 sysconf.o \
565 syslog.o \
566 tcdrain.o \
567 tcflow.o \
568 tcflush.o \
569 tcgetattr.o \
570 tcgetpgrp.o \
571 tcgetsid.o \
572 tcsendbreak.o \
573 tcsetattr.o \
574 tcsetpgrp.o \
575 tell.o \
576 telldir.o \
577 tfind.o \
578 time_data.o \
579 time_gdata.o \
580 timespec_get.o \
581 tls_data.o \
582 truncate.o \
583 tsdalloc.o \
584 tsearch.o \
585 ttyname.o \
586 ttyslot.o \
587 ualarm.o \
588 ucred.o \
589 valloc.o \
590 vlfmt.o \
591 vpfmt.o \
592 waitpid.o \
593 walkstack.o \
594 wdata.o \
595 xgetwidth.o \
596 xpg4.o \
597 xpg6.o
599 PORTPRINT_W= \
600 doprnt_w.o
602 PORTPRINT= \
603 asprintf.o \
604 doprnt.o \
605 fprintf.o \
606 printf.o \
607 snprintf.o \
608 sprintf.o \
609 vfprintf.o \
610 vprintf.o \
611 vsnprintf.o \
612 vsprintf.o \
613 vwprintf.o \
614 wprintf.o
616 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
617 # This macro should ALWAYS be empty; native APIs are already 'large file'.
618 PORTSTDIO64=
620 PORTSTDIO_W= \
621 doscan_w.o
623 PORTSTDIO= \
624 __extensions.o \
625 _endopen.o \
626 _filbuf.o \
627 _findbuf.o \
628 _flsbuf.o \
629 _wrtchk.o \
630 clearerr.o \
631 ctermid.o \
632 ctermid_r.o \
633 cuserid.o \
634 data.o \
635 doscan.o \
636 fdopen.o \
637 feof.o \
638 ferror.o \
639 fgetc.o \
640 fgets.o \
641 fileno.o \
642 flockf.o \
643 flush.o \
644 fopen.o \
645 fpos.o \
646 fputc.o \
647 fputs.o \
648 fread.o \
649 fseek.o \
650 fseeko.o \
651 ftell.o \
652 ftello.o \
653 fwrite.o \
654 getc.o \
655 getchar.o \
656 getline.o \
657 getpass.o \
658 gets.o \
659 getw.o \
660 mse.o \
661 popen.o \
662 putc.o \
663 putchar.o \
664 puts.o \
665 putw.o \
666 rewind.o \
667 scanf.o \
668 setbuf.o \
669 setbuffer.o \
670 setvbuf.o \
671 system.o \
672 tempnam.o \
673 tmpfile.o \
674 tmpnam_r.o \
675 ungetc.o \
676 vscanf.o \
677 vwscanf.o \
678 wscanf.o
680 PORTI18N= \
681 getwchar.o \
682 putwchar.o \
683 putws.o \
684 strtows.o \
685 wcsnlen.o \
686 wcsstr.o \
687 wcstoimax.o \
688 wcstol.o \
689 wcstoul.o \
690 wcswcs.o \
691 wmemchr.o \
692 wmemcmp.o \
693 wmemcpy.o \
694 wmemmove.o \
695 wmemset.o \
696 wscat.o \
697 wschr.o \
698 wscmp.o \
699 wscpy.o \
700 wscspn.o \
701 wsdup.o \
702 wslen.o \
703 wsncat.o \
704 wsncmp.o \
705 wsncpy.o \
706 wspbrk.o \
707 wsprintf.o \
708 wsrchr.o \
709 wsscanf.o \
710 wsspn.o \
711 wstod.o \
712 wstok.o \
713 wstol.o \
714 wstoll.o \
715 wsxfrm.o \
716 gettext.o \
717 gettext_gnu.o \
718 gettext_real.o \
719 gettext_util.o \
720 plural_parser.o \
721 wdresolve.o \
722 _ctype.o \
723 isascii.o \
724 toascii.o
726 PORTI18N_COND= \
727 wcstol_longlong.o \
728 wcstoul_longlong.o
730 PORTINET= \
731 bindresvport.o \
732 bootparams_getbyname.o \
733 ether_addr.o \
734 getaddrinfo.o \
735 getifaddrs.o \
736 getnameinfo.o \
737 getnetent.o \
738 getnetent_r.o \
739 getprotoent.o \
740 getprotoent_r.o \
741 getservbyname_r.o \
742 getservent.o \
743 getservent_r.o \
744 inet6_opt.o \
745 inet6_rthdr.o \
746 inet_lnaof.o \
747 inet_makeaddr.o \
748 inet_network.o \
749 inet_ntoa.o \
750 inet_ntop.o \
751 inet_pton.o \
752 interface_id.o \
753 link_addr.o \
754 netmasks.o \
755 ruserpass.o \
756 sourcefilter.o
758 PORTLOCALE= \
759 big5.o \
760 btowc.o \
761 collate.o \
762 collcmp.o \
763 euc.o \
764 fnmatch.o \
765 fgetwc.o \
766 fgetws.o \
767 fix_grouping.o \
768 fputwc.o \
769 fputws.o \
770 fwide.o \
771 gb18030.o \
772 gb2312.o \
773 gbk.o \
774 getdate.o \
775 isdigit.o \
776 iswctype.o \
777 ldpart.o \
778 lmessages.o \
779 lnumeric.o \
780 lmonetary.o \
781 localeconv.o \
782 localeimpl.o \
783 mbftowc.o \
784 mblen.o \
785 mbrlen.o \
786 mbrtowc.o \
787 mbsinit.o \
788 mbsnrtowcs.o \
789 mbsrtowcs.o \
790 mbstowcs.o \
791 mbtowc.o \
792 mskanji.o \
793 nextwctype.o \
794 nl_langinfo.o \
795 none.o \
796 rune.o \
797 runetype.o \
798 setlocale.o \
799 setrunelocale.o \
800 strcasecmp.o \
801 strcasestr.o \
802 strcoll.o \
803 strfmon.o \
804 strftime.o \
805 strncasecmp.o \
806 strptime.o \
807 strxfrm.o \
808 table.o \
809 timelocal.o \
810 tolower.o \
811 towlower.o \
812 ungetwc.o \
813 utf8.o \
814 wcrtomb.o \
815 wcscasecmp.o \
816 wcscoll.o \
817 wcsftime.o \
818 wcsnrtombs.o \
819 wcsrtombs.o \
820 wcswidth.o \
821 wcstombs.o \
822 wcsxfrm.o \
823 wctob.o \
824 wctomb.o \
825 wctrans.o \
826 wctype.o \
827 wcwidth.o \
828 wscol.o
830 PORTNSL= _conn_util.o _data2.o _errlst.o _utility.o algs.o auth_des.o \
831 auth_none.o auth_sys.o auth_time.o authdes_prot.o authsys_prot.o \
832 can_use_af.o checkver.o clnt_bcast.o clnt_dg.o clnt_door.o \
833 clnt_generic.o clnt_perror.o clnt_raw.o clnt_simple.o clnt_vc.o \
834 daemon_utils.o dbm.o des_crypt.o des_soft.o doconfig.o getauthattr.o \
835 getdname.o getexecattr.o gethostby_door.o \
836 gethostbyname_r.o gethostent.o gethostent6.o gethostent_r.o \
837 getipnodeby.o getipnodeby_door.o getprofattr.o getrpcent.o \
838 getrpcent_r.o getuserattr.o inet_matchaddr.o \
839 key_call.o key_prot.o mt_misc.o netdir.o netdir_inet.o \
840 netdir_inet_sundry.o netname.o netnamer.o netselect.o nis_misc.o \
841 nis_misc_proc.o nis_sec_mechs.o nis_subr.o nis_xdr.o parse.o \
842 pmap_clnt.o pmap_prot.o publickey.o rpc_callmsg.o rpc_comdata.o \
843 rpc_fdsync.o rpc_generic.o rpc_prot.o rpc_sel2poll.o \
844 rpc_soc.o rpc_td.o rpcb_clnt.o rpcb_prot.o rpcb_st_xdr.o rpcdname.o \
845 rpcsec_gss_if.o rtime_tli.o svc.o svc_auth.o svc_auth_loopb.o \
846 svc_auth_sys.o svc_dg.o svc_door.o svc_generic.o svc_raw.o svc_run.o \
847 svc_simple.o svc_vc.o svcauth_des.o svid_funcs.o t_accept.o \
848 t_alloc.o t_bind.o t_close.o t_connect.o t_error.o t_free.o \
849 t_getinfo.o t_getname.o t_getstate.o t_listen.o t_look.o t_open.o \
850 t_optmgmt.o t_rcv.o t_rcvconnect.o t_rcvdis.o t_rcvrel.o \
851 t_rcvreldata.o t_rcvudata.o t_rcvuderr.o t_rcvv.o t_rcvvudata.o \
852 t_snd.o t_snddis.o t_sndrel.o t_sndreldata.o t_sndudata.o t_sndv.o \
853 t_sndvudata.o t_strerror.o t_sync.o t_sysconf.o t_unbind.o \
854 thr_get_storage.o ti_opts.o tli_wrappers.o xdr.o xdr_array.o \
855 xdr_float.o xdr_mem.o xdr_rec.o xdr_refer.o xdr_sizeof.o xdr_stdio.o \
856 xti_wrappers.o yp_all.o yp_b_clnt.o yp_b_xdr.o yp_bind.o yp_enum.o \
857 yp_master.o yp_match.o yp_order.o yp_rsvd.o yp_update.o yp_xdr.o \
858 yperr_string.o yppasswd_xdr.o ypprot_err.o ypupd.o
860 AIOOBJS= \
861 aio.o \
862 aio_alloc.o \
863 posix_aio.o
865 RTOBJS= \
866 clock_timer.o \
867 mqueue.o \
868 pos4obj.o \
869 sched.o \
870 sem.o \
871 shm.o \
872 sigev_thread.o
874 SECFLAGSOBJS= \
875 secflags.o
877 TPOOLOBJS= \
878 thread_pool.o
880 THREADSOBJS= \
881 alloc.o \
882 assfail.o \
883 c11_thr.o \
884 cancel.o \
885 door_calls.o \
886 tmem.o \
887 pthr_attr.o \
888 pthr_barrier.o \
889 pthr_cond.o \
890 pthr_mutex.o \
891 pthr_rwlock.o \
892 pthread.o \
893 rwlock.o \
894 scalls.o \
895 sema.o \
896 sigaction.o \
897 spawn.o \
898 synch.o \
899 tdb_agent.o \
900 thr.o \
901 thread_interface.o \
902 tls.o \
903 tsd.o
905 THREADSMACHOBJS= \
906 machdep.o
908 THREADSASMOBJS= \
909 asm_subr.o
911 UNICODEOBJS= \
912 u8_textprep.o \
913 uconv.o
915 UNWINDMACHOBJS= \
916 call_frame_inst.o \
917 eh_frame.o \
918 thrp_unwind.o \
919 unwind.o
921 pics/unwind.o:= COPTFLAG64 =
923 UNWINDASMOBJS= \
924 unwind_frame.o
926 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
927 # This macro should ALWAYS be empty; native APIs are already 'large file'.
928 PORTSYS64=
930 PORTSYS= \
931 _autofssys.o \
932 access.o \
933 acctctl.o \
934 bsd_signal.o \
935 chmod.o \
936 chown.o \
937 corectl.o \
938 epoll.o \
939 exacctsys.o \
940 execl.o \
941 execle.o \
942 execv.o \
943 eventfd.o \
944 fcntl.o \
945 getpagesizes.o \
946 getpeerucred.o \
947 inst_sync.o \
948 issetugid.o \
949 link.o \
950 lockf.o \
951 lwp.o \
952 lwp_cond.o \
953 lwp_rwlock.o \
954 lwp_sigmask.o \
955 meminfosys.o \
956 mkdir.o \
957 mknod.o \
958 msgsys.o \
959 nfssys.o \
960 open.o \
961 pgrpsys.o \
962 ppriv.o \
963 psetsys.o \
964 rctlsys.o \
965 readlink.o \
966 rename.o \
967 sbrk.o \
968 semsys.o \
969 set_errno.o \
970 sharefs.o \
971 shmsys.o \
972 sidsys.o \
973 siginterrupt.o \
974 signal.o \
975 signalfd.o \
976 sigpending.o \
977 sigstack.o \
978 stat.o \
979 symlink.o \
980 tasksys.o \
981 time.o \
982 time_util.o \
983 timerfd.o \
984 ucontext.o \
985 unlink.o \
986 ustat.o \
987 utimesys.o \
988 zone.o
990 PORTREGEX= \
991 glob.o \
992 regcmp.o \
993 regcomp.o \
994 regerror.o \
995 regex.o \
996 regexec.o \
997 regfree.o
999 PORTSOCKET= _soutil.o sockatmark.o socket.o socketpair.o weaks.o
1001 VALUES= \
1002 values-Xa.o
1004 MOSTOBJS= \
1005 $(STRETS) \
1006 $(CRTOBJS) \
1007 $(DYNOBJS) \
1008 $(FPOBJS) \
1009 $(I386FPOBJS) \
1010 $(FPASMOBJS) \
1011 $(ATOMICOBJS) \
1012 $(CHACHAOBJS) \
1013 $(XATTROBJS) \
1014 $(COMOBJS) \
1015 $(GENOBJS) \
1016 $(PORTFP) \
1017 $(PORTGEN) \
1018 $(PORTGEN64) \
1019 $(PORTI18N) \
1020 $(PORTI18N_COND) \
1021 $(PORTINET) \
1022 $(PORTLOCALE) \
1023 $(PORTNSL) \
1024 $(PORTPRINT) \
1025 $(PORTPRINT_W) \
1026 $(PORTREGEX) \
1027 $(PORTSOCKET) \
1028 $(PORTSTDIO) \
1029 $(PORTSTDIO64) \
1030 $(PORTSTDIO_W) \
1031 $(PORTSYS) \
1032 $(PORTSYS64) \
1033 $(AIOOBJS) \
1034 $(RTOBJS) \
1035 $(SECFLAGSOBJS) \
1036 $(TPOOLOBJS) \
1037 $(THREADSOBJS) \
1038 $(THREADSMACHOBJS) \
1039 $(THREADSASMOBJS) \
1040 $(UNICODEOBJS) \
1041 $(UNWINDMACHOBJS) \
1042 $(UNWINDASMOBJS) \
1043 $(COMSYSOBJS) \
1044 $(SYSOBJS) \
1045 $(COMSYSOBJS64) \
1046 $(SYSOBJS64) \
1047 $(VALUES)
1049 TRACEOBJS= \
1050 plockstat.o
1052 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
1053 # modules whose source is provided in the $(SRC)/lib/crt directory.
1054 # This must be done because otherwise the Sun C compiler would insert
1055 # its own versions of these modules and those versions contain code
1056 # to call out to C++ initialization functions. Such C++ initialization
1057 # functions can call back into libc before thread initialization is
1058 # complete and this leads to segmentation violations and other problems.
1059 # Since libc contains no C++ code, linking with the minimal crti.o and
1060 # crtn.o modules is safe and avoids the problems described above.
1061 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
1062 CRTSRCS= ../../crt/amd64
1064 # include common library definitions
1065 include ../../Makefile.lib
1066 include ../../Makefile.lib.64
1068 CFLAGS64 += $(CTF_FLAGS)
1070 CERRWARN += -Wno-parentheses
1071 CERRWARN += -Wno-switch
1072 CERRWARN += -Wno-uninitialized
1073 CERRWARN += -Wno-unused-value
1074 CERRWARN += -Wno-unused-label
1075 CERRWARN += -Wno-unused-variable
1076 CERRWARN += -Wno-type-limits
1077 CERRWARN += -Wno-char-subscripts
1078 CERRWARN += -Wno-clobbered
1079 CERRWARN += -Wno-unused-function
1080 CERRWARN += -Wno-address
1082 # not linted
1083 SMATCH=off
1085 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1086 # enables ASSERT() checking in the threads portion of the library.
1087 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1088 THREAD_DEBUG =
1089 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1091 ALTPICS= $(TRACEOBJS:%=pics/%)
1093 # The use of sed is a gross hack needed because the current build system
1094 # assumed that the compiler accepted linker flags (-Bfoo -zfoo and -Mfoo)
1095 # directly. Here, since we're calling the linker directly, we have to
1096 # discard the prefixes. Ideally, we would be using the LD_Z* and LD_B*
1097 # variables instead, but that would require a lot of mucking with makefiles.
1098 # So for now, we do this.
1099 REMOVE_GCC_PREFIX=echo $(DYNFLAGS) | $(SED) -e 's/-Wl,//g'
1100 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(REMOVE_GCC_PREFIX:sh) $(PICS) $(ALTPICS) $(EXTPICS)
1102 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1104 CPPFLAGS= -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1105 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1106 ASFLAGS= $(AS_PICFLAGS) -D_ASM $(CPPFLAGS) \
1107 $(amd64_AS_XARCH)
1109 # proc64_id.o is built with defines in $(SRCTOP)/arch/x86/include/sys/x86_archext.h
1110 pics/proc64_id.o := CFLAGS64 += -I$(SRCTOP)/arch/x86/include
1112 # Inform the run-time linker about libc specialized initialization
1113 RTLDINFO = -z rtldinfo=tls_rtldinfo
1114 DYNFLAGS += $(RTLDINFO)
1116 # Force libc's internal references to be resolved immediately upon loading
1117 # in order to avoid critical region problems. Since almost all libc symbols
1118 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1119 DYNFLAGS += -znow
1121 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1123 # Override this top level flag so the compiler builds in its native
1124 # C99 mode. This has been enabled to support the complex arithmetic
1125 # added to libc.
1126 CSTD= $(CSTD_GNU99)
1128 # libc method of building an archive
1129 # The "$(GREP) -v ' L '" part is necessary only until
1130 # lorder is fixed to ignore thread-local variables.
1131 BUILD.AR= $(RM) $@ ; \
1132 $(AR) qc $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1134 # extra files for the clean target
1135 CLEANFILES += \
1136 $(LIBCDIR)/port/gen/errlst.c \
1137 $(LIBCDIR)/port/gen/new_list.c \
1138 assym.h \
1139 genassym \
1140 crt/_rtld.s \
1141 pics/crti.o \
1142 pics/crtn.o \
1143 $(ALTPICS)
1145 CLOBBERFILES += $(LIB_PIC)
1147 # list of C source formerly for lint
1148 SRCS= \
1149 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1150 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1151 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1152 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1153 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1154 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1155 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1156 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1157 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1158 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1159 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1160 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1161 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1162 $(SECFLAGSOBJS:%.o=$(SRC)/common/secflags/%.c) \
1163 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1164 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1165 $(THREADSMACHOBJS:%.o=threads/%.c) \
1166 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1167 $(UNWINDMACHOBJS:%.o=unwind/%.c) \
1168 $(FPOBJS:%.o=fp/%.c) \
1169 $(I386FPOBJS:%.o=$(LIBCDIR)/i386/fp/%.c) \
1170 $(LIBCBASE)/gen/ecvt.c \
1171 $(LIBCBASE)/gen/makectxt.c \
1172 $(LIBCBASE)/gen/siginfolst.c \
1173 $(LIBCBASE)/gen/siglongjmp.c \
1174 $(LIBCBASE)/gen/sync_instruction_memory.c \
1175 $(LIBCBASE)/sys/uadmin.c
1177 # conditional assignments
1178 # $(DYNLIB) $(LIB_PIC) := DYNOBJS = _rtbootld.o
1179 $(DYNLIB) := CRTI = crti.o
1180 $(DYNLIB) := CRTN = crtn.o
1182 $(PORTSTDIO_W:%=pics/%) := \
1183 CPPFLAGS += -D_WIDE
1185 $(PORTPRINT_W:%=pics/%) := \
1186 CPPFLAGS += -D_WIDE
1188 $(PORTPRINT_C89:%=pics/%) := \
1189 CPPFLAGS += -D_C89_INTMAX32
1191 $(PORTSTDIO_C89:%=pics/%) := \
1192 CPPFLAGS += -D_C89_INTMAX32
1194 $(PORTI18N_COND:%=pics/%) := \
1195 CPPFLAGS += -D_WCS_LONGLONG
1197 pics/arc4random.o := CPPFLAGS += -I$(SRC)/common/crypto/chacha
1199 pics/__clock_gettime.o := CPPFLAGS += $(COMMPAGE_CPPFLAGS)
1201 .KEEP_STATE:
1203 all: $(LIBS) $(LIB_PIC)
1205 # include common libc targets
1206 include ../Makefile.targ
1208 # We need to strip out all CTF data from the static library
1209 $(LIB_PIC) := DIR = pics
1210 $(LIB_PIC): pics $$(PICS)
1211 $(BUILD.AR)
1212 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1213 $(AR) -ts $@ > /dev/null
1214 $(POST_PROCESS_A)
1216 ASSYMDEP_OBJS= \
1217 _lwp_mutex_unlock.o \
1218 _stack_grow.o \
1219 asm_subr.o \
1220 getcontext.o \
1221 setjmp.o \
1222 tls_get_addr.o \
1223 vforkx.o
1225 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1227 # assym.h build rules
1229 GENASSYM_C = genassym.c
1231 genassym: $(GENASSYM_C)
1232 $(NATIVECC) $(NATIVE_CFLAGS) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.native) \
1233 -o $@ $(GENASSYM_C)
1235 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1237 assym.h: $(OFFSETS) genassym
1238 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1239 ./genassym >>$@
1241 # derived C source and related explicit dependencies
1242 $(LIBCDIR)/port/gen/errlst.c + \
1243 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1244 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1246 pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
1248 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c