Home | History | Annotate | Line # | Download | only in libkern
Makefile revision 1.19
      1 #	$NetBSD: Makefile,v 1.19 1995/02/13 21:48:17 cgd Exp $
      2 
      3 LIB=	kern
      4 NOPIC=
      5 OBJMACHINE=
      6 CFLAGS= -O3 -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 lib${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 
     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 CFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH}
     29 
     30 .if (${MACHINE_ARCH} != "alpha")
     31 # Quad support
     32 SRCS+=	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
     39 SRCS+=	mcount.c
     40 
     41 # mcount cannot be compiled with profiling
     42 mcount.po: mcount.o
     43 	cp mcount.o mcount.po
     44 
     45 CLEANFILES+= machine ${MACHINE_ARCH}
     46 
     47 install:
     48 
     49 .include <bsd.lib.mk>
     50