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
10 CFLAGS+= -I${CSUDIR}/../common \
11 -I${CSUDIR}/../../libc/include
12 CFLAGS+= -fno-omit-frame-pointer
13 CFLAGS+= -fno-asynchronous-unwind-tables
15 .PATH: ${CSUDIR} ${CSUDIR}/../common
17 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
18 # directly compiled to .o files.
21 ${CC} ${CFLAGS} -S -o ${.TARGET} ${CSUDIR}/crt1.c
22 sed ${SED_FIX_NOTE} ${.TARGET}
25 ${CC} ${CFLAGS} -c -o ${.TARGET} crt1.s
28 ${CC} ${CFLAGS} -DGCRT -S -o ${.TARGET} ${CSUDIR}/crt1.c
29 sed ${SED_FIX_NOTE} ${.TARGET}
32 ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1.s
35 ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${CSUDIR}/crt1.c
36 sed ${SED_FIX_NOTE} ${.TARGET}
39 ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1.s