1995-02-25 03:31:42 +00:00
|
|
|
# $NetBSD: Makefile,v 1.36 1995/02/25 03:31:42 cgd Exp $
|
|
|
|
# @(#)Makefile 8.2 (Berkeley) 2/3/94
|
1993-03-21 09:45:37 +00: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 08:25:13 +00:00
|
|
|
#
|
1994-09-03 04:53:16 +00:00
|
|
|
# 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.
|
|
|
|
#
|
1993-04-27 10:11:24 +00: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 08:25:13 +00:00
|
|
|
|
1993-03-21 09:45:37 +00:00
|
|
|
LIB=c
|
1995-02-01 09:09:01 +00:00
|
|
|
CFLAGS+=-DNLS -DYP -DLIBC_SCCS -DSYSLIBC_SCCS -I${.CURDIR}/include
|
1993-12-04 02:31:56 +00:00
|
|
|
AINC= -I${.CURDIR}/arch/${MACHINE_ARCH}
|
1994-07-06 04:06:27 +00:00
|
|
|
.if defined(DESTDIR)
|
|
|
|
AINC+= -nostdinc -idirafter ${DESTDIR}/usr/include
|
|
|
|
.endif
|
1995-02-25 03:31:42 +00:00
|
|
|
CLEANFILES+=tags
|
1993-03-21 09:45:37 +00:00
|
|
|
|
1993-12-04 02:31:56 +00:00
|
|
|
.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
|
|
|
|
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
|
|
|
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
|
1993-09-05 22:12:35 +00:00
|
|
|
.endif
|
|
|
|
|
1993-06-14 23:51:26 +00:00
|
|
|
.include "${.CURDIR}/db/Makefile.inc"
|
1993-03-21 09:45:37 +00:00
|
|
|
.include "${.CURDIR}/compat-43/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/gen/Makefile.inc"
|
1994-05-14 06:25:56 +00:00
|
|
|
.include "${.CURDIR}/gmon/Makefile.inc"
|
1993-03-21 09:45:37 +00:00
|
|
|
.include "${.CURDIR}/locale/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/net/Makefile.inc"
|
1994-05-29 22:09:13 +00:00
|
|
|
.include "${.CURDIR}/nls/Makefile.inc"
|
1995-02-10 17:45:39 +00:00
|
|
|
.if (${MACHINE_ARCH} != "alpha")
|
1994-05-14 06:25:56 +00:00
|
|
|
.include "${.CURDIR}/quad/Makefile.inc"
|
1995-02-10 17:45:39 +00:00
|
|
|
.endif
|
1994-05-14 06:25:56 +00:00
|
|
|
.include "${.CURDIR}/regex/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/rpc/Makefile.inc"
|
1993-03-21 09:45:37 +00:00
|
|
|
.include "${.CURDIR}/stdio/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/stdlib/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/string/Makefile.inc"
|
|
|
|
.include "${.CURDIR}/sys/Makefile.inc"
|
1993-04-26 08:25:13 +00:00
|
|
|
.include "${.CURDIR}/yp/Makefile.inc"
|
1993-03-21 09:45:37 +00:00
|
|
|
|
1994-10-19 03:05:22 +00:00
|
|
|
LIBKERN= ${.CURDIR}/../../sys/lib/libkern
|
1993-10-15 01:06:47 +00:00
|
|
|
|
1993-11-05 22:43:47 +00:00
|
|
|
KSRCS= bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlen.c strncmp.c \
|
1995-01-06 00:09:19 +00:00
|
|
|
strncpy.c htonl.c htons.c ntohl.c ntohs.c
|
1995-02-13 21:57:24 +00:00
|
|
|
.if (${MACHINE_ARCH} != "alpha")
|
1993-12-04 05:15:26 +00: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
|
1995-02-13 21:57:24 +00:00
|
|
|
.endif
|
1993-10-15 01:06:47 +00:00
|
|
|
|
1993-10-15 01:23:49 +00:00
|
|
|
copy-to-libkern: copy-to-libkern-machind copy-to-libkern-machdep
|
|
|
|
|
|
|
|
copy-to-libkern-machind: ${KSRCS}
|
1993-10-15 01:06:47 +00:00
|
|
|
cp -p ${.ALLSRC} ${LIBKERN}
|
1995-02-13 21:57:24 +00:00
|
|
|
.if defined(KINCLUDES) && !empty(KINCLUDES)
|
1993-12-04 05:15:26 +00:00
|
|
|
(cd ${.CURDIR} ; cp -p ${KINCLUDES} ${LIBKERN})
|
1995-02-13 21:57:24 +00:00
|
|
|
.endif
|
1993-10-15 01:06:47 +00:00
|
|
|
|
1993-10-15 01:23:49 +00:00
|
|
|
copy-to-libkern-machdep: ${KMSRCS}
|
|
|
|
.if defined(KMSRCS) && !empty(KMSRCS)
|
1994-06-30 06:44:54 +00:00
|
|
|
cp -p ${.ALLSRC} ${LIBKERN}/arch/${MACHINE_ARCH}
|
1993-10-15 01:23:49 +00:00
|
|
|
.endif
|
1993-11-05 22:43:47 +00:00
|
|
|
.if defined(KMINCLUDES) && !empty(KMINCLUDES)
|
1994-06-30 06:44:54 +00:00
|
|
|
(cd ${.CURDIR} ; cp -p ${KMINCLUDES} ${LIBKERN}/arch/${MACHINE_ARCH})
|
1993-11-05 22:43:47 +00:00
|
|
|
.endif
|
1993-10-15 01:23:49 +00:00
|
|
|
|
1993-10-15 01:06:47 +00:00
|
|
|
rm-from-libkern:
|
|
|
|
for i in ${KSRCS}; do rm -f ${LIBKERN}/$$i; done
|
1993-10-15 01:23:49 +00:00
|
|
|
.if defined(KMSRCS) && !empty(KMSRCS)
|
1994-06-30 06:44:54 +00:00
|
|
|
for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done
|
1993-10-15 01:23:49 +00:00
|
|
|
.endif
|
1995-01-30 12:21:41 +00:00
|
|
|
|
1995-02-25 03:31:42 +00:00
|
|
|
beforeinstall: tags
|
|
|
|
install -c -o bin -g bin -m 444 tags /var/db/libc.tags
|
|
|
|
|
|
|
|
tags: ${SRCS}
|
|
|
|
ctags ${.ALLSRC:M*.c}
|
|
|
|
egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.S} | \
|
|
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
|
|
|
>> tags; sort -o tags tags
|
|
|
|
|
1993-03-21 09:45:37 +00:00
|
|
|
.include <bsd.lib.mk>
|