patch-2.4.0-prerelease linux/arch/alpha/math-emu/Makefile

Next file: linux/arch/alpha/mm/fault.c
Previous file: linux/arch/alpha/lib/memmove.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/arch/alpha/math-emu/Makefile linux/arch/alpha/math-emu/Makefile
@@ -1,18 +1,22 @@
 #
 # Makefile for the FPU instruction 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).
-#
-# Note 2! The CFLAGS definition is now in the main makefile...
 
-O_TARGET := math-emu.o
-O_OBJS   := math.o qrnnd.o
 CFLAGS += -I. -I$(TOPDIR)/include/math-emu -w
 
-ifeq ($(CONFIG_MATHEMU),m)
-M_OBJS   := $(O_TARGET)
+ifeq ($(CONFIG_MATHEMU),y)
+
+O_TARGET	:= math-emu.o
+obj-y		:= math.o qrnnd.o
+
+else
+
+list-multi	:= math-emu.o
+math-emu-objs	:= math.o qrnnd.o
+obj-m		:= math-emu.o
+math-emu.o: $(math-emu-objs)
+	$(LD) -r -o $@ $(math-emu-objs)
+
 endif
 
 include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)