xref: /linux/arch/powerpc/math-emu/Makefile (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2e05c0e81SKevin Haomath-emu-common-objs = math.o fre.o fsqrt.o fsqrts.o frsqrtes.o mtfsf.o mtfsfi.o
3e05c0e81SKevin Haoobj-$(CONFIG_MATH_EMULATION_HW_UNIMPLEMENTED) += $(math-emu-common-objs)
4e05c0e81SKevin Haoobj-$(CONFIG_MATH_EMULATION_FULL) += $(math-emu-common-objs) fabs.o fadd.o \
5e05c0e81SKevin Hao					fadds.o fcmpo.o fcmpu.o fctiw.o \
6e05c0e81SKevin Hao					fctiwz.o fdiv.o fdivs.o  fmadd.o \
7e05c0e81SKevin Hao					fmadds.o fmsub.o fmsubs.o fmul.o \
8e05c0e81SKevin Hao					fmuls.o fnabs.o fneg.o fnmadd.o \
9e05c0e81SKevin Hao					fnmadds.o fnmsub.o fnmsubs.o fres.o \
10e05c0e81SKevin Hao					frsp.o fsel.o lfs.o frsqrte.o fsub.o \
11e05c0e81SKevin Hao					fsubs.o  mcrfs.o mffs.o mtfsb0.o \
12e05c0e81SKevin Hao					mtfsb1.o stfiwx.o stfs.o math.o \
13e05c0e81SKevin Hao					fmr.o lfd.o stfd.o
14054e51a4SAl Viro
156a800f36SLiu Yuobj-$(CONFIG_SPE)		+= math_efp.o
166a800f36SLiu Yu
17054e51a4SAl ViroCFLAGS_fabs.o = -fno-builtin-fabs
18054e51a4SAl ViroCFLAGS_math.o = -fno-builtin-fabs
19*78c73c80SChristophe Leroy
20*78c73c80SChristophe Leroyccflags-remove-y = -Wmissing-prototypes -Wmissing-declarations -Wunused-but-set-variable
21*78c73c80SChristophe Leroy
22*78c73c80SChristophe Leroyifdef KBUILD_EXTRA_WARN
23*78c73c80SChristophe LeroyCFLAGS_math.o += -Wmissing-prototypes -Wmissing-declarations -Wunused-but-set-variable
24*78c73c80SChristophe LeroyCFLAGS_math_efp.o += -Wmissing-prototypes -Wmissing-declarations -Wunused-but-set-variable
25*78c73c80SChristophe Leroyendif
26