1993-08-01 09:37:30 +04:00
|
|
|
# from: @(#)Makefile 5.2 (Berkeley) 3/5/91
|
1993-11-06 01:43:47 +03:00
|
|
|
# $Id: Makefile,v 1.18 1993/11/05 22:43:47 cgd 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.
|
1993-04-26 12:25:13 +04:00
|
|
|
#
|
1993-04-27 14:11:24 +04:00
|
|
|
# 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-04-26 12:25:13 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
LIB=c
|
1993-10-17 04:10:37 +03:00
|
|
|
INSTALL_PIC_ARCHIVE= yes
|
1993-09-06 02:12:35 +04:00
|
|
|
CFLAGS+=-DYP -DLIBC_SCCS -DSYSLIBC_SCCS
|
1993-10-07 03:17:24 +03:00
|
|
|
AINC= -I${.CURDIR}/arch/${MACHINE}
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-10-07 03:17:24 +03:00
|
|
|
.if exists (${.CURDIR}/arch/${MACHINE}/Makefile.inc)
|
|
|
|
.PATH: ${.CURDIR}/arch/${MACHINE}
|
|
|
|
.include "${.CURDIR}/arch/${MACHINE}/Makefile.inc"
|
1993-09-06 02:12:35 +04:00
|
|
|
.endif
|
|
|
|
|
1993-06-15 03:51:26 +04:00
|
|
|
.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}/locale/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/net/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/stdio/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/stdlib/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/string/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/sys/Makefile.inc"
|
1993-04-26 12:25:13 +04:00
|
|
|
.include "${.CURDIR}/yp/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/rpc/Makefile.inc"
|
1993-09-16 10:06:41 +04:00
|
|
|
.include "${.CURDIR}/quad/Makefile.inc"
|
1993-10-17 03:46:25 +03:00
|
|
|
.include "${.CURDIR}/dl/Makefile.inc"
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-10-15 04:06:47 +03:00
|
|
|
LIBKERN= /sys/lib/libkern
|
|
|
|
|
1993-11-06 01:43:47 +03:00
|
|
|
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-10-15 04:06:47 +03:00
|
|
|
|
1993-10-15 04:23:49 +03:00
|
|
|
copy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep
|
|
|
|
|
|
|
|
copy-to-libkern-machind: ${KSRCS}
|
1993-10-15 04:06:47 +03:00
|
|
|
cp -p ${.ALLSRC} ${LIBKERN}
|
|
|
|
|
1993-10-15 04:23:49 +03:00
|
|
|
copy-to-libkern-machdep: ${KMSRCS}
|
|
|
|
.if defined(KMSRCS) && !empty(KMSRCS)
|
|
|
|
cp -p ${.ALLSRC} ${LIBKERN}/${MACHINE}
|
|
|
|
.endif
|
1993-11-06 01:43:47 +03:00
|
|
|
.if defined(KMINCLUDES) && !empty(KMINCLUDES)
|
|
|
|
(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/${MACHINE})
|
|
|
|
.endif
|
1993-10-15 04:23:49 +03:00
|
|
|
|
1993-10-15 04:06:47 +03:00
|
|
|
rm-from-libkern:
|
|
|
|
for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done
|
1993-10-15 04:23:49 +03:00
|
|
|
.if defined(KMSRCS) && !empty(KMSRCS)
|
|
|
|
for i in ${KMSRCS}; do rm -f ${LIBKERN}/${MACHINE}/$$i; done
|
|
|
|
.endif
|
1993-10-15 04:06:47 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.lib.mk>
|