Install input{,-event-types}.h to /usr/include/compat/linux too.
[dragonfly.git] / lib / csu / x86_64 / Makefile.csu
blob8496f3f9022eb93d416e0e6bf4ba1973dd4be8e9
1 # $FreeBSD: src/lib/csu/amd64/Makefile SVN 232832 2012/03/11 kib $
3 SRCS=           crt1.c crti.S crtn.S
4 OBJS+=          Scrt1.o gcrt1.o
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
11 NOIMPLICITDEPEND=
12 WARNS?=         2
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)
20 .if ${CFLAGS:M-flto}
21 CFLAGS+=        -fno-lto
22 .endif
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.
29 crt1.s: crt1.c
30         ${CC} ${CFLAGS:N-flto} -S -o ${.TARGET} ${CSUDIR}/crt1.c
31         sed ${SED_FIX_NOTE} ${.TARGET}
33 crt1.o: crt1.s
34         ${CC} -c -o ${.TARGET} crt1.s
36 gcrt1.s: crt1.c
37         ${CC} ${CFLAGS:N-flto} -DGCRT -S -o ${.TARGET} ${CSUDIR}/crt1.c
38         sed ${SED_FIX_NOTE} ${.TARGET}
40 gcrt1.o: gcrt1.s
41         ${CC} -c -o ${.TARGET} gcrt1.s
43 Scrt1.s: crt1.c
44         ${CC} ${CFLAGS:N-flto} -fPIC -DPIC -S -o ${.TARGET} ${CSUDIR}/crt1.c
45         sed ${SED_FIX_NOTE} ${.TARGET}
47 Scrt1.o: Scrt1.s
48         ${CC} -c -o ${.TARGET} Scrt1.s