1 # $FreeBSD: src/lib/csu/amd64/Makefile SVN 232832 2012/03/11 kib $
3 SRCS= crt1.c crti.S crtn.S
5 INSTALLOBJS+= crt1.o crti.o crtn.o Scrt1.o gcrt1.o
6 CLEANFILES= crt1.s gcrt1.s Scrt1.s
7 CLEANFILES+= crt1.o crti.o crtn.o Scrt1.o gcrt1.o
8 MKDEPINTDEPS= crt1.o:crt1.s
9 MKDEPINTDEPS+= crt1.o:gcrt1.s
10 MKDEPINTDEPS+= crt1.o:Scrt1.s
14 CFLAGS+= -I${CSUDIR}/../common \
15 -I${CSUDIR}/../../libc/include
16 CFLAGS+= -fno-omit-frame-pointer
17 CFLAGS+= -fno-asynchronous-unwind-tables
19 # explictly do not let the use of -flto (ld.gold blows away os version elf note)
24 .PATH: ${CSUDIR} ${CSUDIR}/../common
26 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
27 # directly compiled to .o files.
30 ${CC} ${CFLAGS:N-flto} -S -o ${.TARGET} ${CSUDIR}/crt1.c
31 sed ${SED_FIX_NOTE} ${.TARGET}
34 ${CC} -c -o ${.TARGET} crt1.s
37 ${CC} ${CFLAGS:N-flto} -DGCRT -S -o ${.TARGET} ${CSUDIR}/crt1.c
38 sed ${SED_FIX_NOTE} ${.TARGET}
41 ${CC} -c -o ${.TARGET} gcrt1.s
44 ${CC} ${CFLAGS:N-flto} -fPIC -DPIC -S -o ${.TARGET} ${CSUDIR}/crt1.c
45 sed ${SED_FIX_NOTE} ${.TARGET}
48 ${CC} -c -o ${.TARGET} Scrt1.s