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