Makefile 1.1 KB
Newer Older
A
Al Viro 已提交
1 2 3 4 5 6 7 8 9 10
#
# Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
#

ifeq ($(CONFIG_X86_32),y)
	BITS := 32
else
	BITS := 64
endif

R
Richard Weinberger 已提交
11
obj-y = bug.o bugs_$(BITS).o delay.o fault.o ksyms.o ldt.o \
A
Al Viro 已提交
12
	ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
A
Al Viro 已提交
13
	stub_$(BITS).o stub_segv.o \
A
Al Viro 已提交
14 15
	sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
	mem_$(BITS).o subarch.o os-$(OS)/
A
Al Viro 已提交
16 17 18 19 20 21

ifeq ($(CONFIG_X86_32),y)

obj-y += checksum_32.o
obj-$(CONFIG_BINFMT_ELF) += elfcore.o

A
Al Viro 已提交
22 23
subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
A
Al Viro 已提交
24 25 26

else

A
Al Viro 已提交
27
obj-y += syscalls_64.o vdso/
A
Al Viro 已提交
28

29
subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
A
Al Viro 已提交
30
		../lib/rwsem.o
A
Al Viro 已提交
31 32 33

endif

A
Al Viro 已提交
34
subarch-$(CONFIG_MODULES) += ../kernel/module.o
A
Al Viro 已提交
35 36 37 38

USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o

extra-y += user-offsets.s
39 40
$(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
	-Iarch/x86/include/generated
A
Al Viro 已提交
41 42 43 44 45

UNPROFILE_OBJS := stub_segv.o
CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)

include arch/um/scripts/Makefile.rules