ee0572d6e572004fd9d628fbae452a133fe32d62
[dragonfly.git] / gnu / lib / gcc47 / libgcc_eh / Makefile
1 .include "../Makefile.inc"
2 .PATH: ${GCCDIR}/libgcc
3 .PATH: ${GCCDIR}/libgcc/config/i386
4
5 LIB=            gcc_eh
6
7 CFLAGS+=        -I${.CURDIR}
8 CFLAGS+=        -I${.OBJDIR}
9 CFLAGS+=        -I${GCCDIR}/libgcc
10 CFLAGS+=        -I../csu
11 CFLAGS+=        -fbuilding-libgcc
12 CFLAGS+=        -fno-stack-protector
13 CFLAGS+=        -fexceptions
14 CFLAGS+=        -fvisibility=hidden
15 CFLAGS+=        -DIN_GCC
16 CFLAGS+=        -DIN_LIBGCC2
17 CFLAGS+=        -DHAVE_CC_TLS
18 CFLAGS+=        -DHIDE_EXPORTS
19
20 # LIB2ADDEH, gcc/Makefile
21 SRCS+=  unwind-dw2.c \
22         unwind-dw2-fde-dip.c \
23         unwind-sjlj.c \
24         unwind-c.c \
25         emutls.c
26
27 #generated sources
28 SRCS+=  unwind.h md-unwind-support.h gthr-default.h
29
30 unwind.h: unwind-generic.h
31         cp ${.ALLSRC} ${.TARGET}
32
33 md-unwind-support.h: dragonfly-unwind.h
34         cp ${.ALLSRC} ${.TARGET}
35
36 gthr-default.h: gthr-posix.h
37         cp ${.ALLSRC} ${.TARGET}
38
39 CLEANFILES+=    unwind.h md-unwind-support.h gthr-default.h
40
41 beforedepend: cc_prep
42
43 cc_prep: .PHONY
44         cd ${CCDIR}/cc_prep; ${MAKE} depend
45
46 .include <bsd.lib.mk>