ia64/xen-unstable

view xen/arch/ia64/Makefile @ 4703:d061c29af8d7

bitkeeper revision 1.1327.1.11 (42716283nLvDhTYM3QOqDMa-wZuJHQ)

More code cleanup
author djm@kirby.fc.hp.com
date Thu Apr 28 22:24:03 2005 +0000 (2005-04-28)
parents 065f8708a9e2
children bd239611771a
line source
1 include $(BASEDIR)/Rules.mk
3 # libs-y += arch/ia64/lib/lib.a
5 OBJS = xensetup.o setup.o time.o irq.o ia64_ksyms.o process.o smp.o \
6 xenmisc.o pdb-stub.o acpi.o hypercall.o \
7 machvec.o dom0_ops.o domain.o \
8 idle0_task.o pal.o hpsim.o efi.o efi_stub.o ivt.o mm_contig.o \
9 xenmem.o sal.o cmdline.o mm_init.o tlb.o smpboot.o \
10 extable.o linuxextable.o \
11 regionreg.o entry.o unaligned.o privop.o vcpu.o \
12 irq_ia64.o irq_lsapic.o vhpt.o xenasm.o dom_fw.o
13 # perfmon.o
14 # unwind.o needed for kernel unwinding (rare)
16 OBJS := $(subst $(TARGET_ARCH)/asm-offsets.o,,$(OBJS))
18 # remove following line if not privifying in memory
19 # OBJS += privify.o
21 default: $(OBJS) head.o ia64lib.o xen.lds.s
22 $(LD) -r -o arch.o $(OBJS) ia64lib.o
23 $(LD) $(LDFLAGS) -T $(BASEDIR)/arch/$(TARGET_ARCH)/xen.lds.s -N \
24 -Map map.out head.o $(ALL_OBJS) -o $(TARGET)-syms
25 $(OBJCOPY) -R .note -R .comment -S $(TARGET)-syms $(TARGET)
27 asm-offsets.s: asm-offsets.c
28 $(CC) $(CFLAGS) -S -o $@ $<
30 # I'm sure a Makefile wizard would know a better way to do this
31 xen.lds.s: xen.lds.S
32 $(CC) -E $(CPPFLAGS) -P -DXEN -D__ASSEMBLY__ \
33 -o xen.lds.s xen.lds.S
35 ia64lib.o:
36 $(MAKE) -C lib && cp lib/ia64lib.o .
38 clean:
39 rm -f *.o *~ core xen.lds.s $(BASEDIR)/include/asm-ia64/.offsets.h.stamp
40 rm -f lib/*.o
42 # setup.o contains bits of compile.h so it must be blown away
43 delete-unfresh-files:
44 echo any unfresh-files to delete for ia64\?
45 # rm -f setup.o
47 .PHONY: default clean delete-unfresh-files