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
13 ELF_ARCH := i386:x86-64
14 ELF_FORMAT := elf64-x86-64
16 SYS_UTIL_DIR := $(ARCH_DIR)/sys-x86_64/util
17 SYS_DIR := $(ARCH_DIR)/include/sysdep-x86_64
19 SYS_HEADERS = $(SYS_DIR)/sc.h $(SYS_DIR)/thread.h
21 prepare: $(SYS_HEADERS)
23 $(SYS_DIR)/sc.h: $(SYS_UTIL_DIR)/mk_sc
24 $(call filechk,gen_header)
26 $(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
27 $(call filechk,gen_header)
29 $(SYS_UTIL_DIR)/mk_sc: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
30 $(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
32 $(SYS_UTIL_DIR)/mk_thread: scripts_basic $(GEN_HEADERS) $(ARCH_DIR)/kernel-offsets.h FORCE
33 $(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
35 CLEAN_FILES += $(SYS_HEADERS)