Makefile revision 1.22
1#	$NetBSD: Makefile,v 1.22 1995/09/26 18:27:24 jonathan Exp $
2
3LIB=	kern
4NOPIC=
5
6DIR=${KERNREL}${KERNDIR}
7
8.if exists (${DIR}/arch/${MACHINE_ARCH}/Makefile.inc)
9.PATH:	${DIR}/arch/${MACHINE_ARCH}
10.include "${DIR}/arch/${MACHINE_ARCH}/Makefile.inc"
11.endif
12
13.PATH: ${DIR}
14
15CC = ${KERNCC}
16CFLAGS += -I${DIR}/arch/${MACHINE_ARCH} \
17	${KERNCFLAGS:S/-D_KERNEL//:S@-I.@-I${KERNREL}.@g}
18
19.if (${MACHINE_ARCH} != "alpha")
20# Quad support
21SRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
22	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
23	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
24.endif
25
26# Other stuff
27SRCS+=	mcount.c
28
29# mcount cannot be compiled with profiling
30mcount.po: mcount.o
31	cp mcount.o mcount.po
32
33install:
34
35.include <bsd.lib.mk>
36