Makefile revision 1.23
11.23Smycroft#	$NetBSD: Makefile,v 1.23 1995/10/07 09:56:54 mycroft Exp $
21.1Scgd
31.1ScgdLIB=	kern
41.1ScgdNOPIC=
51.9Sderaadt
61.21SchristosDIR=${KERNREL}${KERNDIR}
71.20Schristos
81.20Schristos.if exists (${DIR}/arch/${MACHINE_ARCH}/Makefile.inc)
91.20Schristos.PATH:	${DIR}/arch/${MACHINE_ARCH}
101.20Schristos.include "${DIR}/arch/${MACHINE_ARCH}/Makefile.inc"
111.1Scgd.endif
121.1Scgd
131.20Schristos.PATH: ${DIR}
141.20Schristos
151.20SchristosCC = ${KERNCC}
161.20SchristosCFLAGS += -I${DIR}/arch/${MACHINE_ARCH} \
171.21Schristos	${KERNCFLAGS:S/-D_KERNEL//:S@-I.@-I${KERNREL}.@g}
181.5Scgd
191.19Scgd.if (${MACHINE_ARCH} != "alpha")
201.5Scgd# Quad support
211.5ScgdSRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
221.5Scgd	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
231.5Scgd	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
241.19Scgd.endif
251.8Scgd
261.8Scgd# Other stuff
271.23SmycroftSRCS+=	
281.5Scgd
291.11Scgd# mcount cannot be compiled with profiling
301.11Scgdmcount.po: mcount.o
311.11Scgd	cp mcount.o mcount.po
321.19Scgd
331.19Scgdinstall:
341.1Scgd
351.1Scgd.include <bsd.lib.mk>
361.23Smycroft
371.23Smycroftlib${LIB}.o:: ${OBJS}
381.23Smycroft	@echo building standard ${LIB} library
391.23Smycroft	@rm -f lib${LIB}.o
401.23Smycroft	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
411.23Smycroft
421.23SmycroftPOBJS+=	${OBJS:.o=.po} mcount.po
431.23Smycroftlib${LIB}.po:: ${POBJS}
441.23Smycroft	@echo building profiled ${LIB} library
451.23Smycroft	@rm -f lib${LIB}.po
461.23Smycroft	@${LD} -r -o lib${LIB}.po `lorder ${POBJS} | tsort`
47