17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5f808c858Sraf# Common Development and Distribution License (the "License"). 6f808c858Sraf# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2207925104Sgww# Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved. 237c478bd9Sstevel@tonic-gate# 24f808c858Sraf 25f808c858Sraf# 267c478bd9Sstevel@tonic-gate# This builds all objects needed for libbc. 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gateLIBRARY= libc.a 307c478bd9Sstevel@tonic-gate# Default rules in ../../Makefile.targ not used. 317c478bd9Sstevel@tonic-gateVERS= bogus 327c478bd9Sstevel@tonic-gateDYNLIB4X= libc.so.1.9 337c478bd9Sstevel@tonic-gateDYNLIBS5= libc.so.2.9 347c478bd9Sstevel@tonic-gate#DYNLIBS5 is also defined in ../Makefile 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateM4= m4 377c478bd9Sstevel@tonic-gateECHO= echo 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate# objects are grouped by source directory. 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateCOMPATCOM= \ 427c478bd9Sstevel@tonic-gategtty.o lockf.o pause.o stty.o tell.o ulimit.o \ 437c478bd9Sstevel@tonic-gateutime.o 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gateCOMPAT4.1=\ 467c478bd9Sstevel@tonic-gateftime.o nice.o rand.o vlimit.o vtimes.o getpw.o times.o 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gateCOMPATSYS5=\ 497c478bd9Sstevel@tonic-gatenice.o rand.o getpw.o times.o 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gateCRTSPARC =\ 527c478bd9Sstevel@tonic-gate_ftou.o misalign.o ptr_call.o \ 537c478bd9Sstevel@tonic-gatestart_float.o \ 547c478bd9Sstevel@tonic-gatealloc_pbuf.o mon.o muldiv.o 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gateGENCOM=\ 577c478bd9Sstevel@tonic-gate_crypt.o _nlist.o _perror.o _psignal.o a64l.o abs.o alarm.o\ 587c478bd9Sstevel@tonic-gateasctime.o atof.o atoi.o atol.o bcmp.o bsearch.o\ 597c478bd9Sstevel@tonic-gateclock.o closedir.o crypt.o ctime.o ctype_.o\ 607c478bd9Sstevel@tonic-gatedrand48.o dysize.o errlst.o execvp.o exit.o exportent.o ecvt.o\ 617c478bd9Sstevel@tonic-gatefabs.o fmod.o frexp.o\ 62f8994074SJan Friedelfstab.o ftok.o ftw.o getauid.o getauditflags.o \ 6307925104Sgwwgetcwd.o getenv.o getgraent.o getlogin.o \ 647c478bd9Sstevel@tonic-gategetopt.o getsubopt.o getpwaent.o getttyent.o\ 657c478bd9Sstevel@tonic-gategetttynam.o getusershell.o grpauth.o hsearch.o\ 667c478bd9Sstevel@tonic-gateieee_globals.o index.o isatty.o \ 677c478bd9Sstevel@tonic-gateissecure.o jcsetpgrp.o\ 687c478bd9Sstevel@tonic-gatel64a.o labeltostring.o ldexp.o lfind.o lsearch.o\ 697c478bd9Sstevel@tonic-gatemadvise.o mallopt.o \ 707c478bd9Sstevel@tonic-gateeuc.multibyte.o iso.multibyte.o xccs.multibyte.o \ 717c478bd9Sstevel@tonic-gatemblib.o mbstowcs.o mbtowc.o wcstombs.o wctomb.o \ 727c478bd9Sstevel@tonic-gatememalign.o memccpy.o memchr.o memcmp.o\ 737c478bd9Sstevel@tonic-gatemkstemp.o mktemp.o mlock.o mlockall.o\ 747c478bd9Sstevel@tonic-gatemntent.o modf.o msync.o munlock.o munlockall.o\ 757c478bd9Sstevel@tonic-gatenl_cxtime.o nl_strncmp.o ndbm.o on_exit.o\ 767c478bd9Sstevel@tonic-gateopendir.o optind.o perror.o plock.o \ 777c478bd9Sstevel@tonic-gateposix_sig.o posix_tty.o popen.o psignal.o putenv.o \ 787c478bd9Sstevel@tonic-gatepwdauth.o pwdnm.o qsort.o\ 797c478bd9Sstevel@tonic-gaterandom.o readdir.o realpath.o regex.o rindex.o scandir.o seekdir.o\ 807c478bd9Sstevel@tonic-gatesetlocale.o setregid.o setreuid.o setrgid.o setruid.o sigfpe.o siglist.o\ 817c478bd9Sstevel@tonic-gatessignal.o strchr.o stricmp.o \ 827c478bd9Sstevel@tonic-gatestrftime.o strncat.o \ 837c478bd9Sstevel@tonic-gatestrpbrk.o strptime.o strrchr.o strspn.o strstr.o \ 847c478bd9Sstevel@tonic-gatestrtod.o strtok.o strtol.o swab.o syslog.o\ 857c478bd9Sstevel@tonic-gatetelldir.o tfind.o time.o tsearch.o \ 867c478bd9Sstevel@tonic-gateualarm.o usleep.o valloc.o string_decim.o \ 877c478bd9Sstevel@tonic-gatefile_decim.o func_decim.o econvert.o seconvert.o gconvert.o \ 887c478bd9Sstevel@tonic-gatedecimal_bin.o float_decim.o double_decim.o \ 897c478bd9Sstevel@tonic-gatepack_float.o _unpack_dble.o unpack_float.o \ 907c478bd9Sstevel@tonic-gate_base_S.o _base_il.o _base_sup.o _big_power.o _small_power.o \ 917c478bd9Sstevel@tonic-gate_sprintf_sup.o _times_power.o qeconvert.o \ 927c478bd9Sstevel@tonic-gate_Q_neg.o _Q_add.o _Q_sub.o _Q_mul.o _Q_div.o _Q_cmp.o \ 937c478bd9Sstevel@tonic-gate_Q_cmpe.o _Q_stoq.o _Q_dtoq.o _Q_itoq.o _Q_utoq.o _Q_qtos.o _Q_qtod.o \ 947c478bd9Sstevel@tonic-gate_Q_qtoi.o _Q_qtou.o _Q_sqrt.o _Qfaddsub.o _Qfcompare.o _Qfdiv.o \ 957c478bd9Sstevel@tonic-gate_Qfmul.o _Qfpack.o _Qfunpack.o _Qfutility.o _Q_fcc.o _Q_get_rp_rd.o \ 967c478bd9Sstevel@tonic-gatecalloc.o malloc.o \ 977c478bd9Sstevel@tonic-gategetpass.o localtime.o ttyslot.o 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gateGENCOMSPARC=\ 1007c478bd9Sstevel@tonic-gatealloca.o ffs.o insque.o remque.o isinf.o base_conv.o 1017c478bd9Sstevel@tonic-gate 1027c478bd9Sstevel@tonic-gateGEN4.2=\ 1037c478bd9Sstevel@tonic-gatenlist.o timezone.o sleep.o system.o 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gateGENSYS5=\ 1067c478bd9Sstevel@tonic-gateassert.o nlist.o sgetl.o sleep.o sputl.o system.o \ 1077c478bd9Sstevel@tonic-gatesighold.o 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gateSTDIOCOM=\ 1107c478bd9Sstevel@tonic-gateclrerr.o ctermid.o cuserid.o doprnt.o doscan.o fdopen.o \ 1117c478bd9Sstevel@tonic-gatefeof.o ferror.o fgetc.o fgets.o fileno.o findiop.o \ 1127c478bd9Sstevel@tonic-gatefputc.o fputs.o fread.o fseek.o ftell.o \ 1137c478bd9Sstevel@tonic-gatefwrite.o getc.o getchar.o gets.o getw.o iob.o \ 1147c478bd9Sstevel@tonic-gateputc.o putchar.o puts.o putw.o remove.o \ 1157c478bd9Sstevel@tonic-gaterew.o scanf.o setbuffer.o setvbuf.o tmpnam.o tempnam.o \ 1167c478bd9Sstevel@tonic-gatetmpfile.o ungetc.o 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gateSTDIO4.2=\ 1197c478bd9Sstevel@tonic-gatefilbuf.o fopen.o fprintf.o printf.o flsbuf.o setbuf.o \ 1207c478bd9Sstevel@tonic-gatesprintf.o vfprintf.o vprintf.o vsprintf.o 1217c478bd9Sstevel@tonic-gate 1227c478bd9Sstevel@tonic-gateSTDIOSYS5=\ 1237c478bd9Sstevel@tonic-gatefilbuf.o fopen.o fprintf.o flsbuf.o printf.o setbuf.o \ 1247c478bd9Sstevel@tonic-gatesprintf.o vfprintf.o vprintf.o vsprintf.o 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gateSYSCOM=\ 1277c478bd9Sstevel@tonic-gate_access.o acct.o adjtime.o close.o _creat.o dup.o dup2.o \ 128794f0adbSRoger A. Faulknerfchdir.o fchroot.o \ 1297c478bd9Sstevel@tonic-gatefdlist.o flock.o fpathconf.o fsync.o ftruncate.o getdents.o \ 1307c478bd9Sstevel@tonic-gategetdtablesize.o getgid.o getitimer.o getpid.o gettimeofday.o \ 1317c478bd9Sstevel@tonic-gategetuid.o ioctl.o kill.o lseek.o mincore.o mprotect.o munmap.o\ 1328fd04b83SRoger A. Faulkner_open.o profil.o setitimer.o \ 1337c478bd9Sstevel@tonic-gaterlimit.o _statfs.o sync.o umask.o uname.o\ 1347c478bd9Sstevel@tonic-gateexecl.o execle.o execv.o mkfifo.o msgsys.o\ 1357c478bd9Sstevel@tonic-gatepathconf.o semsys.o shmsys.o unmount.o wait.o setuid.o\ 1368fd04b83SRoger A. Faulknersetgid.o _stat.o seteuid.o setegid.o signalmap.o syscall.o \ 1377c478bd9Sstevel@tonic-gatemaperror.o sigsetjmp.o accept.o bind.o connect.o getpeername.o \ 1387c478bd9Sstevel@tonic-gategetsockname.o getsockopt.o listen.o recv.o send.o \ 1397c478bd9Sstevel@tonic-gatesetsockopt.o shutdown.o socket.o socketpair.o setsid.o sigaction.o 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gateSYSCOMSPARC=\ 1427c478bd9Sstevel@tonic-gate_exit.o brk.o cerror.o errno.o \ 1437c478bd9Sstevel@tonic-gategetegid.o geteuid.o getppid.o mmap.o pipe.o putmsg.o \ 1447c478bd9Sstevel@tonic-gatesbrk.o _syscall.o getmsg.o _read.o _write.o \ 1457c478bd9Sstevel@tonic-gate_readv.o _writev.o sendsig.o 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gateSYS4.2=\ 1487c478bd9Sstevel@tonic-gateaccess.o chdir.o chmod.o chown.o chroot.o \ 1497c478bd9Sstevel@tonic-gatecreat.o execve.o getpgrp.o link.o mkdir.o \ 1507c478bd9Sstevel@tonic-gatemknod.o open.o readlink.o rename.o rmdir.o \ 1517c478bd9Sstevel@tonic-gatesetpgrp.o stat.o symlink.o truncate.o unlink.o \ 1527c478bd9Sstevel@tonic-gatestatfs.o fcntl.o read.o write.o readv.o \ 1537c478bd9Sstevel@tonic-gatewritev.o setjmp.o mount.o 1547c478bd9Sstevel@tonic-gate 1557c478bd9Sstevel@tonic-gateSYS4.2SPARC=\ 1567c478bd9Sstevel@tonic-gategetgroups.o setgroups.o 1577c478bd9Sstevel@tonic-gate 1587c478bd9Sstevel@tonic-gateSYSSYS5=\ 1597c478bd9Sstevel@tonic-gateaccess.o chdir.o chmod.o chown.o chroot.o \ 1607c478bd9Sstevel@tonic-gatecreat.o execve.o getgroups.o getpgrp.o link.o \ 1617c478bd9Sstevel@tonic-gatemkdir.o mknod.o open.o readlink.o rename.o \ 1627c478bd9Sstevel@tonic-gatermdir.o setgroups.o setpgrp.o stat.o statfs.o \ 1637c478bd9Sstevel@tonic-gatestime.o symlink.o truncate.o unlink.o fcntl.o \ 1647c478bd9Sstevel@tonic-gateread.o write.o readv.o writev.o setjmp.o \ 1657c478bd9Sstevel@tonic-gatemount.o 1667c478bd9Sstevel@tonic-gate 1677c478bd9Sstevel@tonic-gate#SSYSSPARC=\ 1687c478bd9Sstevel@tonic-gate#_getpgrp.o _kill.o _lseek.o _mknod.o _mount.o _setpgrp.o \ 1697c478bd9Sstevel@tonic-gate#umount.o 1707c478bd9Sstevel@tonic-gate 1717c478bd9Sstevel@tonic-gateINET=\ 1727c478bd9Sstevel@tonic-gateinet_addr.o inet_lnaof.o inet_makeaddr.o inet_netof.o \ 1737c478bd9Sstevel@tonic-gateinet_network.o inet_ntoa.o 1747c478bd9Sstevel@tonic-gate 1757c478bd9Sstevel@tonic-gateNET=\ 1767c478bd9Sstevel@tonic-gateether_addr.o bindresvport.o getrpcport.o rcmd.o \ 1777c478bd9Sstevel@tonic-gaterexec.o ruserpass.o authunix.o 1787c478bd9Sstevel@tonic-gate 1797c478bd9Sstevel@tonic-gateNETSPARC= htonl.o htons.o ntohl.o ntohs.o 1807c478bd9Sstevel@tonic-gate 1817c478bd9Sstevel@tonic-gateYP= yp_bind.o 1827c478bd9Sstevel@tonic-gate 1837c478bd9Sstevel@tonic-gateYP= yp_bind.o 1847c478bd9Sstevel@tonic-gatePSEUDO_SRCS= adjtime.s fchdir.s \ 185794f0adbSRoger A. Faulknerfchroot.s \ 1867c478bd9Sstevel@tonic-gatefpathconf.s getitimer.s getpid.s \ 1877c478bd9Sstevel@tonic-gatemincore.s mprotect.s munmap.s \ 1887c478bd9Sstevel@tonic-gateprofil.s setitimer.s \ 1897c478bd9Sstevel@tonic-gatesync.s sysconf.s umask.s ustat.s \ 1908fd04b83SRoger A. Faulkneracct.s stime.s 1917c478bd9Sstevel@tonic-gate 1927c478bd9Sstevel@tonic-gate# 1937c478bd9Sstevel@tonic-gate# libbc build rules 1947c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/compat/common/%.c 1957c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 1967c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 1977c478bd9Sstevel@tonic-gate 1987c478bd9Sstevel@tonic-gatepics/%.o : ../libc/compat/4.1/%.c 1997c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2007c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2017c478bd9Sstevel@tonic-gate 2027c478bd9Sstevel@tonic-gates5pics/%.o : ../libc/compat/sys5/%.c 2037c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2047c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2057c478bd9Sstevel@tonic-gate 2067c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/crt/sparc/%.s 2077c478bd9Sstevel@tonic-gate $(BUILD.s) 2087c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2097c478bd9Sstevel@tonic-gate 2107c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/crt/sparc/%.c 2117c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2127c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2137c478bd9Sstevel@tonic-gate 2147c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../csu/common/%.c 2157c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2167c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2177c478bd9Sstevel@tonic-gate 2187c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/gen/common/%.S 2197c478bd9Sstevel@tonic-gate $(BUILD.s) 2207c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2217c478bd9Sstevel@tonic-gate 2227c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/gen/common/%.c 2237c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2247c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2257c478bd9Sstevel@tonic-gate 2267c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/gen/common/sparc/%.s 2277c478bd9Sstevel@tonic-gate $(BUILD.s) 2287c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2297c478bd9Sstevel@tonic-gate 2307c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/gen/common/sparc/%.c 2317c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2327c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2337c478bd9Sstevel@tonic-gate 2347c478bd9Sstevel@tonic-gatepics/%.o : ../libc/gen/4.2/%.c 2357c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2367c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2377c478bd9Sstevel@tonic-gate 2387c478bd9Sstevel@tonic-gates5pics/%.o : ../libc/gen/sys5/%.c 2397c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2407c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2417c478bd9Sstevel@tonic-gate 2427c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/inet/%.c 2437c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2447c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2457c478bd9Sstevel@tonic-gate 2467c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/net/%.c 2477c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2487c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2497c478bd9Sstevel@tonic-gate 2507c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/net/sparc/%.c 2517c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2527c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2537c478bd9Sstevel@tonic-gate 2547c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/stdio/common/%.c 2557c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2567c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2577c478bd9Sstevel@tonic-gate 2587c478bd9Sstevel@tonic-gatepics/%.o : ../libc/stdio/4.2/%.c 2597c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2607c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2617c478bd9Sstevel@tonic-gate 2627c478bd9Sstevel@tonic-gates5pics/%.o : ../libc/stdio/sys5/%.c 2637c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2647c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2657c478bd9Sstevel@tonic-gate 2667c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/sys/common/%.s 2677c478bd9Sstevel@tonic-gate $(BUILD.s) 2687c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2697c478bd9Sstevel@tonic-gate 2707c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/sys/common/%.c 2717c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2727c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2737c478bd9Sstevel@tonic-gate 2747c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/sys/common/sparc/%.s 2757c478bd9Sstevel@tonic-gate $(BUILD.s) 2767c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2777c478bd9Sstevel@tonic-gate 2787c478bd9Sstevel@tonic-gatepics/%.o : ../libc/sys/4.2/%.c 2797c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2807c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gatepics/%.o : ../libc/sys/4.2/sparc/%.s 2837c478bd9Sstevel@tonic-gate $(BUILD.s) 2847c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2857c478bd9Sstevel@tonic-gate 2867c478bd9Sstevel@tonic-gates5pics/%.o : ../libc/sys/sys5/%.c 2877c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2887c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2897c478bd9Sstevel@tonic-gate 2907c478bd9Sstevel@tonic-gates5pics/%.o : ../libc/sys/sys5/sparc/%.s 2917c478bd9Sstevel@tonic-gate $(BUILD.s) 2927c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2937c478bd9Sstevel@tonic-gate 2947c478bd9Sstevel@tonic-gates5pics/%.o : ../libc/stdio/sys5/%.c 2957c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 2967c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 2977c478bd9Sstevel@tonic-gate 2987c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/rpc/%.c 2997c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 3007c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 3017c478bd9Sstevel@tonic-gate 3027c478bd9Sstevel@tonic-gatepics/%.o s5pics/%.o : ../libc/yp/%.c 3037c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 3047c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 3057c478bd9Sstevel@tonic-gate 3067c478bd9Sstevel@tonic-gate 3077c478bd9Sstevel@tonic-gate# include common library definitions 3087c478bd9Sstevel@tonic-gateinclude ../../Makefile.lib 3097c478bd9Sstevel@tonic-gate 310f808c858Sraf# There should be a mapfile here 311f808c858SrafMAPFILES = 312f808c858Sraf 3137c478bd9Sstevel@tonic-gateC99MODE= $(C99_DISABLE) 3147c478bd9Sstevel@tonic-gate 3157c478bd9Sstevel@tonic-gate# 3167c478bd9Sstevel@tonic-gate# The BCP include files depend on old preprocessor semantics. 3177c478bd9Sstevel@tonic-gate# 3187c478bd9Sstevel@tonic-gateCCMODE = -Xt 3197c478bd9Sstevel@tonic-gate 3207c478bd9Sstevel@tonic-gate# the bcp libraries go in /usr/4lib. override ROOTLIBDIR from ../../Makefile.lib 3217c478bd9Sstevel@tonic-gate# and save it so we can find the libraries with which to link 3227c478bd9Sstevel@tonic-gateROOTLIBDIR= $(ROOT)/usr/4lib 3237c478bd9Sstevel@tonic-gate 3247c478bd9Sstevel@tonic-gateCPPFLAGS= -Dsparc \ 3257c478bd9Sstevel@tonic-gate -I. -Iinc -I../inc/include -I../inc/include/sys $(CPPFLAGS.master) 3267c478bd9Sstevel@tonic-gateASFLAGS= -P -D__STDC__ -DLOCORE -D_SYS_SYS_S -D_ASM $(CPPFLAGS) 3277c478bd9Sstevel@tonic-gateLDLIBS= -t -R/usr/ucblib -L$(ROOT)/usr/ucblib $(LDLIBS.lib) \ 3287c478bd9Sstevel@tonic-gate -lucb -lc -lnsl -lsocket 3297c478bd9Sstevel@tonic-gate 330*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-implicit-function-declaration 331*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-char-subscripts 332*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-extra 333*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 334*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 335*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused 336*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 337*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-address 338*7014882cSRichard Lowe 3397c478bd9Sstevel@tonic-gate# SONAME is used by DYNFLAGS 3407c478bd9Sstevel@tonic-gate$(DYNLIB4X) := SONAME = $(DYNLIB4X) 3417c478bd9Sstevel@tonic-gate$(DYNLIBS5) := SONAME = $(DYNLIBS5) 3427c478bd9Sstevel@tonic-gate 3437c478bd9Sstevel@tonic-gatepics/%.o:= ASFLAGS += -K pic -DPIC 3447c478bd9Sstevel@tonic-gatepics/%.o:= CPPFLAGS += -K pic -DPIC 3457c478bd9Sstevel@tonic-gates5pics/%.o:= ASFLAGS += -K pic -DPIC 34624da5b34SrieDYNFLAGS += $(ZINTERPOSE) 3477c478bd9Sstevel@tonic-gate 3487c478bd9Sstevel@tonic-gateBUILD.s= $(AS) $(ASFLAGS) $< -o $@ 3497c478bd9Sstevel@tonic-gate 3507c478bd9Sstevel@tonic-gate# libbc method of building an archive 3517c478bd9Sstevel@tonic-gateBUILD.AR= $(RM) $@ ; \ 3527c478bd9Sstevel@tonic-gate $(AR) q $@ $(OBJECTS:%=$(DIR)/%) 3537c478bd9Sstevel@tonic-gate 3547c478bd9Sstevel@tonic-gate# the TXTS macro is used for NSE bootstrapping. 3557c478bd9Sstevel@tonic-gateTXTS= inc/SYS.h inc/PIC.h inc/machine/asm_linkage.h 3567c478bd9Sstevel@tonic-gate 3577c478bd9Sstevel@tonic-gateLIBS = $(DYNLIB4X) $(DYNLIBS5) 3587c478bd9Sstevel@tonic-gate 3597c478bd9Sstevel@tonic-gateOBJECTS= $(COMPATCOM) $(COMPAT4.1) $(CRTSPARC) $(GENCOM) \ 3607c478bd9Sstevel@tonic-gate$(GENCOMSPARC) $(GEN4.2) $(STDIOCOM) $(STDIO4.2) \ 3617c478bd9Sstevel@tonic-gate$(INET) $(NET) $(NETSPARC) $(YP) \ 3627c478bd9Sstevel@tonic-gate$(SYSCOM) $(SYSCOMSPARC) $(SYS4.2) 3637c478bd9Sstevel@tonic-gate 3647c478bd9Sstevel@tonic-gate# 3657c478bd9Sstevel@tonic-gate# Since this library is strictly for binary compability with ancient 3667c478bd9Sstevel@tonic-gate# applications, we deactivate CTF to avoid kicking up dust. 3677c478bd9Sstevel@tonic-gate# 3687c478bd9Sstevel@tonic-gateCTFCONVERT_POST = : 3697c478bd9Sstevel@tonic-gateCTFMERGE_LIB = : 3707c478bd9Sstevel@tonic-gate 3717c478bd9Sstevel@tonic-gateS5OBJECTS= $(COMPATCOM) $(COMPATSYS5) $(CRTSPARC) $(GENCOM) \ 3727c478bd9Sstevel@tonic-gate$(GENCOMSPARC) $(GENSYS5) $(STDIOCOM) $(STDIOSYS5) \ 3737c478bd9Sstevel@tonic-gate$(SYSCOM) $(SYSCOMSPARC) $(SYSSYS5) $(SSYS5SPARC) \ 3747c478bd9Sstevel@tonic-gate$(INET) $(NET) $(NETSPARC) $(YP) 3757c478bd9Sstevel@tonic-gate 3767c478bd9Sstevel@tonic-gateS5PICOBJS= $(S5OBJECTS:%=s5pics/%) 3777c478bd9Sstevel@tonic-gate 3787c478bd9Sstevel@tonic-gateCLEANFILES= ../libc/yp/ypupdate_prot.c ../inc/include/rpcsvc/ypupdate_prot.h \ 3797c478bd9Sstevel@tonic-gate ../libc/compat/sys5/epoch.h \ 3807c478bd9Sstevel@tonic-gate $(S5PICOBJS) 3817c478bd9Sstevel@tonic-gateCLOBBERFILES= ../libc/compat/sys5/mkepoch 3827c478bd9Sstevel@tonic-gate 3837c478bd9Sstevel@tonic-gate# conditional assignments 3847c478bd9Sstevel@tonic-gates5pics/%.o:= CPPFLAGS = -Dsparc -DS5EMUL -K pic -DPIC -I. -Iinc \ 3857c478bd9Sstevel@tonic-gate -I../inc/5include -I../inc/include -I../inc/include/sys \ 3867c478bd9Sstevel@tonic-gate $(CPPFLAGS.master) 3877c478bd9Sstevel@tonic-gate 3887c478bd9Sstevel@tonic-gates5pics/%.o := CFLAGS += -xregs=no%appl 3897c478bd9Sstevel@tonic-gatepics/%.o := CFLAGS += -xregs=no%appl 3907c478bd9Sstevel@tonic-gate 3917c478bd9Sstevel@tonic-gate$(DYNLIB4X):= DIR = pics 3927c478bd9Sstevel@tonic-gate$(DYNLIBS5):= DIR = s5pics 3937c478bd9Sstevel@tonic-gate 3947c478bd9Sstevel@tonic-gate.KEEP_STATE: 3957c478bd9Sstevel@tonic-gate 3967c478bd9Sstevel@tonic-gate# Declare that all .o's can be made in parallel. 3977c478bd9Sstevel@tonic-gate.PARALLEL: $(PICS) $(S5PICOBJS) 3987c478bd9Sstevel@tonic-gate 3997c478bd9Sstevel@tonic-gateall: $(TXTS) $(LIBS) 4007c478bd9Sstevel@tonic-gate 4017c478bd9Sstevel@tonic-gate$(DYNLIB4X): pics .WAIT $(PICS) 4025d54f3d8Smuffin $(CC) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS) 4037c478bd9Sstevel@tonic-gate $(POST_PROCESS_SO) 4047c478bd9Sstevel@tonic-gate 4057c478bd9Sstevel@tonic-gate$(DYNLIBS5): s5pics .WAIT $(S5PICOBJS) 4065d54f3d8Smuffin $(CC) -o $@ -G $(DYNFLAGS) $(S5PICOBJS) $(LDLIBS) 4077c478bd9Sstevel@tonic-gate $(POST_PROCESS_SO) 4087c478bd9Sstevel@tonic-gate 4097c478bd9Sstevel@tonic-gate# include common library targets 4107c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 4117c478bd9Sstevel@tonic-gate 4127c478bd9Sstevel@tonic-gates5pics: 4137c478bd9Sstevel@tonic-gate -@mkdir -p $@ 4147c478bd9Sstevel@tonic-gate 4157c478bd9Sstevel@tonic-gate# special cases 4167c478bd9Sstevel@tonic-gatePSEUDO_POBJS= $(PSEUDO_SRCS:%.s=pics/%.o) 4177c478bd9Sstevel@tonic-gatePSEUDO_PS5OBJS= $(PSEUDO_SRCS:%.s=s5pics/%.o) 4187c478bd9Sstevel@tonic-gate 4197c478bd9Sstevel@tonic-gate$(PSEUDO_POBJS) $(PSEUDO_PS5OBJS): 4207c478bd9Sstevel@tonic-gate @(echo '#include "SYS.h"'; \ 4217c478bd9Sstevel@tonic-gate echo ' SYSCALL($(@F:.o=))'; \ 4227c478bd9Sstevel@tonic-gate echo ' RET'; \ 4237c478bd9Sstevel@tonic-gate echo ' SET_SIZE($(@F:.o=))') > tmp.$(@F:.o=).s 4247c478bd9Sstevel@tonic-gate $(AS) $(ASFLAGS) -o $@ tmp.$(@F:.o=).s 4257c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 4267c478bd9Sstevel@tonic-gate @$(RM) tmp.$(@F:.o=).s 4277c478bd9Sstevel@tonic-gate 4287c478bd9Sstevel@tonic-gates5pics/times.o : ../libc/compat/sys5/epoch.h ../libc/compat/sys5/times.c 4297c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ ../libc/compat/sys5/times.c 4307c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 4317c478bd9Sstevel@tonic-gate 4327c478bd9Sstevel@tonic-gate../libc/compat/sys5/epoch.h: ../libc/compat/sys5/mkepoch 4337c478bd9Sstevel@tonic-gate ../libc/compat/sys5/mkepoch > $@ 4347c478bd9Sstevel@tonic-gate 4357c478bd9Sstevel@tonic-gate../libc/compat/sys5/mkepoch: ../libc/compat/sys5/mkepoch.c 4367c478bd9Sstevel@tonic-gate $(NATIVECC) -O -o $@ ../libc/compat/sys5/mkepoch.c 4377c478bd9Sstevel@tonic-gate 4387c478bd9Sstevel@tonic-gatepics/maperror.o s5pics/maperror.o: ../libc/sys/common/maperror.c 4397c478bd9Sstevel@tonic-gate $(CC) -I../libc/sys/common $(CPPFLAGS) $(CFLAGS) -c -o $@ ../libc/sys/common/maperror.c 4407c478bd9Sstevel@tonic-gate 4417c478bd9Sstevel@tonic-gate# 4427c478bd9Sstevel@tonic-gate# The following rules generate the .h file and XDR routines from the 4437c478bd9Sstevel@tonic-gate# rpcgen source. Objects built here, look for it here. Further, when 4447c478bd9Sstevel@tonic-gate# building ypupdated it should look here too, but doesn't at the moment. 4457c478bd9Sstevel@tonic-gate# 4467c478bd9Sstevel@tonic-gate# It would be nice to use a ".x.h" rule for this, but that causes problems. 4477c478bd9Sstevel@tonic-gate# 4487c478bd9Sstevel@tonic-gatepics/yp_update.o \ 4497c478bd9Sstevel@tonic-gates5pics/yp_update.o : ../inc/include/rpcsvc/ypupdate_prot.h ../libc/yp/yp_update.c 4507c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ ../libc/yp/yp_update.c 4517c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 4527c478bd9Sstevel@tonic-gate 4537c478bd9Sstevel@tonic-gatepics/ypupdate_prot.o s5pics/ypupdate_prot.o : ../inc/include/rpcsvc/ypupdate_prot.h\ 4547c478bd9Sstevel@tonic-gate ../libc/yp/ypupdate_prot.c 4557c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ ../libc/yp/ypupdate_prot.c 4567c478bd9Sstevel@tonic-gate $(POST_PROCESS_O) 4577c478bd9Sstevel@tonic-gate 4587c478bd9Sstevel@tonic-gate../libc/yp/ypupdate_prot.c: ../libc/yp/ypupdate_prot.x 4597c478bd9Sstevel@tonic-gate $(RM) $@ 4607c478bd9Sstevel@tonic-gate $(RPCGEN) -c -o $@ ../libc/yp/ypupdate_prot.x 4617c478bd9Sstevel@tonic-gate 4627c478bd9Sstevel@tonic-gate../libc/yp/ypupdate_prot.h: ../libc/yp/ypupdate_prot.x 4637c478bd9Sstevel@tonic-gate $(RM) $@ ../libc/yp/ypupdate_prot.h 4647c478bd9Sstevel@tonic-gate $(RPCGEN) -h -o ../libc/yp/ypupdate_prot.h ../libc/yp/ypupdate_prot.x 4657c478bd9Sstevel@tonic-gate 4667c478bd9Sstevel@tonic-gate../inc/include/rpcsvc/ypupdate_prot.h: ../libc/yp/ypupdate_prot.h 4677c478bd9Sstevel@tonic-gate cp ../libc/yp/ypupdate_prot.h $@ 468