gcc50: Bring in makefiles but leave them unhooked
[dragonfly.git] / gnu / lib / gcc50 / libgcc / Makefile.src
1 # build/x86-64-portbuild-dragonfly4.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             _mulsc3 _muldc3 _mulxc3 _multc3 _divsc3 _divdc3 _divxc3        \
10             _divtc3 _bswapsi2 _bswapdi2 _clrsbsi2 _clrsbdi2
11
12 .for f in sf df xf
13 lib2funcs+=     _fixuns${f}si
14 lib2funcs+=     _fixuns${f}di 
15 lib2funcs+=     _fix${f}di 
16 lib2funcs+=     _floatdi${f}
17 lib2funcs+=     _floatundi${f}
18 nowsoft+=       extend${f}tf2
19 .endfor
20
21 .for f in si di ti
22 nowsoft+=       fixtf${f}
23 nowsoft+=       fixunstf${f}
24 nowsoft+=       float${f}tf
25 nowsoft+=       floatun${f}tf
26 .endfor
27
28 LIB2_DIVMOD_FUNCS = _divdi3 _moddi3 _udivdi3 _umoddi3 _udiv_w_sdiv _udivmoddi4 
29
30 # from gcc/Makefile.in
31 LIB2FUNCS_ST = _eprintf __gcc_bcmp
32
33 # softfp functions and enable-execute-stack don't use L_ definitions
34 SOFTFUNCS=      addtf3 divtf3 eqtf2 getf2 letf2 multf3 negtf2 subtf3 unordtf2 
35 SOFTFUNCS+=     enable-execute-stack cpuinfo
36 SOFTFUNCS+=     ${nowsoft}
37 FUNCS=          ${lib2funcs} ${LIB2_DIVMOD_FUNCS} ${LIB2FUNCS_ST}
38
39 #stack_FLAGS=           -D__LIBGCC_TRAMPOLINE_SIZE__=${TRAMPSIZE}
40 #stack_FLAGS_FILES=     enable-execute-stack.c
41
42 FLAG_GROUPS=            raise
43 raise_FLAGS=            -fexceptions -fnon-call-exceptions
44 raise_FLAGS_FILES=      ${LIB2_DIVMOD_FUNCS:S/$/.c/}
45
46 ${FUNCS:S/$/.o/}: ${GCCDIR}/libgcc/libgcc2.c
47         ${CC} ${STATIC_CFLAGS} ${CFLAGS} -DL${.TARGET:R} -c ${.ALLSRC} \
48                 -o ${.TARGET}
49
50 ${FUNCS:S/$/.po/}: ${GCCDIR}/libgcc/libgcc2.c
51         ${CC} ${PO_FLAG} ${STATIC_CFLAGS} ${PO_CFLAGS} -DL${.TARGET:R} \
52                 -c ${.ALLSRC} -o ${.TARGET}
53
54 ${FUNCS:S/$/.So/}: ${GCCDIR}/libgcc/libgcc2.c
55         ${CC} ${PICFLAG} -DPIC ${SHARED_CFLAGS} ${CFLAGS} -DL${.TARGET:R} \
56                 -c ${.ALLSRC} -o ${.TARGET}