ia64/xen-unstable

view tools/blktap/drivers/Makefile @ 15783:c93e2a822d6f

[xen, xencomm] xencomm multiple page support
Current implementation doesn't allow struct xencomm_desc::address
array to be more than single page. On IA64 it causes 64GB+ domain
creation failure. This patch generalizes xencomm to allow multipage

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author kfraser@localhost.localdomain
date Tue Aug 28 15:32:27 2007 +0100 (2007-08-28)
parents 8528da5be577
children b6cc74f275fd
line source
1 XEN_ROOT = ../../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 INCLUDES += -I.. -I../lib
6 IBIN = blktapctrl tapdisk
7 QCOW_UTIL = img2qcow qcow2raw qcow-create
8 INST_DIR = /usr/sbin
9 LIBAIO_DIR = ../../libaio/src
11 CFLAGS += -Werror
12 CFLAGS += -Wno-unused
13 CFLAGS += -I $(XEN_LIBXC) -I $(LIBAIO_DIR)
14 CFLAGS += $(INCLUDES) -I. -I../../xenstore
15 CFLAGS += -D_GNU_SOURCE
17 # Get gcc to generate the dependencies for us.
18 CFLAGS += -Wp,-MD,.$(@F).d
19 DEPS = .*.d
21 THREADLIB := -lpthread -lz
22 LIBS := -L. -L.. -L../lib
23 LIBS += -L$(XEN_LIBXC)
24 LIBS += -lblktap -lxenctrl
25 LIBS += -lcrypto
26 LIBS += -lz
27 LIBS += -L$(XEN_XENSTORE) -lxenstore
29 AIOLIBS := $(LIBAIO_DIR)/libaio.a
31 BLK-OBJS := block-aio.o
32 BLK-OBJS += block-sync.o
33 BLK-OBJS += block-vmdk.o
34 BLK-OBJS += block-ram.o
35 BLK-OBJS += block-qcow.o
36 BLK-OBJS += aes.o
37 BLK-OBJS += tapaio.o
39 all: $(IBIN) qcow-util
41 blktapctrl: blktapctrl.c
42 $(CC) $(CFLAGS) -o blktapctrl $(LIBS) blktapctrl.c
44 tapdisk: $(BLK-OBJS) tapdisk.c
45 $(CC) $(CFLAGS) -o tapdisk $(BLK-OBJS) tapdisk.c \
46 $(AIOLIBS) $(LIBS)
48 .PHONY: qcow-util
49 qcow-util: img2qcow qcow2raw qcow-create
51 img2qcow qcow2raw qcow-create: %: $(BLK-OBJS)
52 $(CC) $(CFLAGS) -o $* $(BLK-OBJS) $*.c $(AIOLIBS) $(LIBS)
54 install: all
55 $(INSTALL_PROG) $(IBIN) $(QCOW_UTIL) $(VHD_UTIL) $(DESTDIR)$(INST_DIR)
57 clean:
58 rm -rf *.o *~ $(DEPS) xen TAGS $(IBIN) $(LIB) $(QCOW_UTIL) $(VHD_UTIL)
60 .PHONY: clean install
62 -include $(DEPS)