Makefile revision 1.35
1# $NetBSD: Makefile,v 1.35 1997/05/30 01:55:10 cjs Exp $ 2 3LIB= kern 4NOPIC= 5 6# this library is needed only during build 7NOINSTALL=1 8 9M= ${.CURDIR}/arch/${MACHINE_ARCH} 10 11CPPFLAGS= -I$M ${KERNCPPFLAGS} ${KERNMISCCPPFLAGS} 12 13.if exists ($M/Makefile.inc) 14.PATH: $M 15.include "$M/Makefile.inc" 16.endif 17 18.if (${MACHINE_ARCH} != "alpha") 19# Quad support 20SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c divdi3.c iordi3.c \ 21 lshldi3.c lshrdi3.c moddi3.c muldi3.c negdi2.c notdi2.c qdivrem.c \ 22 subdi3.c ucmpdi2.c udivdi3.c umoddi3.c xordi3.c 23.endif 24 25# Other stuff 26SRCS+= md5c.c 27 28# Files to clean up 29CLEANFILES+= lib${LIB}.o lib${LIB}.po 30 31# mcount cannot be compiled with profiling 32mcount.po: mcount.o 33 cp mcount.o mcount.po 34 35.include <bsd.lib.mk> 36 37lib${LIB}.o:: ${OBJS} 38 @echo building standard ${LIB} library 39 @rm -f lib${LIB}.o 40 @${LD} -r -o lib${LIB}.o `lorder ${OBJS} | tsort` 41 42POBJS+= ${OBJS:.o=.po} mcount.po 43lib${LIB}.po:: ${POBJS} 44 @echo building profiled ${LIB} library 45 @rm -f lib${LIB}.po 46 @${LD} -r -o lib${LIB}.po `lorder ${POBJS} | tsort` 47