direct-io.hg

view xen/Rules.mk @ 418:cbe60e831a04

bitkeeper revision 1.203 (3eb284e8XJjBijrpL1sa9HnT3VaQKA)

Merge scramble.cl.cam.ac.uk:/auto/groups/xeno/BK/xeno.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno
author kaf24@scramble.cl.cam.ac.uk
date Fri May 02 14:47:04 2003 +0000 (2003-05-02)
parents 88dba60f48b3 a1275253dbd1
children 970fdf86f98e 93c7dcf4a80e
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)
9 # compile.h is always regenerated, but other files shouldn't be rebuilt
10 HDRS := $(subst $(BASEDIR)/include/xeno/compile.h,,$(HDRS))
12 C_SRCS := $(wildcard *.c)
13 S_SRCS := $(wildcard *.S)
14 OBJS := $(patsubst %.S,%.o,$(S_SRCS))
15 OBJS += $(patsubst %.c,%.o,$(C_SRCS))
17 # Note that link order matters!
18 ALL_OBJS := $(BASEDIR)/common/common.o
19 ALL_OBJS += $(BASEDIR)/net/network.o
20 ALL_OBJS += $(BASEDIR)/drivers/char/driver.o
21 ALL_OBJS += $(BASEDIR)/drivers/pci/driver.o
22 ALL_OBJS += $(BASEDIR)/drivers/net/driver.o
23 ALL_OBJS += $(BASEDIR)/drivers/block/driver.o
24 ALL_OBJS += $(BASEDIR)/drivers/cdrom/driver.o
25 ALL_OBJS += $(BASEDIR)/drivers/ide/driver.o
26 ALL_OBJS += $(BASEDIR)/drivers/scsi/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) -g $(CFLAGS) -c $< -o $@
37 %.o: %.S $(HDRS) Makefile
38 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@