ia64/xen-unstable

view tools/console/Makefile @ 8740:3d7ea7972b39

Update patches for linux 2.6.15.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Feb 02 17:16:00 2006 +0000 (2006-02-02)
parents 903d88857972
children 07c608857972 7e68bc2745af
line source
2 XEN_ROOT=../..
3 include $(XEN_ROOT)/tools/Rules.mk
5 DAEMON_INSTALL_DIR = /usr/sbin
6 CLIENT_INSTALL_DIR = /usr/$(LIBDIR)/xen/bin
8 INSTALL = install
9 INSTALL_PROG = $(INSTALL) -m0755
10 INSTALL_DIR = $(INSTALL) -d -m0755
12 CFLAGS += -Wall -Werror -g3
14 CFLAGS += -I $(XEN_LIBXC)
15 CFLAGS += -I $(XEN_XENSTORE)
17 BIN = xenconsoled xenconsole
19 all: $(BIN)
21 clean:
22 $(RM) *.a *.so *.o *.rpm $(BIN)
23 $(RM) client/*.o daemon/*.o
25 xenconsoled: $(patsubst %.c,%.o,$(wildcard daemon/*.c))
26 $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
27 -lxenctrl -lxenstore
29 xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
30 $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
31 -lxenctrl -lxenstore
33 install: $(BIN)
34 $(INSTALL_DIR) -p $(DESTDIR)/$(DAEMON_INSTALL_DIR)
35 $(INSTALL_PROG) xenconsoled $(DESTDIR)/$(DAEMON_INSTALL_DIR)
36 $(INSTALL_DIR) -p $(DESTDIR)/$(CLIENT_INSTALL_DIR)
37 $(INSTALL_PROG) xenconsole $(DESTDIR)/$(CLIENT_INSTALL_DIR)