direct-io.hg

view tools/Rules.mk @ 4451:372c77915c16

bitkeeper revision 1.1236.1.205 (424fd161S0p6f85LcRWpZCuo7kqBBg)

Fix tools build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@viper.(none)
date Sun Apr 03 11:20:01 2005 +0000 (2005-04-03)
parents c3e543f81772
children 445b12a7221a
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 X11_LDPATH = -L/usr/X11R6/lib
13 endif
15 ifeq ($(XEN_TARGET_ARCH),x86_64)
16 CFLAGS += -m64
17 LDFLAGS += -m elf_x86_64
18 X11_LDPATH = -L/usr/X11R6/lib64
19 endif
21 %.opic: %.c
22 $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<
24 %.o: %.c
25 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
27 %.o: %.cc
28 $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<