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
10 # Mimic libgcc_s.so, this is a special case
17 CFLAGS+= -I${GCCDIR}/libgcc
19 CFLAGS+= -fbuilding-libgcc
20 CFLAGS+= -fno-stack-protector
24 CFLAGS+= -DHAVE_CC_TLS
27 # XXX: workaround for ld.gold issue
28 CFLAGS+= -D_AVOID_WEAKREF
30 # FUNCS and SOFTFUNCS defined in Makefile.src
31 OBJS= ${FUNCS:S/$/.o/}
32 SRCS= ${SOFTFUNCS:S/$/.c/}
34 # LIB2ADDEH, gcc/Makefile
36 unwind-dw2-fde-dip.c \
42 unwind.h: unwind-generic.h
43 cp ${.ALLSRC} ${.TARGET}
45 gthr-default.h: gthr-posix.h
46 cp ${.ALLSRC} ${.TARGET}
48 md-unwind-support.h: dragonfly-unwind.h
49 cp ${.ALLSRC} ${.TARGET}
51 sfp-machine.h: ${GCCDIR}/libgcc/config/i386/sfp-machine.h
52 cp ${.ALLSRC} ${.TARGET}
54 enable-execute-stack.c: enable-execute-stack-mprotect.c
55 cp ${.ALLSRC} ${.TARGET}
57 auto-target.h: ${.CURDIR}/../libgcc/auto-target.h
58 cp ${.ALLSRC} ${.TARGET}
60 CLEANFILES+= unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
61 enable-execute-stack.c auto-target.h
63 beforedepend: unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
64 enable-execute-stack.c auto-target.h