ia64/xen-unstable

view xen-2.4.16/Rules.mk @ 77:024aa2a06c1e

bitkeeper revision 1.7.3.52 (3e1019294uiW6rByAS_Bs30dgMr6AA)

debug
author lynx@idefix.cl.cam.ac.uk
date Mon Dec 30 10:00:09 2002 +0000 (2002-12-30)
parents 1ef2026299c3
children 6e6899e5357c 2f78322be16a
line source
2 ARCH := i386
4 TARGET := $(BASEDIR)/image
5 HDRS := $(wildcard $(BASEDIR)/include/xeno/*.h)
6 HDRS += $(wildcard $(BASEDIR)/include/scsi/*.h)
7 HDRS += $(wildcard $(BASEDIR)/include/hypervisor-ifs/*.h)
8 HDRS += $(wildcard $(BASEDIR)/include/asm-$(ARCH)/*.h)
10 C_SRCS := $(wildcard *.c)
11 S_SRCS := $(wildcard *.S)
12 OBJS := $(patsubst %.S,%.o,$(S_SRCS))
13 OBJS += $(patsubst %.c,%.o,$(C_SRCS))
15 # Note that link order matters!
16 ALL_OBJS := $(BASEDIR)/common/common.o
17 ALL_OBJS += $(BASEDIR)/net/network.o
18 ALL_OBJS += $(BASEDIR)/drivers/pci/driver.o
19 ALL_OBJS += $(BASEDIR)/drivers/net/driver.o
20 ALL_OBJS += $(BASEDIR)/drivers/block/driver.o
21 ALL_OBJS += $(BASEDIR)/drivers/ide/driver.o
22 ALL_OBJS += $(BASEDIR)/arch/$(ARCH)/arch.o
24 include $(BASEDIR)/arch/$(ARCH)/Rules.mk
26 %.o: %.c $(HDRS) Makefile
27 $(CC) $(CFLAGS) -c $< -o $@
29 %.o: %.S $(HDRS) Makefile
30 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@