ia64/xen-unstable

view xen/Rules.mk @ 2391:61f948e59214

bitkeeper revision 1.1159.53.25 (4133b18fZ5FTt-fwTtgweJYFwIKErw)

Remove redundant multicall_op from libxc.
author kaf24@freefall.cl.cam.ac.uk
date Mon Aug 30 23:00:31 2004 +0000 (2004-08-30)
parents 539c0e6f0384
children 777ddc539761 2bbaf6d19a35 d9439135569e
line source
2 debug ?= n
3 debugger ?= n
4 perfc ?= n
5 trace ?= n
7 # Currently supported architectures:
8 # {COMPILE,TARGET}_ARCH := x86
9 # {COMPILE,TARGET}_SUBARCH := x86_32 | x86_64
10 COMPILE_ARCH := x86
11 COMPILE_SUBARCH := $(shell uname -m | sed -e s/i.86/x86_32/)
13 TARGET_ARCH ?= $(COMPILE_ARCH)
14 TARGET_SUBARCH ?= $(COMPILE_SUBARCH)
16 TARGET := $(BASEDIR)/xen
17 HDRS := $(wildcard $(BASEDIR)/include/xen/*.h)
18 HDRS += $(wildcard $(BASEDIR)/include/scsi/*.h)
19 HDRS += $(wildcard $(BASEDIR)/include/hypervisor-ifs/*.h)
20 HDRS += $(wildcard $(BASEDIR)/include/asm-$(TARGET_ARCH)/*.h)
21 # compile.h is always regenerated, but other files shouldn't be rebuilt
22 HDRS := $(subst $(BASEDIR)/include/xen/compile.h,,$(HDRS))
24 C_SRCS := $(wildcard *.c)
25 S_SRCS := $(wildcard *.S)
26 OBJS := $(patsubst %.S,%.o,$(S_SRCS))
27 OBJS += $(patsubst %.c,%.o,$(C_SRCS))
29 # Note that link order matters!
30 ALL_OBJS := $(BASEDIR)/common/common.o
31 ALL_OBJS += $(BASEDIR)/drivers/char/driver.o
32 ALL_OBJS += $(BASEDIR)/drivers/acpi/driver.o
33 ALL_OBJS += $(BASEDIR)/drivers/pci/driver.o
34 ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
36 HOSTCC = gcc
37 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
39 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
41 ifneq ($(debug),y)
42 CFLAGS += -DNDEBUG
43 ifeq ($(verbose),y)
44 CFLAGS += -DVERBOSE
45 endif
46 else
47 CFLAGS += -DVERBOSE
48 endif
50 ifeq ($(debugger),y)
51 CFLAGS += -DXEN_DEBUGGER
52 endif
54 ifeq ($(perfc),y)
55 CFLAGS += -DPERF_COUNTERS
56 endif
58 ifeq ($(trace),y)
59 CFLAGS += -DTRACE_BUFFER
60 endif
62 %.o: %.c $(HDRS) Makefile
63 $(CC) $(CFLAGS) -c $< -o $@
65 %.o: %.S $(HDRS) Makefile
66 $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@