summaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/math-emu/Makefile')
-rw-r--r--arch/mips/math-emu/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/mips/math-emu/Makefile b/arch/mips/math-emu/Makefile
new file mode 100644
index 000000000..456e1067d
--- /dev/null
+++ b/arch/mips/math-emu/Makefile
@@ -0,0 +1,28 @@
+#
+# Makefile for the Linux/MIPS kernel FPU emulation.
+#
+# Note! Dependencies are done automagically by 'make dep', which also
+# removes any old dependencies. DON'T put your own dependencies here
+# unless it's something special (ie not a .c file).
+#
+
+.S.o:
+ $(CC) $(CFLAGS) -c $< -o $*.o
+
+all: fpu_emulator.o
+EXTRA_ASFLAGS = -mips2 -mcpu=r4000
+O_TARGET:= fpu_emulator.o
+
+O_OBJS := cp1emu.o ieee754m.o ieee754d.o \
+ ieee754dp.o ieee754sp.o ieee754.o ieee754xcpt.o \
+ dp_frexp.o dp_modf.o dp_div.o dp_mul.o dp_sub.o dp_add.o dp_fsp.o \
+ dp_cmp.o dp_logb.o dp_scalb.o dp_simple.o \
+ dp_tint.o dp_fint.o dp_tlong.o dp_flong.o \
+ sp_frexp.o sp_modf.o sp_div.o sp_mul.o sp_sub.o sp_add.o sp_fdp.o \
+ sp_cmp.o sp_logb.o sp_scalb.o sp_simple.o \
+ sp_tint.o sp_fint.o sp_tlong.o sp_flong.o \
+ dp_sqrt.o sp_sqrt.o kernel_linkage.o
+
+clean:
+
+include $(TOPDIR)/Rules.make