1178739Sgonzo# $FreeBSD$ 2178739Sgonzo 3178739Sgonzo.PATH: ${.CURDIR}/../common 4178739Sgonzo 5178739SgonzoSRCS= crt1.c crti.S crtn.S 6178739SgonzoOBJS= ${SRCS:N*.h:R:S/$/.o/g} 7200038SkibOBJS+= Scrt1.o gcrt1.o 8204757SuqsCFLAGS+= -I${.CURDIR}/../common \ 9178739Sgonzo -I${.CURDIR}/../../libc/include 10178739Sgonzo 11178739Sgonzoall: ${OBJS} 12178739Sgonzo 13178739SgonzoCLEANFILES= ${OBJS} 14217375SdimCLEANFILES+= crt1.s gcrt1.s Scrt1.s 15178739Sgonzo 16217375Sdim# See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not 17217375Sdim# directly compiled to .o files. 18178739Sgonzo 19217375Sdimcrt1.s: crt1.c 20217375Sdim ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1.c 21217375Sdim sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET} 22200038Skib 23217375Sdimcrt1.o: crt1.s 24234726Sdim ${CC} ${ACFLAGS} -c -o ${.TARGET} crt1.s 25217375Sdim 26217375Sdimgcrt1.s: crt1.c 27217375Sdim ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1.c 28217375Sdim sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET} 29217375Sdim 30217375Sdimgcrt1.o: gcrt1.s 31234726Sdim ${CC} ${ACFLAGS} -c -o ${.TARGET} gcrt1.s 32217375Sdim 33217375SdimScrt1.s: crt1.c 34217375Sdim ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c 35217375Sdim sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET} 36217375Sdim 37217375SdimScrt1.o: Scrt1.s 38234726Sdim ${CC} ${ACFLAGS} -c -o ${.TARGET} Scrt1.s 39217375Sdim 40178739Sgonzorealinstall: 41178739Sgonzo ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ 42178739Sgonzo ${OBJS} ${DESTDIR}${LIBDIR} 43178739Sgonzo 44178739Sgonzo.include <bsd.lib.mk> 45