merge by hand - fix up rejections in Documentation/DocBook/Makefile
[linux-2.6] / arch / um / Makefile-x86_64
1 # Copyright 2003 - 2004 Pathscale, Inc
2 # Released under the GPL
3
4 SUBARCH_LIBS := arch/um/sys-x86_64/
5 START := 0x60000000
6
7 CFLAGS += -U__$(SUBARCH)__ -fno-builtin
8 ARCH_USER_CFLAGS := -D__x86_64__
9
10 ELF_ARCH := i386:x86-64
11 ELF_FORMAT := elf64-x86-64
12
13 SYS_UTIL_DIR := $(ARCH_DIR)/sys-x86_64/util
14 SYS_DIR := $(ARCH_DIR)/include/sysdep-x86_64
15
16 SYS_HEADERS = $(SYS_DIR)/sc.h $(SYS_DIR)/thread.h
17
18 prepare: $(SYS_HEADERS)
19
20 $(SYS_DIR)/sc.h: $(SYS_UTIL_DIR)/mk_sc
21         $(call filechk,gen_header)
22
23 $(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
24         $(call filechk,gen_header)
25
26 $(SYS_UTIL_DIR)/mk_sc: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
27         $(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
28
29 $(SYS_UTIL_DIR)/mk_thread: scripts_basic $(GEN_HEADERS) $(ARCH_DIR)/kernel-offsets.h FORCE
30         $(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@
31
32 CLEAN_FILES += $(SYS_HEADERS)