direct-io.hg

view xen/Rules.mk @ 364:942eb9bcae13

bitkeeper revision 1.170 (3e9c936fXyHEI0NKOWQkP9tHN4sbqw)

Many files:
Finished virtualisation of x86 LDT. Xenolinux now exports this to applications (eg. for use by linuxthreads).
author kaf24@scramble.cl.cam.ac.uk
date Tue Apr 15 23:19:11 2003 +0000 (2003-04-15)
parents 88dba60f48b3
children a1275253dbd1 cbe60e831a04
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/cdrom/driver.o
23 ALL_OBJS += $(BASEDIR)/drivers/ide/driver.o
24 ALL_OBJS += $(BASEDIR)/drivers/scsi/driver.o
25 ALL_OBJS += $(BASEDIR)/arch/$(ARCH)/arch.o
27 HOSTCC = gcc
28 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
30 include $(BASEDIR)/arch/$(ARCH)/Rules.mk
32 %.o: %.c $(HDRS) Makefile
33 $(CC) -g $(CFLAGS) -c $< -o $@
35 %.o: %.S $(HDRS) Makefile
36 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@