~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/xenmon/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
13
XEN_ROOT=../..
 
14
include $(XEN_ROOT)/tools/Rules.mk
 
15
 
 
16
CFLAGS  += -Werror
 
17
CFLAGS  += -I $(XEN_XC)
 
18
CFLAGS  += $(CFLAGS_libxenctrl)
 
19
LDFLAGS += $(LDFLAGS_libxenctrl)
 
20
 
 
21
BIN = xentrace_setmask xenbaked
 
22
SCRIPTS = xenmon.py
 
23
 
 
24
.PHONY: all
 
25
all: build
 
26
 
 
27
.PHONY: build
 
28
build: $(BIN)
 
29
 
 
30
.PHONY: install
 
31
install: build
 
32
        $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
 
33
        $(INSTALL_PROG) xenbaked $(DESTDIR)$(SBINDIR)/xenbaked
 
34
        $(INSTALL_PROG) xentrace_setmask  $(DESTDIR)$(SBINDIR)/xentrace_setmask
 
35
        $(INSTALL_PROG) xenmon.py  $(DESTDIR)$(SBINDIR)/xenmon.py
 
36
        $(INSTALL_DIR) $(DESTDIR)$(DOCDIR)
 
37
        $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)/README.xenmon
 
38
 
 
39
.PHONY: clean
 
40
clean:
 
41
        rm -f $(BIN) $(DEPS)
 
42
 
 
43
 
 
44
%: %.c Makefile
 
45
        $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
 
46
xentrace_%: %.c Makefile
 
47
        $(CC) $(CFLAGS) $< $(LDFLAGS) -o $@
 
48
 
 
49
-include $(DEPS)