1 1.35 cjs # $NetBSD: Makefile,v 1.35 1997/05/30 01:55:10 cjs Exp $ 2 1.1 cgd 3 1.1 cgd LIB= kern 4 1.1 cgd NOPIC= 5 1.9 deraadt 6 1.35 cjs # this library is needed only during build 7 1.35 cjs NOINSTALL=1 8 1.35 cjs 9 1.29 mycroft M= ${.CURDIR}/arch/${MACHINE_ARCH} 10 1.20 christos 11 1.32 cgd CPPFLAGS= -I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS} 12 1.29 mycroft 13 1.29 mycroft .if exists ($M/Makefile.inc) 14 1.29 mycroft .PATH: $M 15 1.29 mycroft .include "$M/Makefile.inc" 16 1.1 cgd .endif 17 1.5 cgd 18 1.19 cgd .if (${MACHINE_ARCH} != "alpha") 19 1.5 cgd # Quad support 20 1.5 cgd SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 21 1.5 cgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 22 1.5 cgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 23 1.19 cgd .endif 24 1.8 cgd 25 1.8 cgd # Other stuff 26 1.33 thorpej SRCS+= md5c.c 27 1.27 scottr 28 1.27 scottr # Files to clean up 29 1.27 scottr CLEANFILES+= lib${LIB}.o lib${LIB}.po 30 1.5 cgd 31 1.11 cgd # mcount cannot be compiled with profiling 32 1.11 cgd mcount.po: mcount.o 33 1.11 cgd cp mcount.o mcount.po 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.23 mycroft @${LD} -r -o lib${LIB}.o `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.23 mycroft @${LD} -r -o lib${LIB}.po `lorder ${POBJS} | tsort` 47