ia64/xen-unstable

view xen/arch/x86/Makefile @ 3781:1d13ed9582e0

bitkeeper revision 1.1172.1.1 (420ba344y-TLJ8cFOVA_8bN7wd3dMw)

Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
author kaf24@scramble.cl.cam.ac.uk
date Thu Feb 10 18:09:08 2005 +0000 (2005-02-10)
parents 415d774d6ee7 e03bd6b89965
children 0cd8803a1553
line source
2 include $(BASEDIR)/Rules.mk
4 OBJS += $(patsubst %.S,%.o,$(wildcard $(TARGET_SUBARCH)/*.S))
5 OBJS += $(patsubst %.c,%.o,$(wildcard $(TARGET_SUBARCH)/*.c))
6 OBJS += $(patsubst %.c,%.o,$(wildcard mtrr/*.c))
8 OBJS := $(subst $(TARGET_SUBARCH)/asm-offsets.o,,$(OBJS))
10 ifneq ($(TARGET_SUBARCH),x86_32)
11 OBJS := $(patsubst vmx%.o,,$(OBJS))
12 endif
14 ifneq ($(crash_debug),y)
15 OBJS := $(subst cdb%.o,,$(OBJS))
16 endif
18 default: $(TARGET)
20 $(TARGET): $(TARGET)-syms boot/mkelf32
21 ./boot/mkelf32 $(TARGET)-syms $(TARGET) 0x100000
23 $(CURDIR)/arch.o: $(OBJS)
24 $(LD) $(LDFLAGS) -r -o $@ $(OBJS)
26 $(TARGET)-syms: boot/$(TARGET_SUBARCH).o $(ALL_OBJS) $(TARGET_SUBARCH)/xen.lds
27 $(LD) $(LDFLAGS) -T $(TARGET_SUBARCH)/xen.lds -N \
28 boot/$(TARGET_SUBARCH).o $(ALL_OBJS) -o $@
30 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c $(HDRS)
31 $(CC) $(CFLAGS) -S -o $@ $<
33 boot/mkelf32: boot/mkelf32.c
34 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
36 clean:
37 rm -f *.o *.s *~ core boot/*.o boot/*~ boot/core boot/mkelf32
38 rm -f x86_32/*.o x86_32/*~ x86_32/core
39 rm -f x86_64/*.o x86_64/*~ x86_64/core
40 rm -f mtrr/*.o mtrr/*~ mtrr/core
42 delete-unfresh-files:
43 # nothing
45 .PHONY: default clean delete-unfresh-files