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