Makefile revision 232932
170658Sobrien# $FreeBSD: head/lib/csu/powerpc64/Makefile 232932 2012-03-13 18:59:19Z nwhitehorn $ 270658Sobrien 385595Sobrien.PATH: ${.CURDIR}/../common 485595Sobrien 570658SobrienSRCS= crt1.c crti.S crtn.S 670658SobrienOBJS= ${SRCS:N*.h:R:S/$/.o/g} 7223599SnwhitehornOBJS+= Scrt1.o gcrt1.o 8223599SnwhitehornCFLAGS+= -I${.CURDIR}/../common \ 9232932Snwhitehorn -I${.CURDIR}/../../libc/include \ 10232932Snwhitehorn -mlongcall 1170658Sobrien 1296516Sruall: ${OBJS} 1370658Sobrien 1496530SruCLEANFILES= ${OBJS} 15223599SnwhitehornCLEANFILES+= 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} 23217375Sdim 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 34223599SnwhitehornScrt1.s: crt1.c 35223599Snwhitehorn ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c 36232832Skib sed ${SED_FIX_NOTE} ${.TARGET} 37223599Snwhitehorn 38223599SnwhitehornScrt1.o: Scrt1.s 39223599Snwhitehorn ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1.s 40223599Snwhitehorn 4170658Sobrienrealinstall: 42100872Sru ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 4396516Sru ${OBJS} ${DESTDIR}${LIBDIR} 4470658Sobrien 4570658Sobrien.include <bsd.lib.mk> 46