xref: /dragonfly/gnu/lib/gcc47/libgcc_pic/Makefile (revision b450dd39)
1.include "../Makefile.inc"
2.include "../libgcc/Makefile.src"
3.PATH: ${GCCDIR}/libgcc
4.PATH: ${GCCDIR}/libgcc/soft-fp
5.PATH: ${GCCDIR}/libgcc/config/i386
6
7LIB=	gcc
8
9INSTALL_PIC_ARCHIVE=	yes
10NOPROFILE=		yes
11NOINSTALLLIB=		yes
12
13CFLAGS+=	-I${.CURDIR}
14CFLAGS+=	-I${.OBJDIR}
15CFLAGS+=	-I${GCCDIR}/libgcc
16CFLAGS+=	-I../csu
17CFLAGS+=	-DIN_LIBGCC2
18CFLAGS+=	-DIN_GCC
19CFLAGS+=	-DSHARED
20CFLAGS+=	-DHAVE_CC_TLS
21CFLAGS+=	-fbuilding-libgcc
22CFLAGS+=	-fno-stack-protector
23CFLAGS+=	-nodefaultlibs
24
25# FUNCS and SOFTFUNCS defined in Makefile.src
26SRCS+=		${FUNCS:S/$/.c/} ${SOFTFUNCS:S/$/.c/}
27CLEANFILES+=	${FUNCS:S/$/.c/}
28
29# LIB2ADDEH, gcc/Makefile
30SRCS+=	unwind-dw2.c \
31	unwind-dw2-fde-dip.c \
32	unwind-sjlj.c \
33	unwind-c.c \
34	emutls.c
35
36# generated sources
37SRCS+=	unwind.h gthr-default.h sfp-machine.h md-unwind-support.h
38
39unwind.h: unwind-generic.h
40	cp ${.ALLSRC} ${.TARGET}
41
42gthr-default.h: gthr-posix.h
43	cp ${.ALLSRC} ${.TARGET}
44
45md-unwind-support.h: dragonfly-unwind.h
46	cp ${.ALLSRC} ${.TARGET}
47
48sfp-machine.h: ${GCCDIR}/libgcc/config/i386/sfp-machine.h
49	cp ${.ALLSRC} ${.TARGET}
50
51enable-execute-stack.c: enable-execute-stack-freebsd.c
52	cp ${.ALLSRC} ${.TARGET}
53
54CLEANFILES+=	unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
55		enable-execute-stack.c
56
57.include <bsd.lib.mk>
58