1 # Copyright 2003 - 2004 Pathscale, Inc
2 # Released under the GPL
4 libs-y += arch/um/sys-x86_64/
7 #We #undef __x86_64__ for kernelspace, not for userspace where
8 #it's needed for headers to work!
9 CFLAGS += -U__$(SUBARCH)__ -fno-builtin
10 USER_CFLAGS += -fno-builtin
12 ELF_ARCH := i386:x86-64
13 ELF_FORMAT := elf64-x86-64
15 SYS_UTIL_DIR := $(ARCH_DIR)/sys-x86_64/util
16 SYS_DIR := $(ARCH_DIR)/include/sysdep-x86_64
18 SYS_HEADERS = $(SYS_DIR)/sc.h $(SYS_DIR)/thread.h
20 prepare: $(SYS_HEADERS)
22 $(SYS_DIR)/sc.h: $(SYS_UTIL_DIR)/mk_sc
23 $(call filechk,gen_header)
25 $(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
26 $(call filechk,gen_header)
28 $(SYS_UTIL_DIR)/mk_sc: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
29 $(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
31 $(SYS_UTIL_DIR)/mk_thread: scripts_basic $(GEN_HEADERS) $(ARCH_DIR)/kernel-offsets.h FORCE
32 $(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
34 CLEAN_FILES += $(SYS_HEADERS)