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

« back to all changes in this revision

Viewing changes to tools/xenbackendd/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) 2009 Advanced Micro Devices, Inc.
 
2
#
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; under version 2 of the License.
 
6
#
 
7
# This program is distributed in the hope that it will be useful,
 
8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
# GNU General Public License for more details.
 
11
 
 
12
XEN_ROOT=../..
 
13
include $(XEN_ROOT)/tools/Rules.mk
 
14
 
 
15
CFLAGS  += -Werror
 
16
CFLAGS  += $(CFLAGS_libxenstore)
 
17
CPPFLAGS += -DXEN_SCRIPT_DIR="\"$(XEN_SCRIPT_DIR)\""
 
18
LDFLAGS += $(LDFLAGS_libxenstore)
 
19
 
 
20
SBIN = xenbackendd
 
21
 
 
22
.PHONY: all
 
23
all: build
 
24
 
 
25
.PHONY: build
 
26
build: $(SBIN)
 
27
 
 
28
.PHONY: install
 
29
install: build
 
30
        $(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
 
31
        $(INSTALL_PROG) xenbackendd $(DESTDIR)$(SBINDIR)
 
32
 
 
33
.PHONY: clean
 
34
clean:
 
35
        rm -f $(SBIN) $(DEPS)
 
36
 
 
37
 
 
38
%: %.c Makefile
 
39
        $(CC) $(CFLAGS) $(CPPFLAGS) $< $(LDFLAGS) -o $@
 
40
 
 
41
-include $(DEPS)