]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
i386: prepare shared lib/Makefile
authorThomas Gleixner <tglx@linutronix.de>
Thu, 11 Oct 2007 09:13:35 +0000 (11:13 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Oct 2007 09:13:35 +0000 (11:13 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/i386/lib/Makefile
arch/i386/lib/Makefile_32 [new file with mode: 0644]

index 98d1f1e2e2ef5d197d743b891efd4f50b7417f75..2b1547e0ac6b1d5552465125955c1f7774d9c991 100644 (file)
@@ -1,11 +1,5 @@
-#
-# Makefile for i386-specific library files..
-#
-
-
-lib-y = checksum_32.o delay_32.o usercopy_32.o getuser_32.o putuser_32.o memcpy_32.o strstr_32.o \
-       bitops_32.o semaphore_32.o string_32.o
-
-lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
-
-obj-$(CONFIG_SMP)      += msr-on-cpu.o
+ifeq ($(CONFIG_X86_32),y)
+include ${srctree}/arch/i386/lib/Makefile_32
+else
+include ${srctree}/arch/x86_64/lib/Makefile_64
+endif
diff --git a/arch/i386/lib/Makefile_32 b/arch/i386/lib/Makefile_32
new file mode 100644 (file)
index 0000000..98d1f1e
--- /dev/null
@@ -0,0 +1,11 @@
+#
+# Makefile for i386-specific library files..
+#
+
+
+lib-y = checksum_32.o delay_32.o usercopy_32.o getuser_32.o putuser_32.o memcpy_32.o strstr_32.o \
+       bitops_32.o semaphore_32.o string_32.o
+
+lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
+
+obj-$(CONFIG_SMP)      += msr-on-cpu.o