1 # $NetBSD: Makefile,v 1.21 1995/06/26 03:25:46 christos Exp $ 2 3 LIB= kern 4 NOPIC= 5 6 DIR=${KERNREL}${KERNDIR} 7 8 .if exists (${DIR}/arch/${MACHINE_ARCH}/Makefile.inc) 9 .PATH: ${DIR}/arch/${MACHINE_ARCH} 10 .include "${DIR}/arch/${MACHINE_ARCH}/Makefile.inc" 11 .endif 12 13 LIBC= ${DIR}/../../../lib/libc 14 15 .PATH: ${LIBC}/string ${LIBC}/arch/${MACHINE_ARCH}/string 16 .PATH: ${LIBC}/net ${LIBC}/arch/${MACHINE_ARCH}/net 17 .PATH: ${LIBC}/gen ${LIBC}/arch/${MACHINE_ARCH}/gen 18 .PATH: ${LIBC}/stdlib ${LIBC}/arch/${MACHINE_ARCH}/stdlib 19 .PATH: ${LIBC}/sys ${LIBC}/arch/${MACHINE_ARCH}/sys 20 .PATH: ${DIR} 21 22 AINC+= -I${LIBC}/arch/${MACHINE_ARCH} 23 CC = ${KERNCC} 24 CFLAGS += -I${DIR}/arch/${MACHINE_ARCH} \ 25 ${KERNCFLAGS:S/-D_KERNEL//:S@-I.@-I${KERNREL}.@g} 26 27 .if (${MACHINE_ARCH} != "alpha") 28 # Quad support 29 SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 30 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 31 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 32 .PATH: ${LIBC}/arch/${MACHINE_ARCH}/quad ${LIBC}/quad 33 .endif 34 35 # Other stuff 36 SRCS+= mcount.c 37 38 # mcount cannot be compiled with profiling 39 mcount.po: mcount.o 40 cp mcount.o mcount.po 41 42 install: 43 44 .include <bsd.lib.mk> 45