source: mainline/arch/ia64/Makefile.inc@ f2ffad4

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since f2ffad4 was f2ffad4, checked in by Jakub Jermar <jakub@…>, 20 years ago

For each architecture, add function/macro FADDR that calculates absolute address of a function referenced by void (* f)(void).
IA-32 and MIPS gcc's use direct addressing (f == FADDR(f)) while IA-64 gcc uses indirect addressing (f != FADDR(f)).

Tweaks in IA-64 Makefile.inc to declare constant gp and main Makefile to consider ASFLAGS when compiling .s targets.

  • Property mode set to 100644
File size: 578 bytes
Line 
1IA-64_TARGET=ia64-pc-linux-gnu
2
3IA-64_CC_DIR=/usr/local/ia64/bin
4IA-64_BINUTILS_DIR=/usr/local/ia64/bin
5
6CC=$(IA-64_CC_DIR)/$(IA-64_TARGET)-gcc
7AS=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-as
8LD=$(IA-64_BINUTILS_DIR)/$(IA-64_TARGET)-ld
9
10ASFLAGS=-mconstant-gp
11
12DEFS=-DARCH=$(ARCH)
13CPPFLAGS=$(DEFS) -nostdinc -I../include
14CFLAGS=$(CPPFLAGS) -mconstant-gp -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O3
15LFLAGS=-EL -M -T ../arch/ia64/_link.ld
16
17arch_sources= \
18 arch/start.S \
19 arch/asm.S \
20 arch/fake.s \
21 arch/putchar.c \
22 arch/ia64.c \
23 arch/fpu_context.c \
24 arch/context.S
Note: See TracBrowser for help on using the repository browser.