Makefile.inc revision 1.39
11.39Snat# $NetBSD: Makefile.inc,v 1.39 2025/09/10 23:07:38 nat Exp $ 21.14Ssimonb 31.14SsimonbSRCS+= alloca.S fabs.S 41.14Ssimonb 51.14Ssimonb# Common ieee754 constants and functions 61.21SkleinkSRCS+= infinityf_ieee754.c infinity_ieee754.c 71.23SkleinkSRCS+= fpclassifyf_ieee754.c fpclassifyd_ieee754.c 81.24SkleinkSRCS+= isinff_ieee754.c isinfd_ieee754.c 91.24SkleinkSRCS+= isnanf_ieee754.c isnand_ieee754.c 101.23SkleinkSRCS+= isfinitef_ieee754.c isfinited_ieee754.c 111.23SkleinkSRCS+= signbitf_ieee754.c signbitd_ieee754.c 121.19Skleink 131.26SkleinkSRCS+= nanf.c 141.26Skleink 151.22Skleink# 68000-based machines use a double-extended `long double' type 161.22Skleink# for which the generic ieee754 versions can be used 171.32Smatt.if ${MACHINE_ARCH} != "m68k" 181.23SkleinkSRCS+= infinityl_dbl_ieee754.c 191.22Skleink.else 201.23SkleinkSRCS+= infinityl.c 211.36SmayaSRCS+= fpclassifyl.c isfinitel.c isinfl.c isnanl.c 221.36SmayaSRCS+= signbitl_ieee754.c 231.22Skleink.endif 241.1Scgd 251.13SfredetteSRCS+= ashlsi3.S ashrsi3.S \ 261.39Snat lshlsi3.S lshrsi3.S 271.39Snat.if ${MKSOFTFLOAT} == "no" || ${MKLIBCSOFTFLOAT} != "no" 281.39SnatSRCS+= negdf2.S negsf2.S 291.39Snat.endif 301.13SfredetteSRCS+= bswap16.S bswap32.S bswap64.S 311.15SthorpejSRCS+= _lwp.c 321.31SjoergCPPFLAGS._lwp.c += -D_LIBC_SOURCE 331.13Sfredette 341.13Sfredette# 68000-based machines build with a libgcc that includes 351.13Sfredette# much of the (soft)float and integer support that would 361.13Sfredette# otherwise be compiled here. 371.35Schs.if (${MACHINE_ARCH} == "m68000" || ${MKSOFTFLOAT} != "no") 381.34SchristosSRCS+= compat_modf_ieee754.c # generic ieee754 version 391.13SfredetteSRCS+= flt_rounds_softfloat.S 401.35Schs.if ${MKSOFTFLOAT} == "no" 411.29SchristosSRCS+= fpfake.c 421.29Schristos.endif 431.32Smatt.endif 441.32Smatt 451.32Smatt.if ${MACHINE_ARCH} == "m68k" 461.37SrinSRCS+= mulsi3.S umulsi3.S 471.38SrinSRCS+= muldi3.S 481.38Srin.else 491.38Srinmuldi3.o muldi3.po muldi3.pico muldi3.d: muldi3.c 501.13Sfredette.endif 511.8Sthorpej 521.27SchristosSRCS+= setjmp.S longjmp.c 531.8SthorpejSRCS+= _setjmp.S 541.27SchristosSRCS+= sigsetjmp.S 551.1Scgd 561.15SthorpejSRCS+= makecontext.c resumecontext.S swapcontext.S 571.15Sthorpej 581.34SchristosSRCS+= compat_ldexp_ieee754.c # generic ieee754 version 591.15Sthorpej 601.30SuebayasiLSRCS.m68k.gen= Lint_bswap16.c Lint_bswap32.c Lint_bswap64.c \ 611.18Slukem Lint_resumecontext.c Lint_swapcontext.c 621.30SuebayasiLSRCS+= ${LSRCS.m68k.gen} 631.30SuebayasiDPSRCS+= ${LSRCS.m68k.gen} 641.30SuebayasiCLEANFILES+= ${LSRCS.m68k.gen} 65