Home | History | Annotate | Line # | Download | only in libkern
Makefile revision 1.14
      1 #	$Id: Makefile,v 1.14 1994/06/30 20:17:47 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}/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 # Quad support
     31 SRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
     32 	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
     33 	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
     34 
     35 # Other stuff
     36 SRCS+=	mcount.c
     37 
     38 .PATH: ${LIBC}/arch/${MACHINE_ARCH}/quad ${LIBC}/quad
     39 
     40 install:
     41 
     42 # mcount cannot be compiled with profiling
     43 mcount.po: mcount.o
     44 	cp mcount.o mcount.po
     45 
     46 CLEANFILES+= machine ${MACHINE_ARCH}
     47 
     48 .include <bsd.lib.mk>
     49