direct-io.hg

view tools/Rules.mk @ 4376:c3e543f81772

bitkeeper revision 1.1236.1.156 (424a5bd5fg_psBdMIPncUZSGGI9ryQ)

[PATCH] ioemu-x86-64-makefile.patch

Fix makefiles on x86-64.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Wed Mar 30 07:57:09 2005 +0000 (2005-03-30)
parents 486217f3ad4f
children 372c77915c16
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 $@ $<