Linux 4.13.16
[linux/fpc-iii.git] / arch / x86 / um / Makefile
blob46cbbfe03285922a520c40c78061853d55a2de1a
2 # Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
5 ifeq ($(CONFIG_X86_32),y)
6 BITS := 32
7 else
8 BITS := 64
9 endif
11 obj-y = bugs_$(BITS).o delay.o fault.o ldt.o \
12 ptrace_$(BITS).o ptrace_user.o setjmp_$(BITS).o signal.o \
13 stub_$(BITS).o stub_segv.o \
14 sys_call_table_$(BITS).o sysrq_$(BITS).o tls_$(BITS).o \
15 mem_$(BITS).o subarch.o os-$(OS)/
17 ifeq ($(CONFIG_X86_32),y)
19 obj-y += checksum_32.o syscalls_32.o
20 obj-$(CONFIG_ELF_CORE) += elfcore.o
22 subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
23 subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
25 else
27 obj-y += syscalls_64.o vdso/
29 subarch-y = ../lib/csum-partial_64.o ../lib/memcpy_64.o ../entry/thunk_64.o \
30 ../lib/rwsem.o
32 endif
34 subarch-$(CONFIG_MODULES) += ../kernel/module.o
36 USER_OBJS := bugs_$(BITS).o ptrace_user.o fault.o
38 extra-y += user-offsets.s
39 $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \
40 -Iarch/x86/include/generated
42 UNPROFILE_OBJS := stub_segv.o
43 CFLAGS_stub_segv.o := $(CFLAGS_NO_HARDENING)
45 include arch/um/scripts/Makefile.rules