ia64/xen-unstable

view extras/mini-os/arch/ia64/Makefile @ 14069:dda691c7f25f

[IA64][MINIOS] Make mini-os ia64 cross compile-able

Signed-off-by: Tristan Gingold <tgingold@free.fr>
author awilliam@xenbuild2.aw
date Wed Feb 28 09:40:36 2007 -0700 (2007-02-28)
parents 707a696e840d
children 01e178f7ec6d
line source
1 #
2 # Special makefile for ia64.
3 #
5 XEN_ROOT = ../../../..
6 include $(XEN_ROOT)/Config.mk
8 include arch.mk
9 include ../../minios.mk
11 ARCH_SRCS := sal.c
12 ARCH_SRCS += efi.c
13 ARCH_SRCS += time.c
14 ARCH_SRCS += ivt.S
15 ARCH_SRCS += fw.S
16 ARCH_SRCS += common.c
17 ARCH_SRCS += time.c
18 ARCH_SRCS += mm.c
19 ARCH_SRCS += debug.c
20 ARCH_SRCS += sched.c
21 ARCH_SRCS += xencomm.c
22 ARCH_SRCS += __umoddi3.S
23 ARCH_SRCS += __udivdi3.S
24 ARCH_SRCS += __divdi3.S
26 ARCH_OBJS := sal.o
27 ARCH_OBJS += efi.o
28 ARCH_OBJS += time.o
29 ARCH_OBJS += ivt.o
30 ARCH_OBJS += fw.o
31 ARCH_OBJS += common.o
32 ARCH_OBJS += time.o
33 ARCH_OBJS += mm.o
34 ARCH_OBJS += debug.o
35 ARCH_OBJS += sched.o
36 ARCH_OBJS += xencomm.o
37 ARCH_OBJS += __umoddi3.o
38 ARCH_OBJS += __udivdi3.o
39 ARCH_OBJS += __divdi3.o
41 GEN_OFF_SRC := gen_off.c
42 GEN_OFF_ASM := gen_off.s
43 GEN_OFF_H := $(ARCH_INC)/offsets.h
45 all: $(ARCH_LIB)
47 $(GEN_OFF_ASM): $(GEN_OFF_SRC)
48 $(CC) -S -o $@ $(CPPFLAGS) $<
50 $(GEN_OFF_H): $(GEN_OFF_ASM)
51 sed -ne "/^->/ {s/->/#define /; p}" < $< > $@
53 $(ARCH_LIB): $(GEN_OFF_H) $(ARCH_OBJS) $(HEAD_ARCH_OBJ)
54 $(AR) rv $(ARCH_LIB) $(ARCH_OBJS)
56 clean:
57 rm -f $(ARCH_LIB) $(ARCH_OBJS) $(HEAD_ARCH_OBJ)
58 rm -f $(GEN_OFF_ASM)
59 rm -f $(GEN_OFF_H)