source: trunk/packages/xen-common/xen-common/tools/xenmon/Makefile @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 1.3 KB
Line 
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.
12
13XEN_ROOT=../..
14include $(XEN_ROOT)/tools/Rules.mk
15
16sbindir=/usr/sbin
17
18CFLAGS  += -Werror
19CFLAGS  += -I $(XEN_XC)
20CFLAGS  += -I $(XEN_LIBXC)
21LDFLAGS += -L $(XEN_LIBXC)
22
23BIN = xentrace_setmask xenbaked
24SCRIPTS = xenmon.py
25
26.PHONY: all
27all: build
28
29.PHONY: build
30build: $(BIN)
31
32.PHONY: install
33install: build
34        [ -d $(DESTDIR)$(sbindir) ] || $(INSTALL_DIR) $(DESTDIR)$(sbindir)
35        $(INSTALL_PROG) xenbaked $(DESTDIR)$(sbindir)/xenbaked
36        $(INSTALL_PROG) xentrace_setmask  $(DESTDIR)$(sbindir)/xentrace_setmask
37        $(INSTALL_PROG) xenmon.py  $(DESTDIR)$(sbindir)/xenmon.py
38
39.PHONY: clean
40clean:
41        rm -f $(BIN)
42
43
44%: %.c Makefile
45        $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -o $@ $<
46xentrace_%: %.c Makefile
47        $(CC) $(CFLAGS) $(LDFLAGS) -lxenctrl -o $@ $<
Note: See TracBrowser for help on using the repository browser.