aboutsummaryrefslogtreecommitdiffstats
path: root/tools/console/Makefile
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-07 09:13:39 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-07 09:13:39 +0000
commitea9fb36c36fe706603acf672ce768865763ff63a (patch)
tree56fa173aeebcc148f2d30e586e51a44b133226d4 /tools/console/Makefile
parent2ba532d76714318ee9bfb5d0c10cb053be7cba00 (diff)
downloadxen-ea9fb36c36fe706603acf672ce768865763ff63a.tar.gz
xen-ea9fb36c36fe706603acf672ce768865763ff63a.tar.bz2
xen-ea9fb36c36fe706603acf672ce768865763ff63a.zip
Really include renamed console files. :-)
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/console/Makefile')
-rw-r--r--tools/console/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/tools/console/Makefile b/tools/console/Makefile
new file mode 100644
index 0000000000..4a2abdc247
--- /dev/null
+++ b/tools/console/Makefile
@@ -0,0 +1,39 @@
+
+XEN_ROOT=../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+DAEMON_INSTALL_DIR = /usr/sbin
+CLIENT_INSTALL_DIR = /usr/libexec/xen
+
+INSTALL = install
+INSTALL_PROG = $(INSTALL) -m0755
+INSTALL_DIR = $(INSTALL) -d -m0755
+
+CC = gcc
+CFLAGS = -Wall -Werror -g3
+
+CFLAGS += -I $(XEN_XCS)
+CFLAGS += -I $(XEN_LIBXC)
+CFLAGS += -I $(XEN_XENSTORE)
+
+BIN = xenconsoled xenconsole
+
+all: $(BIN)
+
+clean:
+ $(RM) *.a *.so *.o *.rpm $(BIN)
+ $(RM) client/*.o daemon/*.o
+
+xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
+ $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
+ -lxc -lxenstore
+
+xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
+ $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
+ -lxc -lxenstore
+
+install: $(BIN)
+ $(INSTALL_DIR) -p $(DESTDIR)/$(DAEMON_INSTALL_DIR)
+ $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(DAEMON_INSTALL_DIR)
+ $(INSTALL_DIR) -p $(DESTDIR)/$(CLIENT_INSTALL_DIR)
+ $(INSTALL_PROG) xenconsole $(DESTDIR)/$(CLIENT_INSTALL_DIR)