1 # $Id: Makefile,v 1.1 1993/10/13 05:40:34 cgd Exp $ 2 3 LIB= kern 4 LIBDIR= ${.CURDIR}/../arch/${MACHINE}/compile 5 NOPIC= 6 7 .if exists (${.CURDIR}/${MACHINE}/Makefile.inc) 8 .PATH: ${.CURDIR}/${MACHINE} 9 .include "${.CURDIR}/${MACHINE}/Makefile.inc" 10 .endif 11 12 .if defined(ARCH) && !empty(ARCH) 13 .if exists (${.CURDIR}/${ARCH}/Makefile.inc) 14 .PATH: ${.CURDIR}/${ARCH} 15 .include "${.CURDIR}/${ARCH}/Makefile.inc" 16 .endif 17 .endif 18 19 LIBC= ${.CURDIR}/../../lib/libc 20 .PATH: ${LIBC}/string ${LIBC}/arch/${MACHINE}/string 21 .PATH: ${LIBC}/net ${LIBC}/arch/${MACHINE}/net 22 .PATH: ${LIBC}/gen ${LIBC}/arch/${MACHINE}/gen 23 .PATH: ${LIBC}/stdlib ${LIBC}/arch/${MACHINE}/stdlib 24 .PATH: ${LIBC}/sys ${LIBC}/arch/${MACHINE}/sys 25 AINC+= -I${LIBC}/arch/${MACHINE} 26 27 install: 28 install ${COPY} lib${LIB}.a ${LIBDIR} 29 ${RANLIB} -t ${LIBDIR}/lib${LIB}.a 30 .if !defined(NOPROFILE) 31 install ${COPY} lib${LIB}_p.a ${LIBDIR} 32 ${RANLIB} -t ${LIBDIR}/lib${LIB}_p.a 33 .endif 34 35 .include <bsd.lib.mk> 36