ia64/xen-unstable

view tools/Rules.mk @ 3906:8e0ac8ed218b

bitkeeper revision 1.1236.1.7 (421d9a5b-DJu8ku3gvpHa3t6ChqYKQ)

Merge scramble.cl.cam.ac.uk:/local/scratch/kaf24/xen-unstable.bk
into scramble.cl.cam.ac.uk:/local/scratch/kaf24/xeno-unstable-ia64.bk
author kaf24@scramble.cl.cam.ac.uk
date Thu Feb 24 09:11:55 2005 +0000 (2005-02-24)
parents 0a4b76b6b5a0 1cbbd12a4918
children a5931595eca4 4d71c8e12d6f 5c98a123eb05
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 COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/)
8 TARGET_ARCH ?= $(COMPILE_ARCH)
10 ifeq ($(TARGET_ARCH),x86_32)
11 CFLAGS += -m32 -march=i686
12 LDFLAGS += -m elf_i386
13 endif
15 ifeq ($(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 $@ $<