ia64/xen-unstable

view tools/console/Makefile @ 6385:f34e732ed4bf

Xenstore testsuite robustness: save output rather than rerun on failure.
"make check" reruns a test which fails with more verbosity. If the test
fails intermittently, that doesn't work well: save the output and simply
dump it if the test fails.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Aug 23 19:58:59 2005 +0000 (2005-08-23)
parents deff07c1b686
children 6e899a3840b2 2f20c2fce2c5 112d44270733 a9873d384da4
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 DAEMON_INSTALL_DIR = /usr/sbin
6 CLIENT_INSTALL_DIR = /usr/libexec/xen
8 INSTALL = install
9 INSTALL_PROG = $(INSTALL) -m0755
10 INSTALL_DIR = $(INSTALL) -d -m0755
12 CC = gcc
13 CFLAGS = -Wall -Werror -g3
15 CFLAGS += -I $(XEN_XCS)
16 CFLAGS += -I $(XEN_LIBXC)
17 CFLAGS += -I $(XEN_XENSTORE)
19 BIN = xenconsoled xenconsole
21 all: $(BIN)
23 clean:
24 $(RM) *.a *.so *.o *.rpm $(BIN)
25 $(RM) client/*.o daemon/*.o
27 xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
28 $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
29 -lxc -lxenstore
31 xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
32 $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
33 -lxc -lxenstore
35 install: $(BIN)
36 $(INSTALL_DIR) -p $(DESTDIR)/$(DAEMON_INSTALL_DIR)
37 $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(DAEMON_INSTALL_DIR)
38 $(INSTALL_DIR) -p $(DESTDIR)/$(CLIENT_INSTALL_DIR)
39 $(INSTALL_PROG) xenconsole $(DESTDIR)/$(CLIENT_INSTALL_DIR)