summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-09 04:24:30 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-07-09 04:24:30 +0000
commitc765982069f447753f7a1e0a101c312c8ec4944b (patch)
treec5bf2a843bf8f291826e45463f3a7406b9c68b1c /sys
parent446ae833204559024dcbf4bfedda3740978ceb67 (diff)
remove unused files, build bzero off of memset
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libkern/arch/powerpc/Makefile.inc16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/lib/libkern/arch/powerpc/Makefile.inc b/sys/lib/libkern/arch/powerpc/Makefile.inc
index 905dfad0f05..a102894c6ab 100644
--- a/sys/lib/libkern/arch/powerpc/Makefile.inc
+++ b/sys/lib/libkern/arch/powerpc/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.7 2000/12/18 18:40:47 provos Exp $
+# $OpenBSD: Makefile.inc,v 1.8 2001/07/09 04:24:29 mickey Exp $
# $NetBSD: Makefile.inc,v 1.6 1994/10/26 06:39:03 cgd Exp $
CFLAGS += -D_KERNEL
@@ -6,10 +6,20 @@ CFLAGS += -D_KERNEL
SRCS+= __main.c __eabi.c \
imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \
memchr.c memcmp.c memset.c \
- bcmp.c bzero.c ffs.c strcat.c strcmp.c strcpy.c strlcat.c strlcpy.c \
+ bcmp.c ffs.c strcat.c strcmp.c strcpy.c strlcat.c strlcpy.c \
strlen.c strncmp.c \
- strncpy.c scanc.c skpc.c locc.c htonl.c htons.c ntohl.c ntohs.c \
+ strncpy.c scanc.c skpc.c locc.c \
memcpy.c random.c strncasecmp.c
# bcopy.c htolel.c letohl.c htoles.c letohs.c copystr.c \
# copyinstr.c copyoutstr.c copystr.c copyin.c copyout.c \
+
+OBJS+= bzero.o
+CLEANFILES+= bzero.o
+
+bzero.o: ${KERNDIR}/memset.c
+ @echo "${COMPILE.c} -DBZERO ${KERNDIR}/memset.c -o ${.TARGET}"
+ @${COMPILE.c} -DBZERO ${KERNDIR}/memset.c -o ${.TARGET}.o
+ @${LD} -x -r ${.TARGET}.o -o ${.TARGET}
+ @rm -f ${.TARGET}.o
+