aca4bd31129079b23e637aa4a54ae074259666d3
[dragonfly.git] / gnu / lib / gcc80 / libgcc_pic / Makefile
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
7 LIB=    gcc_pic
8
9 NOPROFILE=      YES
10 # Mimic libgcc_s.so, this is a special case
11 NOSHARED=       YES
12
13 CFLAGS+=        -fpic
14
15 CFLAGS+=        -I${.CURDIR}
16 CFLAGS+=        -I${.OBJDIR}
17 CFLAGS+=        -I${GCCDIR}/libgcc
18 CFLAGS+=        -I../csu
19 CFLAGS+=        -fbuilding-libgcc
20 CFLAGS+=        -fno-stack-protector
21 CFLAGS+=        -fexceptions
22 CFLAGS+=        -DIN_GCC
23 CFLAGS+=        -DIN_LIBGCC2
24 CFLAGS+=        -DHAVE_CC_TLS
25 CFLAGS+=        -DSHARED
26
27 # FUNCS and SOFTFUNCS defined in Makefile.src
28 OBJS=           ${FUNCS:S/$/.o/}
29 SRCS=           ${SOFTFUNCS:S/$/.c/}
30
31 # LIB2ADDEH, gcc/Makefile
32 SRCS+=  unwind-dw2.c \
33         unwind-dw2-fde-dip.c \
34         unwind-sjlj.c \
35         unwind-c.c \
36         emutls.c
37
38 # generated sources
39 unwind.h: unwind-generic.h
40         cp ${.ALLSRC} ${.TARGET}
41
42 gthr-default.h: gthr-posix.h
43         cp ${.ALLSRC} ${.TARGET}
44
45 md-unwind-support.h: dragonfly-unwind.h
46         cp ${.ALLSRC} ${.TARGET}
47
48 sfp-machine.h: ${GCCDIR}/libgcc/config/i386/sfp-machine.h
49         cp ${.ALLSRC} ${.TARGET}
50
51 enable-execute-stack.c: enable-execute-stack-mprotect.c
52         cp ${.ALLSRC} ${.TARGET}
53
54 auto-target.h: ${.CURDIR}/../libgcc/auto-target.h
55         cp ${.ALLSRC} ${.TARGET}
56
57 CLEANFILES+=    unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
58                 enable-execute-stack.c auto-target.h
59
60 beforedepend:   unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
61                 enable-execute-stack.c auto-target.h
62
63 .include <bsd.lib.mk>