ia64/xen-unstable

view tools/blktap2/daemon/Makefile @ 19741:465950bbdf46

blktap2/vhd, daemon: serialize subdirs-all and subdirs-install

make install in vhd and daemon, subdirs-all and subdirs-install
are invoked parallel causing nasty error.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir.fraser@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 10:54:10 2009 +0100 (2009-06-16)
parents 2c1d94eb996f
children
line source
1 XEN_ROOT=../../../
2 BLKTAP_ROOT := ..
3 include $(XEN_ROOT)/tools/Rules.mk
5 SUBDIRS-y :=
6 SUBDIRS-y += lib
8 IBIN = blktapctrl
9 INST_DIR = $(SBINDIR)
11 LIBS := -lxenstore
12 LIBS += -Llib
13 LIBS += -lblktap
14 LIBS += -lxenctrl
16 ifneq ($(USE_SYSTEM_LIBRARIES),y)
17 INCLUDES += -I $(XEN_LIBXC) -I $(XEN_XENSTORE)
18 LIBS += -L $(XEN_LIBXC) -L $(XEN_XENSTORE)
19 endif
21 OBJS := tapdisk-dispatch-common.o
22 OBJS += tapdisk-channel.o
24 CFLAGS += -Werror
25 CFLAGS += -Wno-unused
26 CFLAGS += -fno-strict-aliasing -fPIC
27 CFLAGS += -Ilib -I../include -I../drivers -I../../include $(INCLUDES)
28 CFLAGS += -D_GNU_SOURCE
29 CFLAGS += -g
31 # Get gcc to generate the dependencies for us.
32 CFLAGS += -Wp,-MD,.$(@F).d
33 DEPS = .*.d
35 all: subdirs-all $(IBIN)
37 LIBS_DEPENDS := lib/libblktap.a lib/libblktap.so
38 $(LIBS_DEPENDS):subdirs-all
40 blktapctrl: tapdisk-daemon.c $(OBJS) $(LIBS_DEPENDS)
41 $(CC) $(CFLAGS) -o blktapctrl tapdisk-daemon.c $(LDFLAGS) $(LIBS) $(OBJS)
43 install: all
44 $(MAKE) subdirs-install
45 $(INSTALL_DIR) -p $(DESTDIR)$(INST_DIR)
46 $(INSTALL_PROG) $(IBIN) $(DESTDIR)$(INST_DIR)
48 clean: subdirs-clean
49 rm -rf *.o *~ $(IBIN) $(DEPS) xen TAGS
51 .PHONY: all clean install blktapctrl
53 -include $(DEPS)