patch-2.4.0-prerelease linux/arch/i386/lib/Makefile

Next file: linux/arch/i386/lib/delay.c
Previous file: linux/arch/i386/kernel/time.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/arch/i386/lib/Makefile linux/arch/i386/lib/Makefile
@@ -6,16 +6,12 @@
 	$(CC) $(AFLAGS) -c $< -o $*.o
 
 L_TARGET = lib.a
-L_OBJS  = checksum.o old-checksum.o delay.o \
+
+obj-y = checksum.o old-checksum.o delay.o \
 	usercopy.o getuser.o putuser.o iodebug.o \
 	memcpy.o
 
-ifdef CONFIG_X86_USE_3DNOW
-L_OBJS += mmx.o
-endif
-
-ifdef CONFIG_HAVE_DEC_LOCK
-L_OBJS += dec_and_lock.o
-endif
+obj-$(CONFIG_X86_USE_3DNOW) += mmx.o
+obj-$(CONFIG_HAVE_DEC_LOCK) += dec_and_lock.o
 
 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)