Makefile revision 232832
150476Speter# $FreeBSD: head/lib/csu/i386-elf/Makefile 232832 2012-03-11 20:04:09Z kib $ 234198Sjdp 385594Sobrien.PATH: ${.CURDIR}/../common 485594Sobrien 567811SobrienSRCS= crti.S crtn.S 634198SjdpFILES= ${SRCS:N*.h:R:S/$/.o/g} gcrt1.o crt1.o Scrt1.o 738928SjdpFILESOWN= ${LIBOWN} 8114667SobrienFILESGRP= ${LIBGRP} 9115826SbdeFILESMODE= ${LIBMODE} 1093399SmarkmFILESDIR= ${LIBDIR} 1134198SjdpCFLAGS+= -I${.CURDIR}/../common \ 1296516Sru -I${.CURDIR}/../../libc/include 1334198SjdpCLEANFILES= ${FILES} crt1_c.o crt1_s.o gcrt1_c.o Scrt1_c.o 1496530SruCLEANFILES+= crt1_c.s gcrt1_c.s Scrt1_c.s 1596530Sru 1685594Sobrien# See the comment in lib/csu/common/crtbrand.c for the reason crt1_c.c is not 1738928Sjdp# directly compiled to .o files. 1838928Sjdp 1934198Sjdpgcrt1_c.s: crt1_c.c 20100872Sru ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${.CURDIR}/crt1_c.c 2196516Sru sed ${SED_FIX_NOTE} ${.TARGET} 2234198Sjdp 2334198Sjdpgcrt1_c.o: gcrt1_c.s 24 ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1_c.s 25 26gcrt1.o: gcrt1_c.o crt1_s.o 27 ${LD} ${LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o 28 29crt1_c.s: crt1_c.c 30 ${CC} ${CFLAGS} -S -o ${.TARGET} ${.CURDIR}/crt1_c.c 31 sed ${SED_FIX_NOTE} ${.TARGET} 32 33crt1_c.o: crt1_c.s 34 ${CC} ${CFLAGS} -c -o ${.TARGET} crt1_c.s 35 36crt1.o: crt1_c.o crt1_s.o 37 ${LD} ${LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o 38 objcopy --localize-symbol _start1 crt1.o 39 40Scrt1_c.s: crt1_c.c 41 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1_c.c 42 sed ${SED_FIX_NOTE} ${.TARGET} 43 44Scrt1_c.o: Scrt1_c.s 45 ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1_c.s 46 47Scrt1.o: Scrt1_c.o crt1_s.o 48 ${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o 49 objcopy --localize-symbol _start1 Scrt1.o 50 51.include <bsd.prog.mk> 52