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