Makefile revision 1.37
11.37Sgwr# $NetBSD: Makefile,v 1.37 1997/11/04 20:34:46 gwr Exp $ 21.1Scgd 31.1ScgdLIB= kern 41.1ScgdNOPIC= 51.9Sderaadt 61.29SmycroftM= ${.CURDIR}/arch/${MACHINE_ARCH} 71.20Schristos 81.32ScgdCPPFLAGS= -I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS} 91.29Smycroft 101.29Smycroft.if exists ($M/Makefile.inc) 111.29Smycroft.PATH: $M 121.29Smycroft.include "$M/Makefile.inc" 131.1Scgd.endif 141.5Scgd 151.19Scgd.if (${MACHINE_ARCH} != "alpha") 161.5Scgd# Quad support 171.5ScgdSRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 181.5Scgd lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 191.5Scgd subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 201.19Scgd.endif 211.8Scgd 221.8Scgd# Other stuff 231.33SthorpejSRCS+= md5c.c 241.27Sscottr 251.27Sscottr# Files to clean up 261.27SscottrCLEANFILES+= lib${LIB}.o lib${LIB}.po 271.5Scgd 281.11Scgd# mcount cannot be compiled with profiling 291.11Scgdmcount.po: mcount.o 301.11Scgd cp mcount.o mcount.po 311.36Scjs 321.36Scjs# only needed during build 331.36Scjslibinstall:: 341.1Scgd 351.1Scgd.include <bsd.lib.mk> 361.23Smycroft 371.23Smycroftlib${LIB}.o:: ${OBJS} 381.23Smycroft @echo building standard ${LIB} library 391.23Smycroft @rm -f lib${LIB}.o 401.37Sgwr @${LD} -r -o lib${LIB}.o `NM=${NM} ${LORDER} ${OBJS} | ${TSORT}` 411.23Smycroft 421.23SmycroftPOBJS+= ${OBJS:.o=.po} mcount.po 431.23Smycroftlib${LIB}.po:: ${POBJS} 441.23Smycroft @echo building profiled ${LIB} library 451.23Smycroft @rm -f lib${LIB}.po 461.37Sgwr @${LD} -r -o lib${LIB}.po `NM=${NM} ${LORDER} ${POBJS} | ${TSORT}` 47