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