Makefile revision 234356
170658Sobrien# $FreeBSD: head/lib/csu/powerpc/Makefile 234356 2012-04-16 21:36:55Z dim $ 270658Sobrien 385595Sobrien.PATH: ${.CURDIR}/../common 485595Sobrien 570658SobrienSRCS= crt1.c crti.S crtn.S 670658SobrienOBJS= ${SRCS:N*.h:R:S/$/.o/g} 7200038SkibOBJS+= Scrt1.o gcrt1.o 8204757SuqsCFLAGS+= -I${.CURDIR}/../common \ 9234356Sdim -I${.CURDIR}/../../libc/include \ 10234356Sdim -mlongcall 1170658Sobrien 1296516Sruall: ${OBJS} 1370658Sobrien 1496530SruCLEANFILES= ${OBJS} 15217375SdimCLEANFILES+= crt1.s gcrt1.s Scrt1.s 1696530Sru 17217375Sdim# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not 18217375Sdim# directly compiled to .o files. 1970658Sobrien 20217375Sdimcrt1.s: crt1.c 21217375Sdim ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c 22232832Skib sed ${SED_FIX_NOTE} ${.TARGET} 23200038Skib 24217375Sdimcrt1.o: crt1.s 25217375Sdim ${CC} ${CFLAGS} -c -o ${.TARGET} crt1.s 26217375Sdim 27217375Sdimgcrt1.s: crt1.c 28217375Sdim ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c 29232832Skib sed ${SED_FIX_NOTE} ${.TARGET} 30217375Sdim 31217375Sdimgcrt1.o: gcrt1.s 32217375Sdim ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1.s 33217375Sdim 34217375SdimScrt1.s: crt1.c 35217375Sdim ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c 36232832Skib sed ${SED_FIX_NOTE} ${.TARGET} 37217375Sdim 38217375SdimScrt1.o: Scrt1.s 39217375Sdim ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1.s 40217375Sdim 4170658Sobrienrealinstall: 42100872Sru ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 4396516Sru ${OBJS} ${DESTDIR}${LIBDIR} 4470658Sobrien 4570658Sobrien.include <bsd.lib.mk> 46