ia64/xen-unstable

view xen/Rules.mk @ 1196:17430e51466a

bitkeeper revision 1.810 (4059c6e8EQAxVfRpkNjdygO1O6otTQ)

schedule.c, sched_bvt.c, main.py, Makefile, setup.py, Xc.c:
Python tool fixes.
tempfile.py:
new file
author kaf24@scramble.cl.cam.ac.uk
date Thu Mar 18 15:57:28 2004 +0000 (2004-03-18)
parents 0f65f19b396c
children 9f85adafc1e1
line source
1 COMPILE_ARCH := $(shell uname -m | sed -e s/i.86/i386/)
2 TARGET_ARCH ?= $(COMPILE_ARCH)
4 TARGET := $(BASEDIR)/xen
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-$(TARGET_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)/drivers/message/fusion/driver.o
28 ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
30 HOSTCC = gcc
31 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
33 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
35 %.o: %.c $(HDRS) Makefile
36 $(CC) $(CFLAGS) -c $< -o $@
38 %.o: %.S $(HDRS) Makefile
39 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@