ia64/xen-unstable

view xen/Rules.mk @ 1041:7c3b17193b4b

bitkeeper revision 1.680 (40083bb4Kb4q4cb9z5eySYtCRnVh3A)

maw_vd.patch
author kaf24@scramble.cl.cam.ac.uk[kaf24]
date Fri Jan 16 19:29:56 2004 +0000 (2004-01-16)
parents 4587faa56a0a
children f54cd472c1af
line source
1 ARCH := i386
3 TARGET := $(BASEDIR)/xen
4 HDRS := $(wildcard $(BASEDIR)/include/xeno/*.h)
5 HDRS += $(wildcard $(BASEDIR)/include/scsi/*.h)
6 HDRS += $(wildcard $(BASEDIR)/include/hypervisor-ifs/*.h)
7 HDRS += $(wildcard $(BASEDIR)/include/asm-$(ARCH)/*.h)
8 # compile.h is always regenerated, but other files shouldn't be rebuilt
9 HDRS := $(subst $(BASEDIR)/include/xeno/compile.h,,$(HDRS))
11 C_SRCS := $(wildcard *.c)
12 S_SRCS := $(wildcard *.S)
13 OBJS := $(patsubst %.S,%.o,$(S_SRCS))
14 OBJS += $(patsubst %.c,%.o,$(C_SRCS))
16 # Note that link order matters!
17 ALL_OBJS := $(BASEDIR)/common/common.o
18 ALL_OBJS += $(BASEDIR)/net/network.o
19 ALL_OBJS += $(BASEDIR)/drivers/char/driver.o
20 ALL_OBJS += $(BASEDIR)/drivers/pci/driver.o
21 ALL_OBJS += $(BASEDIR)/drivers/net/driver.o
22 ALL_OBJS += $(BASEDIR)/drivers/block/driver.o
23 ALL_OBJS += $(BASEDIR)/drivers/cdrom/driver.o
24 ALL_OBJS += $(BASEDIR)/drivers/ide/driver.o
25 ALL_OBJS += $(BASEDIR)/drivers/scsi/driver.o
26 ALL_OBJS += $(BASEDIR)/drivers/message/fusion/driver.o
27 ALL_OBJS += $(BASEDIR)/arch/$(ARCH)/arch.o
29 HOSTCC = gcc
30 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
32 include $(BASEDIR)/arch/$(ARCH)/Rules.mk
34 %.o: %.c $(HDRS) Makefile
35 $(CC) $(CFLAGS) -c $< -o $@
37 %.o: %.S $(HDRS) Makefile
38 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@