1 # $Id: Makefile,v 1.9 1994/05/16 06:25:21 deraadt Exp $ 2 3 LIB= kern 4 NOPIC= 5 OBJMACHINE= 6 CFLAGS+= -I${.CURDIR} -Imachine/.. -I. -I${.CURDIR}/../.. 7 8 machine-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 14 all: machine-links 15 16 .if exists (${.CURDIR}/${MACHINE_ARCH}/Makefile.inc) 17 .PATH: ${.CURDIR}/${MACHINE_ARCH} 18 .include "${.CURDIR}/${MACHINE_ARCH}/Makefile.inc" 19 .endif 20 21 LIBC= ${.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 27 AINC+= -I${LIBC}/arch/${MACHINE_ARCH} 28 29 # Quad support 30 SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 31 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 32 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 33 34 # Other stuff 35 SRCS+= mcount.c 36 37 .PATH: ${LIBC}/arch/${MACHINE_ARCH}/quad ${LIBC}/quad 38 39 install: 40 41 .include <bsd.lib.mk> 42