Makefile revision 1.51
11.51Sgwr# $NetBSD: Makefile,v 1.51 1999/04/11 22:08:06 gwr Exp $ 21.1Scgd 31.1ScgdLIB= kern 41.47SlukemMKPIC= no 51.9Sderaadt 61.50SdrochnerARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/} 71.50SdrochnerM= ${.CURDIR}/arch/${ARCHSUBDIR} 81.20Schristos 91.32ScgdCPPFLAGS= -I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS} 101.29Smycroft 111.29Smycroft.if exists ($M/Makefile.inc) 121.29Smycroft.PATH: $M 131.29Smycroft.include "$M/Makefile.inc" 141.1Scgd.endif 151.5Scgd 161.19Scgd.if (${MACHINE_ARCH} != "alpha") 171.5Scgd# Quad support 181.5ScgdSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 191.5Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 201.5Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 211.19Scgd.endif 221.8Scgd 231.8Scgd# Other stuff 241.51SgwrSRCS+= inet_addr.c md5c.c sha1.c pmatch.c 251.27Sscottr 261.27Sscottr# Files to clean up 271.27SscottrCLEANFILES+= lib${LIB}.o lib${LIB}.po 281.5Scgd 291.38Scgd# 301.38Scgd# Special rules for certain objects 311.38Scgd# 321.38Scgd 331.11Scgd# mcount cannot be compiled with profiling 341.11Scgdmcount.po: mcount.o 351.11Scgd cp mcount.o mcount.po 361.40Smycroft 371.46Sperry# XXX these stub builds should be cleaned up even further. 381.46Sperry 391.46Sperry# if no machine specific memcpy(3), build one out of bcopy(3) based stub. 401.40Smycroft.if empty(SRCS:Mmemcpy.S) 411.46SperrySRCS+= memcpy.c 421.44Sperry.endif 431.44Sperry 441.46Sperry# if no machine specific memmove(3), build one out of bcopy(3) based stub. 451.44Sperry.if empty(SRCS:Mmemmove.S) 461.46SperrySRCS+= memmove.c 471.40Smycroft.endif 481.38Scgd 491.46Sperry# if no machine specific strchr(3), build one out of index(3) based stub. 501.38Scgd.if empty(SRCS:Mstrchr.S) 511.46SperrySRCS+= strchr.c 521.38Scgd.endif 531.38Scgd 541.46Sperry# if no machine specific strrchr(3), build one out of rindex(3) based stub. 551.38Scgd.if empty(SRCS:Mstrrchr.S) 561.46SperrySRCS+= strrchr.c 571.38Scgd.endif 581.36Scjs 591.48SchsPOBJS+= mcount.po 601.43Sdrochner 611.36Scjs# only needed during build 621.36Scjslibinstall:: 631.1Scgd 641.1Scgd.include <bsd.lib.mk> 651.23Smycroft 661.23Smycroftlib${LIB}.o:: ${OBJS} 671.23Smycroft @echo building standard ${LIB} library 681.23Smycroft @rm -f lib${LIB}.o 691.37Sgwr @${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}` 701.23Smycroft 711.23Smycroftlib${LIB}.po:: ${POBJS} 721.23Smycroft @echo building profiled ${LIB} library 731.23Smycroft @rm -f lib${LIB}.po 741.37Sgwr @${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}` 75