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 # FUNCS and SOFTFUNCS defined in Makefile.src
28 OBJS= ${FUNCS:S/$/.o/}
29 SRCS= ${SOFTFUNCS:S/$/.c/}
31 # LIB2ADDEH, gcc/Makefile
33 unwind-dw2-fde-dip.c \
39 unwind.h: unwind-generic.h
40 cp ${.ALLSRC} ${.TARGET}
42 gthr-default.h: gthr-posix.h
43 cp ${.ALLSRC} ${.TARGET}
45 md-unwind-support.h: dragonfly-unwind.h
46 cp ${.ALLSRC} ${.TARGET}
48 sfp-machine.h: ${GCCDIR}/libgcc/config/i386/sfp-machine.h
49 cp ${.ALLSRC} ${.TARGET}
51 enable-execute-stack.c: enable-execute-stack-mprotect.c
52 cp ${.ALLSRC} ${.TARGET}
54 auto-target.h: ${.CURDIR}/../libgcc/auto-target.h
55 cp ${.ALLSRC} ${.TARGET}
57 CLEANFILES+= unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
58 enable-execute-stack.c auto-target.h
60 beforedepend: unwind.h gthr-default.h sfp-machine.h md-unwind-support.h \
61 enable-execute-stack.c auto-target.h