1 # build/x86-64-portbuild-dragonfly5.1/libgcc/Makefile
2 # Library members defined in libgcc2.c.
3 lib2funcs = _muldi3 _negdi2 _lshrdi3 _ashldi3 _ashrdi3 _cmpdi2 _ucmpdi2 \
4 _clear_cache _trampoline __main _absvsi2 \
5 _absvdi2 _addvsi3 _addvdi3 _subvsi3 _subvdi3 _mulvsi3 _mulvdi3 \
6 _negvsi2 _negvdi2 _ctors _ffssi2 _ffsdi2 _clz _clzsi2 _clzdi2 \
7 _ctzsi2 _ctzdi2 _popcount_tab _popcountsi2 _popcountdi2 \
8 _paritysi2 _paritydi2 _powisf2 _powidf2 _powixf2 _powitf2 \
9 _mulhc3 _mulsc3 _muldc3 _mulxc3 _multc3 _divhc3 _divsc3 \
10 _divdc3 _divxc3 _divtc3 _bswapsi2 _bswapdi2 _clrsbsi2 \
14 lib2funcs+= _fixuns${f}si
15 lib2funcs+= _fixuns${f}di
16 lib2funcs+= _fix${f}di
17 lib2funcs+= _floatdi${f}
18 lib2funcs+= _floatundi${f}
19 nowsoft+= extend${f}tf2
24 nowsoft+= fixunstf${f}
26 nowsoft+= floatun${f}tf
29 LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _divmoddi4 \
30 _udivdi3 _umoddi3 _udivmoddi4 _udiv_w_sdiv
32 # Defined in libgcc2.c, included only in the static library.
33 LIB2FUNCS_ST = _eprintf __gcc_bcmp
35 # softfp functions and enable-execute-stack don't use L_ definitions
36 SOFTFUNCS= addtf3 divtf3 eqtf2 getf2 letf2 multf3 negtf2 subtf3 unordtf2
37 SOFTFUNCS+= enable-execute-stack cpuinfo sfp-exceptions
38 SOFTFUNCS+= ${nowsoft}
39 SOFTFUNCS+= trunctfsf2 trunctfdf2 trunctfxf2
40 FUNCS= ${lib2funcs} ${LIB2_DIVMOD_FUNCS}
41 FUNCS_ST= ${LIB2FUNCS_ST}
43 # for now do not let the use of -flto
49 #stack_FLAGS= -D__LIBGCC_TRAMPOLINE_SIZE__=${TRAMPSIZE}
50 #stack_FLAGS_FILES= enable-execute-stack.c
53 raise_FLAGS= -fexceptions -fnon-call-exceptions
54 raise_FLAGS_FILES= ${LIB2_DIVMOD_FUNCS:S/$/.c/}
56 ${FUNCS_ST:S/$/.o/}: ${GCCDIR}/libgcc/libgcc2.c
57 ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
60 ${FUNCS_ST:S/$/.po/}: ${GCCDIR}/libgcc/libgcc2.c
61 ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
62 -c ${.ALLSRC} -o ${.TARGET}
64 ${FUNCS:S/$/.o/}: ${GCCDIR}/libgcc/libgcc2.c
65 ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
68 ${FUNCS:S/$/.po/}: ${GCCDIR}/libgcc/libgcc2.c
69 ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
70 -c ${.ALLSRC} -o ${.TARGET}
72 ${FUNCS:S/$/.So/}: ${GCCDIR}/libgcc/libgcc2.c
73 ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} \
74 -c ${.ALLSRC} -o ${.TARGET}