Makefile revision 1.20
1# $NetBSD: Makefile,v 1.20 1995/06/24 20:31:12 christos Exp $ 2 3LIB= kern 4NOPIC= 5 6DIR=${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 13LIBC= ${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 22AINC+= -I${LIBC}/arch/${MACHINE_ARCH} 23CC = ${KERNCC} 24CFLAGS += -I${DIR}/arch/${MACHINE_ARCH} \ 25 ${KERNCFLAGS:S/-D_KERNEL//:S@-I.@-I${KERNREL}/.@g} 26 27.if (${MACHINE_ARCH} != "alpha") 28# Quad support 29SRCS+= 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 36SRCS+= mcount.c 37 38# mcount cannot be compiled with profiling 39mcount.po: mcount.o 40 cp mcount.o mcount.po 41 42install: 43 44.include <bsd.lib.mk> 45