ia64/xen-unstable

view tools/xcutils/Makefile @ 16911:4bac220563b1

Define CFLAGS and LDFLAGS for libxenguest.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 27 12:58:02 2008 +0000 (2008-01-27)
parents ddf454872de4
children a59e0510780b
line source
1 #
2 # tools/xcutils/Makefile
3 #
4 # This file is subject to the terms and conditions of the GNU General
5 # Public License. See the file "COPYING" in the main directory of
6 # this archive for more details.
7 #
8 # Copyright (C) 2005 by Christian Limpach
9 #
11 XEN_ROOT = ../..
12 include $(XEN_ROOT)/tools/Rules.mk
14 CFLAGS += -Werror
15 CFLAGS += $(CFLAGS_libxenctrl) $(CFLAGS_libxenguest) -I$(XEN_XENSTORE)
17 # Make gcc generate dependencies.
18 CFLAGS += -Wp,-MD,.$(@F).d
19 PROG_DEP = .*.d
21 PROGRAMS = xc_restore xc_save readnotes
23 LDLIBS = $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest) -L$(XEN_XENSTORE) -lxenstore
25 .PHONY: all
26 all: build
28 .PHONY: build
29 build: $(PROGRAMS)
31 $(PROGRAMS): %: %.o
32 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
34 .PHONY: install
35 install: build
36 $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
37 $(INSTALL_PROG) $(PROGRAMS) $(DESTDIR)$(PRIVATE_BINDIR)
40 .PHONY: clean
41 clean:
42 $(RM) *.o $(PROGRAMS)
43 $(RM) $(PROG_DEP)
45 -include $(PROG_DEP)