xref: /openbmc/linux/arch/x86/math-emu/Makefile (revision b2441318)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2da957e11SThomas Gleixner#
3da957e11SThomas Gleixner#               Makefile for wm-FPU-emu
4da957e11SThomas Gleixner#
5da957e11SThomas Gleixner
6da957e11SThomas Gleixner#DEBUG	= -DDEBUGGING
7da957e11SThomas GleixnerDEBUG	=
8da957e11SThomas GleixnerPARANOID = -DPARANOID
975e2f0a6SArnd Bergmannccflags-y += $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
1075e2f0a6SArnd Bergmannasflags-y += $(PARANOID)
11da957e11SThomas Gleixner
12da957e11SThomas Gleixner# From 'C' language sources:
13da957e11SThomas GleixnerC_OBJS =fpu_entry.o errors.o \
14da957e11SThomas Gleixner	fpu_arith.o fpu_aux.o fpu_etc.o fpu_tags.o fpu_trig.o \
15da957e11SThomas Gleixner	load_store.o get_address.o \
16da957e11SThomas Gleixner	poly_atan.o poly_l2.o poly_2xm1.o poly_sin.o poly_tan.o \
17da957e11SThomas Gleixner	reg_add_sub.o reg_compare.o reg_constant.o reg_convert.o \
18da957e11SThomas Gleixner	reg_ld_str.o reg_divide.o reg_mul.o
19da957e11SThomas Gleixner
20da957e11SThomas Gleixner# From 80x86 assembler sources:
21da957e11SThomas GleixnerA_OBJS =reg_u_add.o reg_u_div.o reg_u_mul.o reg_u_sub.o \
22da957e11SThomas Gleixner	div_small.o reg_norm.o reg_round.o \
23da957e11SThomas Gleixner	wm_shrx.o wm_sqrt.o \
24da957e11SThomas Gleixner	div_Xsig.o polynom_Xsig.o round_Xsig.o \
25da957e11SThomas Gleixner	shr_Xsig.o mul_Xsig.o
26da957e11SThomas Gleixner
27da957e11SThomas Gleixnerobj-y =$(C_OBJS) $(A_OBJS)
28da957e11SThomas Gleixner
29da957e11SThomas Gleixnerproto:
30da957e11SThomas Gleixner	cproto -e -DMAKING_PROTO *.c >fpu_proto.h
31