Makefile 821 B

12345678910111213141516171819202122232425262728293031
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for wm-FPU-emu
  4. #
  5. #DEBUG = -DDEBUGGING
  6. DEBUG =
  7. PARANOID = -DPARANOID
  8. ccflags-y += $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
  9. asflags-y += $(PARANOID)
  10. # From 'C' language sources:
  11. C_OBJS =fpu_entry.o errors.o \
  12. fpu_arith.o fpu_aux.o fpu_etc.o fpu_tags.o fpu_trig.o \
  13. load_store.o get_address.o \
  14. poly_atan.o poly_l2.o poly_2xm1.o poly_sin.o poly_tan.o \
  15. reg_add_sub.o reg_compare.o reg_constant.o reg_convert.o \
  16. reg_ld_str.o reg_divide.o reg_mul.o
  17. # From 80x86 assembler sources:
  18. A_OBJS =reg_u_add.o reg_u_div.o reg_u_mul.o reg_u_sub.o \
  19. div_small.o reg_norm.o reg_round.o \
  20. wm_shrx.o wm_sqrt.o \
  21. div_Xsig.o polynom_Xsig.o round_Xsig.o \
  22. shr_Xsig.o mul_Xsig.o
  23. obj-y =$(C_OBJS) $(A_OBJS)
  24. proto:
  25. cproto -e -DMAKING_PROTO *.c >fpu_proto.h