Home | History | Annotate | Line # | Download | only in libkern
Makefile revision 1.28
      1  1.28   mycroft #	$NetBSD: Makefile,v 1.28 1996/08/08 15:06:42 mycroft Exp $
      2   1.1       cgd 
      3   1.1       cgd LIB=	kern
      4   1.1       cgd NOPIC=
      5   1.9   deraadt 
      6  1.28   mycroft CPPFLAGS=	-I${.CURDIR}/arch/${MACHINE_ARCH} ${KERNCPPFLAGS}
      7  1.20  christos 
      8  1.28   mycroft .if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
      9  1.28   mycroft .PATH:	${.CURDIR}/arch/${MACHINE_ARCH}
     10  1.28   mycroft .include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
     11   1.1       cgd .endif
     12   1.5       cgd 
     13  1.19       cgd .if (${MACHINE_ARCH} != "alpha")
     14   1.5       cgd # Quad support
     15   1.5       cgd SRCS+=	adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \
     16   1.5       cgd 	lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \
     17   1.5       cgd 	subdi3.c  ucmpdi2.c udivdi3.c umoddi3.c xordi3.c
     18  1.19       cgd .endif
     19   1.8       cgd 
     20   1.8       cgd # Other stuff
     21  1.23   mycroft SRCS+=	
     22  1.27    scottr 
     23  1.27    scottr # Files to clean up
     24  1.27    scottr CLEANFILES+= lib${LIB}.o lib${LIB}.po
     25   1.5       cgd 
     26  1.11       cgd # mcount cannot be compiled with profiling
     27  1.11       cgd mcount.po: mcount.o
     28  1.11       cgd 	cp mcount.o mcount.po
     29  1.19       cgd 
     30  1.19       cgd install:
     31   1.1       cgd 
     32   1.1       cgd .include <bsd.lib.mk>
     33  1.23   mycroft 
     34  1.23   mycroft lib${LIB}.o:: ${OBJS}
     35  1.23   mycroft 	@echo building standard ${LIB} library
     36  1.23   mycroft 	@rm -f lib${LIB}.o
     37  1.23   mycroft 	@${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort`
     38  1.23   mycroft 
     39  1.23   mycroft POBJS+=	${OBJS:.o=.po} mcount.po
     40  1.23   mycroft lib${LIB}.po:: ${POBJS}
     41  1.23   mycroft 	@echo building profiled ${LIB} library
     42  1.23   mycroft 	@rm -f lib${LIB}.po
     43  1.23   mycroft 	@${LD} -r -o lib${LIB}.po `lorder ${POBJS} | tsort`
     44