ia64/xen-unstable

view tools/Rules.mk @ 3966:0b9ff7354a95

bitkeeper revision 1.1236.1.47 (4225ff68LvKUt73k78dKjnXxsnQt7A)

Fix tools build. Clean up barrier defs.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Keir Fraser <keir.fraser@cl.cam.ac.uk>
author kaf24@scramble.cl.cam.ac.uk
date Wed Mar 02 18:01:12 2005 +0000 (2005-03-02)
parents 5c98a123eb05
children a6914c2c15cf 486217f3ad4f
line source
1 # -*- mode: Makefile; -*-
3 XEN_XC = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
4 XEN_LIBXC = $(XEN_ROOT)/tools/libxc
5 XEN_LIBXUTIL = $(XEN_ROOT)/tools/libxutil
7 XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
8 XEN_TARGET_ARCH ?= $(XEN_COMPILE_ARCH)
10 ifeq ($(XEN_TARGET_ARCH),x86_32)
11 CFLAGS += -m32 -march=i686
12 LDFLAGS += -m elf_i386
13 endif
15 ifeq ($(XEN_TARGET_ARCH),x86_64)
16 CFLAGS += -m64
17 LDFLAGS += -m elf_x86_64
18 endif
20 %.opic: %.c
21 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
23 %.o: %.c
24 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<