ia64/xen-unstable

view tools/console/Makefile @ 6435:b4b3f6be5226

merge?
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 17:27:49 2005 +0000 (2005-08-25)
parents 0610add7c3fe 6e899a3840b2
children 8799d14bef77 9312a3e8a6f8 112d44270733
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 -lxenctrl -lxenstore
31 xenconsole: $(patsubst %.c,%.o,$(wildcard client/*.c))
32 $(CC) $(CFLAGS) $^ -o $@ -L$(XEN_LIBXC) -L$(XEN_XENSTORE) \
33 -lxenctrl -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)