Makefile revision 1.28
1#	$NetBSD: Makefile,v 1.28 1996/08/08 15:06:42 mycroft Exp $
2
3LIB=	kern
4NOPIC=
5
6CPPFLAGS=	-I${.CURDIR}/arch/${MACHINE_ARCH} ${KERNCPPFLAGS}
7
8.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
9.PATH:	${.CURDIR}/arch/${MACHINE_ARCH}
10.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
11.endif
12
13.if (${MACHINE_ARCH} != "alpha")
14# Quad support
15SRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
16	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
17	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
18.endif
19
20# Other stuff
21SRCS+=	
22
23# Files to clean up
24CLEANFILES+= lib${LIB}.o lib${LIB}.po
25
26# mcount cannot be compiled with profiling
27mcount.po: mcount.o
28	cp mcount.o mcount.po
29
30install:
31
32.include <bsd.lib.mk>
33
34lib${LIB}.o:: ${OBJS}
35	@echo building standard ${LIB} library
36	@rm -f lib${LIB}.o
37	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
38
39POBJS+=	${OBJS:.o=.po} mcount.po
40lib${LIB}.po:: ${POBJS}
41	@echo building profiled ${LIB} library
42	@rm -f lib${LIB}.po
43	@${LD} -r -o lib${LIB}.po `lorder ${POBJS} | tsort`
44