1 # SPDX-License-Identifier: GPL-2.0 << 2 # 1 # 3 # Makefile for wm-FPU-emu !! 2 # Makefile for the FPU instruction emulation. 4 # 3 # 5 4 6 #DEBUG = -DDEBUGGING !! 5 CFLAGS += -I. -I$(TOPDIR)/include/math-emu -w 7 DEBUG = << 8 PARANOID = -DPARANOID << 9 ccflags-y += $(PARANOID) $(DEBUG) -fno-builtin << 10 asflags-y += $(PARANOID) << 11 << 12 # From 'C' language sources: << 13 C_OBJS =fpu_entry.o errors.o \ << 14 fpu_arith.o fpu_aux.o fpu_etc.o fpu_ta << 15 load_store.o get_address.o \ << 16 poly_atan.o poly_l2.o poly_2xm1.o poly << 17 reg_add_sub.o reg_compare.o reg_consta << 18 reg_ld_str.o reg_divide.o reg_mul.o << 19 << 20 # From 80x86 assembler sources: << 21 A_OBJS =reg_u_add.o reg_u_div.o reg_u_mul.o re << 22 div_small.o reg_norm.o reg_round.o \ << 23 wm_shrx.o wm_sqrt.o \ << 24 div_Xsig.o polynom_Xsig.o round_Xsig.o << 25 shr_Xsig.o mul_Xsig.o << 26 6 27 obj-y =$(C_OBJS) $(A_OBJS) !! 7 ifeq ($(CONFIG_MATHEMU),y) 28 8 29 proto: !! 9 O_TARGET := math-emu.o 30 cproto -e -DMAKING_PROTO *.c >fpu_prot !! 10 obj-y := math.o qrnnd.o >> 11 >> 12 else >> 13 >> 14 list-multi := math-emu.o >> 15 math-emu-objs := math.o qrnnd.o >> 16 obj-m := math-emu.o >> 17 math-emu.o: $(math-emu-objs) >> 18 $(LD) -r -o $@ $(math-emu-objs) >> 19 >> 20 endif >> 21 >> 22 include $(TOPDIR)/Rules.make
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.