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