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