gcc 4.4: Remove PIE profiling trigger
[dragonfly.git] / lib / csu / i386 / Makefile.csu
CommitLineData
fd8b66cd 1# $FreeBSD: src/lib/csu/i386-elf/Makefile,v 1.6.2.5 2002/11/23 17:44:29 ru Exp $
fd8b66cd 2
e101389c
JM
3SRCS+= crti.S crtn.S
4OBJS+= gcrt1.o crt1.o Scrt1.o
5INSTALLOBJS+= crt1.o crti.o crtn.o gcrt1.o Scrt1.o
6CLEANFILES+= crt1.o crti.o crtn.o gcrt1.o Scrt1.o \
7 crt1_c.o crt1_s.o gcrtl_c.o Scrt1_c.o
1d99ff55 8WARNS?= 2
fd8b66cd 9
e101389c 10CFLAGS+= -I${CSUDIR}/../common
fd8b66cd
SS
11
12.PATH: ${CSUDIR} ${CSUDIR}/../common
13
e101389c
JM
14gcrt1_c.o: crt1_c.c
15 ${CC} ${CFLAGS} -DGCRT -c -o gcrt1_c.o ${CSUDIR}/crt1_c.c
16
17gcrt1.o: gcrt1_c.o crt1_s.o
18 ${LD} ${LDFLAGS} -o gcrt1.o -r crt1_s.o gcrt1_c.o
19
20crt1.o: crt1_c.o crt1_s.o
21 ${LD} ${LDFLAGS} -o crt1.o -r crt1_s.o crt1_c.o
22 objcopy --localize-symbol _start1 crt1.o
23
24Scrt1_c.o: crt1_c.c
2ff8dd8b 25 ${CC} ${CFLAGS} -fPIC -DPIC -c -o Scrt1_c.o ${CSUDIR}/crt1_c.c
e101389c
JM
26
27Scrt1.o: Scrt1_c.o crt1_s.o
28 ${LD} ${LDFLAGS} -o Scrt1.o -r crt1_s.o Scrt1_c.o
29 objcopy --localize-symbol _start1 Scrt1.o