NetBSD/lib/libc/Makefile

76 lines
2.7 KiB
Makefile
Raw Normal View History

1993-08-01 09:37:30 +04:00
# from: @(#)Makefile 5.2 (Berkeley) 3/5/91
# $Id: Makefile,v 1.28 1994/09/03 04:53:16 jtc Exp $
1993-03-21 12:45:37 +03:00
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure. To produce a library that does
# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
# from CFLAGS below. To remove these strings from just the system call
# stubs, remove just -DSYSLIBC_SCCS from CFLAGS.
#
# The NLS (message catalog) functions are always in libc. To choose that
# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
# functions, put -DNLS on the CFLAGS line below.
#
# The YP functions are always in libc. To choose that getpwent() and friends
# actually call the YP functions, put -DYP on the CFLAGS line below.
1993-03-21 12:45:37 +03:00
LIB=c
CFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS
1993-12-04 05:31:56 +03:00
AINC= -I${.CURDIR}/arch/${MACHINE_ARCH}
.if defined(DESTDIR)
AINC+= -nostdinc -idirafter ${DESTDIR}/usr/include
.endif
1993-03-21 12:45:37 +03:00
1993-12-04 05:31:56 +03:00
.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
.endif
.include "${.CURDIR}/db/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/compat-43/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"
.include "${.CURDIR}/gmon/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/locale/Makefile.inc"
.include "${.CURDIR}/net/Makefile.inc"
1994-05-30 02:09:13 +04:00
.include "${.CURDIR}/nls/Makefile.inc"
.include "${.CURDIR}/quad/Makefile.inc"
.include "${.CURDIR}/regex/Makefile.inc"
.include "${.CURDIR}/rpc/Makefile.inc"
1993-03-21 12:45:37 +03:00
.include "${.CURDIR}/stdio/Makefile.inc"
.include "${.CURDIR}/stdlib/Makefile.inc"
.include "${.CURDIR}/string/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
.include "${.CURDIR}/yp/Makefile.inc"
1993-03-21 12:45:37 +03:00
LIBKERN= /sys/lib/libkern
KSRCS= bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \
strncpy.c htonl.c htons.c ntohl.c ntohl.c
1993-12-04 08:15:26 +03:00
KSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
KINCLUDES+= quad/quad.h
copy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep
copy-to-libkern-machind: ${KSRCS}
cp -p ${.ALLSRC} ${LIBKERN}
1993-12-04 08:15:26 +03:00
(cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN})
copy-to-libkern-machdep: ${KMSRCS}
.if defined(KMSRCS) && !empty(KMSRCS)
1994-06-30 10:44:54 +04:00
cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH}
.endif
.if defined(KMINCLUDES) && !empty(KMINCLUDES)
1994-06-30 10:44:54 +04:00
(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH})
.endif
rm-from-libkern:
for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done
.if defined(KMSRCS) && !empty(KMSRCS)
1994-06-30 10:44:54 +04:00
for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done
.endif
1993-03-21 12:45:37 +03:00
.include <bsd.lib.mk>