[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 4 of 5 RFC] blktap3: Introduce xenio daemon Makefile



diff -r 7126fda14249 -r 0f3b6811dad1 tools/blktap3/xenio/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/blktap3/xenio/Makefile      Wed Nov 28 14:18:46 2012 +0000
@@ -0,0 +1,47 @@
+XEN_ROOT := $(CURDIR)/../../../
+include $(XEN_ROOT)/tools/Rules.mk
+
+BLKTAP_ROOT := ..
+
+INST_DIR ?= /usr/bin
+
+IBIN = xenio
+
+override CFLAGS += \
+       -I$(BLKTAP_ROOT)/include \
+       -I$(BLKTAP_ROOT)/control \
+       -I$(XEN_ROOT)/tools/libxc \
+       -I$(XEN_ROOT)/tools/xenstore \
+       -D_GNU_SOURCE \
+       $(CFLAGS_xeninclude) \
+    -Wall \
+    -Wextra \
+    -Werror
+
+# FIXME cause trouble
+override CFLAGS += \
+    -Wno-old-style-declaration \
+    -Wno-sign-compare \
+    -Wno-type-limits
+
+override LDFLAGS = \
+    -L$(XEN_ROOT)/tools/xenstore -lxenstore
+
+XENIO-OBJS := log.o
+
+all: $(IBIN)
+
+$(BLKTAP_ROOT)/control/libblktapctl.a:
+       make -C $(BLKTAP_ROOT)/control libblktapctl.a
+
+$(IBIN): $(XENIO-OBJS) xenio.o $(BLKTAP_ROOT)/control/libblktapctl.a
+       $(CC) -o $@ $^ $(LDFLAGS)
+
+install: all
+       $(INSTALL_DIR) -p $(DESTDIR)$(INST_DIR)
+       $(INSTALL_PROG) $(IBIN) $(DESTDIR)$(INST_DIR)
+
+clean:
+       rm -f *.o *.o.d .*.o.d $(IBIN)
+
+.PHONY: clean install

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.