direct-io.hg

view tools/Rules.mk @ 4252:486217f3ad4f

bitkeeper revision 1.1236.1.105 (423fdeaeuXmbQUj74cWh1nItpSKUjw)

Improved cross-compilation support.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Mar 22 09:00:30 2005 +0000 (2005-03-22)
parents 5c98a123eb05
children a01199a95070 c3e543f81772
line source
1 # -*- mode: Makefile; -*-
3 include $(XEN_ROOT)/Config.mk
5 XEN_XC = $(XEN_ROOT)/tools/python/xen/lowlevel/xc
6 XEN_LIBXC = $(XEN_ROOT)/tools/libxc
7 XEN_LIBXUTIL = $(XEN_ROOT)/tools/libxutil
9 ifeq ($(XEN_TARGET_ARCH),x86_32)
10 CFLAGS += -m32 -march=i686
11 LDFLAGS += -m elf_i386
12 endif
14 ifeq ($(XEN_TARGET_ARCH),x86_64)
15 CFLAGS += -m64
16 LDFLAGS += -m elf_x86_64
17 endif
19 %.opic: %.c
20 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
22 %.o: %.c
23 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<