Makefile-x86_64 939 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3
# Copyright 2003 - 2004 Pathscale, Inc
# Released under the GPL

4
libs-y += arch/um/sys-x86_64/
L
Linus Torvalds 已提交
5 6
START := 0x60000000

7 8
#We #undef __x86_64__ for kernelspace, not for userspace where
#it's needed for headers to work!
A
Al Viro 已提交
9
CFLAGS += -U__$(SUBARCH)__ -fno-builtin
10
USER_CFLAGS += -fno-builtin
11
CHECKFLAGS  += -m64
L
Linus Torvalds 已提交
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

ELF_ARCH := i386:x86-64
ELF_FORMAT := elf64-x86-64

SYS_UTIL_DIR := $(ARCH_DIR)/sys-x86_64/util
SYS_DIR := $(ARCH_DIR)/include/sysdep-x86_64

SYS_HEADERS = $(SYS_DIR)/sc.h $(SYS_DIR)/thread.h

prepare: $(SYS_HEADERS)

$(SYS_DIR)/sc.h: $(SYS_UTIL_DIR)/mk_sc
	$(call filechk,gen_header)

$(SYS_DIR)/thread.h: $(SYS_UTIL_DIR)/mk_thread
	$(call filechk,gen_header)

29
$(SYS_UTIL_DIR)/mk_sc: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
L
Linus Torvalds 已提交
30 31
	$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@

32
$(SYS_UTIL_DIR)/mk_thread: scripts_basic $(GEN_HEADERS) $(ARCH_DIR)/kernel-offsets.h FORCE
L
Linus Torvalds 已提交
33 34 35
	$(Q)$(MAKE) $(build)=$(SYS_UTIL_DIR) $@

CLEAN_FILES += $(SYS_HEADERS)