Makefile.inc revision 1.40
11.40Snat#	$NetBSD: Makefile.inc,v 1.40 2025/10/04 21:07:18 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.40Snat.if	(${MACHINE_ARCH} == "m68000" || \
381.40Snat		(${MKSOFTFLOAT} != "no" && ${MKLIBCSOFTFLOAT} == "no"))
391.34SchristosSRCS+=	compat_modf_ieee754.c			# generic ieee754 version
401.13SfredetteSRCS+=	flt_rounds_softfloat.S
411.35Schs.if ${MKSOFTFLOAT} == "no"
421.29SchristosSRCS+=	fpfake.c
431.29Schristos.endif
441.32Smatt.endif
451.32Smatt
461.32Smatt.if ${MACHINE_ARCH} == "m68k"
471.37SrinSRCS+=	mulsi3.S umulsi3.S
481.38SrinSRCS+=	muldi3.S
491.38Srin.else
501.38Srinmuldi3.o muldi3.po muldi3.pico muldi3.d: muldi3.c
511.13Sfredette.endif
521.8Sthorpej
531.27SchristosSRCS+=	setjmp.S longjmp.c
541.8SthorpejSRCS+=	_setjmp.S
551.27SchristosSRCS+=	sigsetjmp.S
561.1Scgd
571.15SthorpejSRCS+=	makecontext.c resumecontext.S swapcontext.S
581.15Sthorpej
591.34SchristosSRCS+=	compat_ldexp_ieee754.c			# generic ieee754 version
601.15Sthorpej
611.30SuebayasiLSRCS.m68k.gen=	Lint_bswap16.c Lint_bswap32.c Lint_bswap64.c \
621.18Slukem		Lint_resumecontext.c Lint_swapcontext.c
631.30SuebayasiLSRCS+=		${LSRCS.m68k.gen}
641.30SuebayasiDPSRCS+=	${LSRCS.m68k.gen}
651.30SuebayasiCLEANFILES+=	${LSRCS.m68k.gen}
66