Makefile revision 1.19
1# $NetBSD: Makefile,v 1.19 1995/02/13 21:48:17 cgd Exp $ 2 3LIB= kern 4NOPIC= 5OBJMACHINE= 6CFLAGS= -O3 -I${.CURDIR} -Imachine/.. -I. -I${.CURDIR}/../.. 7 8machine-links: 9 -@rm -f machine && \ 10 ln -s ${.CURDIR}/../../arch/${MACHINE}/include machine 11 -@rm -f ${MACHINE_ARCH} && \ 12 ln -s ${.CURDIR}/../../arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} 13 14lib${LIB}.a lib${LIB}_p.a:: machine-links 15 16.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc) 17.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 18.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 19.endif 20 21LIBC= ${.CURDIR}/../../../lib/libc 22.PATH: ${LIBC}/string ${LIBC}/arch/${MACHINE_ARCH}/string 23.PATH: ${LIBC}/net ${LIBC}/arch/${MACHINE_ARCH}/net 24.PATH: ${LIBC}/gen ${LIBC}/arch/${MACHINE_ARCH}/gen 25.PATH: ${LIBC}/stdlib ${LIBC}/arch/${MACHINE_ARCH}/stdlib 26.PATH: ${LIBC}/sys ${LIBC}/arch/${MACHINE_ARCH}/sys 27AINC+= -I${LIBC}/arch/${MACHINE_ARCH} 28CFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} 29 30.if (${MACHINE_ARCH} != "alpha") 31# Quad support 32SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 33 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 34 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 35.PATH: ${LIBC}/arch/${MACHINE_ARCH}/quad ${LIBC}/quad 36.endif 37 38# Other stuff 39SRCS+= mcount.c 40 41# mcount cannot be compiled with profiling 42mcount.po: mcount.o 43 cp mcount.o mcount.po 44 45CLEANFILES+= machine ${MACHINE_ARCH} 46 47install: 48 49.include <bsd.lib.mk> 50