Makefile.inc revision 1.33
1# $NetBSD: Makefile.inc,v 1.33 2014/03/18 18:20:37 riastradh Exp $ 2 3SRCS+= alloca.S fabs.S 4 5# Common ieee754 constants and functions 6SRCS+= infinityf_ieee754.c infinity_ieee754.c 7SRCS+= fpclassifyf_ieee754.c fpclassifyd_ieee754.c 8SRCS+= isinff_ieee754.c isinfd_ieee754.c 9SRCS+= isnanf_ieee754.c isnand_ieee754.c 10SRCS+= isfinitef_ieee754.c isfinited_ieee754.c 11SRCS+= signbitf_ieee754.c signbitd_ieee754.c 12 13SRCS+= nanf.c 14 15# 68000-based machines use a double-extended `long double' type 16# for which the generic ieee754 versions can be used 17.if ${MACHINE_ARCH} != "m68k" 18SRCS+= infinityl_dbl_ieee754.c 19.else 20SRCS+= infinityl.c 21SRCS+= fpclassifyl.c isfinitel.c isinfl.c isnanl.c signbitl.c 22.endif 23 24SRCS+= ashlsi3.S ashrsi3.S \ 25 lshlsi3.S lshrsi3.S \ 26 negdf2.S negsf2.S 27SRCS+= bswap16.S bswap32.S bswap64.S 28SRCS+= _lwp.c 29CPPFLAGS._lwp.c += -D_LIBC_SOURCE 30 31# 68000-based machines build with a libgcc that includes 32# much of the (soft)float and integer support that would 33# otherwise be compiled here. 34.if (${MACHINE_ARCH} == "m68000" || ${MKSOFTFLOAT} == "yes") 35SRCS+= modf_ieee754.c # generic ieee754 version 36SRCS+= flt_rounds_softfloat.S 37.if ${MKSOFTFLOAT} != "yes" 38SRCS+= fpfake.c 39.endif 40.endif 41 42.if ${MACHINE_ARCH} == "m68k" 43SRCS+= divsi3.S modsi3.S mulsi3.S udivsi3.S umodsi3.S umulsi3.S 44.endif 45 46SRCS+= setjmp.S longjmp.c 47SRCS+= _setjmp.S 48SRCS+= sigsetjmp.S 49 50SRCS+= makecontext.c resumecontext.S swapcontext.S 51 52SRCS+= ldexp_ieee754.c # generic ieee754 version 53 54LSRCS.m68k.gen= Lint_bswap16.c Lint_bswap32.c Lint_bswap64.c \ 55 Lint_resumecontext.c Lint_swapcontext.c 56LSRCS+= ${LSRCS.m68k.gen} 57DPSRCS+= ${LSRCS.m68k.gen} 58CLEANFILES+= ${LSRCS.m68k.gen} 59