diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-15 15:09:58 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-11-15 15:09:58 +0100 |
commit | 0d5ddb880686349ab6c35a283033f2ecc987dd0f (patch) | |
tree | e2cd550b6670d35f247d2cf14a4b1019a6dbafe7 /tools/xenmon/Makefile | |
parent | 0e3a022f8cfe382c960da254f632eaec4ec6dfcf (diff) | |
download | xen-0d5ddb880686349ab6c35a283033f2ecc987dd0f.tar.gz xen-0d5ddb880686349ab6c35a283033f2ecc987dd0f.tar.bz2 xen-0d5ddb880686349ab6c35a283033f2ecc987dd0f.zip |
The new userland monitoring tool, XenMon.
Signed-off-by: Rob Gardner <rob.gardner@hp.com>
Diffstat (limited to 'tools/xenmon/Makefile')
-rw-r--r-- | tools/xenmon/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tools/xenmon/Makefile b/tools/xenmon/Makefile new file mode 100644 index 0000000000..7fdf786445 --- /dev/null +++ b/tools/xenmon/Makefile @@ -0,0 +1,51 @@ +# Copyright (C) HP Labs, Palo Alto and Fort Collins, 2005 +# Author: Diwaker Gupta <diwaker.gupta@hp.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; under version 2 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +INSTALL = install +INSTALL_PROG = $(INSTALL) -m0755 +INSTALL_DIR = $(INSTALL) -d -m0755 +INSTALL_DATA = $(INSTALL) -m064 + +prefix=/usr/local +mandir=$(prefix)/share/man +man1dir=$(mandir)/man1 +sbindir=$(prefix)/sbin + +XEN_ROOT=../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -Wall -Werror -g +CFLAGS += -I $(XEN_XC) +CFLAGS += -I $(XEN_LIBXC) +LDFLAGS += -L $(XEN_LIBXC) + +BIN = setmask xenbaked +SCRIPTS = xenmon.py + +all: build + +build: $(BIN) + +install: xenbaked setmask + [ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir) + $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked + $(INSTALL_PROG) setmask $(DESTDIR)$(sbindir)/setmask + $(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py + +clean: + rm -f $(BIN) + + +%: %.c Makefile + $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -o $@ $< + + |