blob: 4063f90ed0b7c59dbd5f1e8f50fb47bfe37f6631 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# $OpenBSD: Makefile.inc,v 1.10 2003/06/01 17:00:31 deraadt Exp $
# $NetBSD: Makefile.inc,v 1.6 1994/10/26 06:39:03 cgd Exp $
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 ffs.c strcmp.c strlcat.c strlcpy.c \
strlen.c strncmp.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
bzero.po: ${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
|