blob: c77f8a7c531dfd4819d7b5f778a70af6182b3777 [file] [log] [blame]
Sam Ravnborg583d0e92008-01-30 13:32:31 +01001#
2# Makefile for x86 specific library files.
3#
4
Masami Hiramatsueb132962009-08-13 16:34:13 -04005inat_tables_script = $(srctree)/arch/x86/tools/gen-insn-attr-x86.awk
6inat_tables_maps = $(srctree)/arch/x86/lib/x86-opcode-map.txt
7quiet_cmd_inat_tables = GEN $@
8 cmd_inat_tables = $(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@
9
10$(obj)/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
11 $(call cmd,inat_tables)
12
13$(obj)/inat.o: $(obj)/inat-tables.c
14
15clean-files := inat-tables.c
16
Borislav Petkov6bc10962009-05-22 12:12:01 +020017obj-$(CONFIG_SMP) := msr.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010018
Glauber Costaf0fbf0a2008-07-03 12:35:41 -030019lib-y := delay.o
Steven Rostedt81d68a92008-05-12 21:20:42 +020020lib-y += thunk_$(BITS).o
Glauber Costa5cbbc3b2008-06-24 17:40:14 -030021lib-y += usercopy_$(BITS).o getuser.o putuser.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010022lib-y += memcpy_$(BITS).o
Masami Hiramatsueb132962009-08-13 16:34:13 -040023lib-y += insn.o inat.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010024
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020025ifeq ($(CONFIG_X86_32),y)
Ingo Molnar1fde9022009-07-03 17:28:57 +020026 obj-y += atomic64_32.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010027 lib-y += checksum_32.o
28 lib-y += strstr_32.o
Alexander van Heukelum6fd92b62008-03-09 21:01:04 +010029 lib-y += semaphore_32.o string_32.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010030
31 lib-$(CONFIG_X86_USE_3DNOW) += mmx_32.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020032else
Sam Ravnborg583d0e92008-01-30 13:32:31 +010033 obj-y += io_64.o iomap_copy_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010034 lib-y += csum-partial_64.o csum-copy_64.o csum-wrappers_64.o
35 lib-y += thunk_64.o clear_page_64.o copy_page_64.o
Sam Ravnborg583d0e92008-01-30 13:32:31 +010036 lib-y += memmove_64.o memset_64.o
37 lib-y += copy_user_64.o rwlock_64.o copy_user_nocache_64.o
Thomas Gleixner5fde34f2007-10-11 11:13:35 +020038endif