1 # $NetBSD: Makefile,v 1.28 1996/08/08 15:06:42 mycroft Exp $ 2 3 LIB= kern 4 NOPIC= 5 6 CPPFLAGS= -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 15 SRCS+= 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 21 SRCS+= 22 23 # Files to clean up 24 CLEANFILES+= lib${LIB}.o lib${LIB}.po 25 26 # mcount cannot be compiled with profiling 27 mcount.po: mcount.o 28 cp mcount.o mcount.po 29 30 install: 31 32 .include <bsd.lib.mk> 33 34 lib${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 39 POBJS+= ${OBJS:.o=.po} mcount.po 40 lib${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