debuggers.hg

view xen/arch/x86/Makefile @ 3705:4294cfa9fad3

bitkeeper revision 1.1159.212.95 (4204aa0ee0re5Xx1zWrJ9ejxzgRs3w)

Various cleanups. Remove PDB pending simpler GDB stub and/or NetBSD debugger.
Force emacs mode to appropriate tabbing in various files.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Sat Feb 05 11:12:14 2005 +0000 (2005-02-05)
parents 09723a1de726
children eb32083c83ab
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 := $(subst vmx.o,,$(OBJS))
12 OBJS := $(subst vmx_io.o,,$(OBJS))
13 OBJS := $(subst vmx_platform.o,,$(OBJS))
14 OBJS := $(subst vmx_vmcs.o,,$(OBJS))
15 endif
17 default: $(TARGET)
19 $(TARGET): $(TARGET)-syms boot/mkelf32
20 ./boot/mkelf32 $(TARGET)-syms $(TARGET) 0x100000
22 $(CURDIR)/arch.o: $(OBJS)
23 $(LD) $(LDFLAGS) -r -o $@ $(OBJS)
25 $(TARGET)-syms: boot/$(TARGET_SUBARCH).o $(ALL_OBJS) $(TARGET_SUBARCH)/xen.lds
26 $(LD) $(LDFLAGS) -T $(TARGET_SUBARCH)/xen.lds -N \
27 boot/$(TARGET_SUBARCH).o $(ALL_OBJS) -o $@
29 asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c
30 $(CC) $(CFLAGS) -S -o $@ $<
32 boot/mkelf32: boot/mkelf32.c
33 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
35 clean:
36 rm -f *.o *.s *~ core boot/*.o boot/*~ boot/core boot/mkelf32
37 rm -f x86_32/*.o x86_32/*~ x86_32/core
38 rm -f x86_64/*.o x86_64/*~ x86_64/core
39 rm -f mtrr/*.o mtrr/*~ mtrr/core
41 # setup.o contains bits of compile.h so it must be blown away
42 delete-unfresh-files:
43 rm -f setup.o
45 .PHONY: default clean delete-unfresh-files