direct-io.hg

view xen-2.4.16/Rules.mk @ 203:6cdebb6f9876

bitkeeper revision 1.64 (3e50e515H574gxTCkK8Frnaoka-RTA)

fix horrendous complicated bug IAP couldn't.
author smh22@boulderdash.cl.cam.ac.uk
date Mon Feb 17 13:35:17 2003 +0000 (2003-02-17)
parents 42a318e8648e
children ef5e27f96b09
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/char/driver.o
19 ALL_OBJS += $(BASEDIR)/drivers/pci/driver.o
20 ALL_OBJS += $(BASEDIR)/drivers/net/driver.o
21 ALL_OBJS += $(BASEDIR)/drivers/block/driver.o
22 ALL_OBJS += $(BASEDIR)/drivers/ide/driver.o
23 ALL_OBJS += $(BASEDIR)/arch/$(ARCH)/arch.o
25 HOSTCC = gcc
26 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
28 include $(BASEDIR)/arch/$(ARCH)/Rules.mk
30 %.o: %.c $(HDRS) Makefile
31 $(CC) -g $(CFLAGS) -c $< -o $@
33 %.o: %.S $(HDRS) Makefile
34 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@