ia64/xen-unstable

view tools/xenmon/Makefile @ 8557:5ab7cf758e2f

Install in /usr/sbin, not /usr/local/sbin, for consistency with the rest of the
Xen distribution. Closes bug #462.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Wed Jan 11 16:23:16 2006 +0000 (2006-01-11)
parents 394390f6ff85
children 7e68bc2745af
line source
1 # Copyright (C) HP Labs, Palo Alto and Fort Collins, 2005
2 # Author: Diwaker Gupta <diwaker.gupta@hp.com>
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; under version 2 of the License.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 INSTALL = install
14 INSTALL_PROG = $(INSTALL) -m0755
15 INSTALL_DIR = $(INSTALL) -d -m0755
16 INSTALL_DATA = $(INSTALL) -m0644
18 sbindir=/usr/sbin
20 XEN_ROOT=../..
21 include $(XEN_ROOT)/tools/Rules.mk
23 CFLAGS += -Wall -Werror -g
24 CFLAGS += -I $(XEN_XC)
25 CFLAGS += -I $(XEN_LIBXC)
26 LDFLAGS += -L $(XEN_LIBXC)
28 BIN = setmask xenbaked
29 SCRIPTS = xenmon.py
31 all: build
33 build: $(BIN)
35 install: xenbaked setmask
36 [ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
37 $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked
38 $(INSTALL_PROG) setmask $(DESTDIR)$(sbindir)/setmask
39 $(INSTALL_PROG) xenmon.py $(DESTDIR)$(sbindir)/xenmon.py
41 clean:
42 rm -f $(BIN)
45 %: %.c Makefile
46 $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -o $@ $<