1# @(#)Makefile 8.2 (Berkeley) 2/3/94 2# $FreeBSD$ 3# 4# All library objects contain rcsid strings by default; they may be 5# excluded as a space-saving measure. To produce a library that does 6# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS 7# from CFLAGS below. To remove these strings from just the system call 8# stubs, remove just -DSYSLIBC_RCS from CFLAGS. 9LIB=c 10SHLIB_MAJOR= 5 11SHLIB_MINOR= 0 12CFLAGS+=-DLIBC_RCS -DSYSLIBC_RCS -I${.CURDIR}/include 13AINC= -I${.CURDIR}/${MACHINE_ARCH} 14CLEANFILES+=tags 15INSTALL_PIC_ARCHIVE= yes 16PRECIOUSLIB= yes 17 18# 19# This is a list of syscalls that are renamed as _thread_sys_{syscall} 20# so that libpthread and libc_r can override and/or replace them. 21# In the case of libc_r replacement functions are provided, whereas 22# libpthread can both override and provide replacement functions. 23# 24HIDDEN_SYSCALLS= _exit.o accept.o aio_suspend.o bind.o close.o connect.o \ 25 dup.o dup2.o execve.o fchflags.o fchmod.o fchown.o fcntl.o \ 26 flock.o fpathconf.o fstat.o fstatfs.o fsync.o getdirentries.o \ 27 getpeername.o getsockname.o getsockopt.o ioctl.o \ 28 kevent.o listen.o \ 29 msync.o nanosleep.o nfssvc.o open.o poll.o read.o readv.o recvfrom.o \ 30 recvmsg.o sched_yield.o select.o sendfile.o sendmsg.o sendto.o \ 31 setsockopt.o shutdown.o sigaction.o sigaltstack.o \ 32 sigpending.o sigprocmask.o sigreturn.o \ 33 sigsuspend.o socket.o \ 34 socketpair.o wait4.o write.o writev.o 35 36# 37# Include make rules that are shared with libc_r. 38# 39.include "${.CURDIR}/Makefile.inc" 40 41KQSRCS= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 42 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 43 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 44KSRCS= bcmp.c ffs.c index.c mcount.c rindex.c strcat.c strcmp.c strcpy.c \ 45 strlen.c strncpy.c 46 47libkern: libkern.gen libkern.${MACHINE_ARCH} 48 49libkern.gen: ${KQSRCS} ${KSRCS} 50 cp -p ${.CURDIR}/quad/quad.h ${.ALLSRC} ${DESTDIR}/sys/libkern 51 52libkern.${MACHINE_ARCH}:: ${KMSRCS} 53.if defined(KMSRCS) && !empty(KMSRCS) 54 cp -p ${.ALLSRC} ${DESTDIR}/sys/libkern/${MACHINE_ARCH} 55.endif 56 57.include <bsd.lib.mk> 58