ia64/xen-unstable

view tools/xcutils/Makefile @ 16910:ddf454872de4

Define CFLAGS and LDFLAGS for libxenctrl.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 27 12:57:14 2008 +0000 (2008-01-27)
parents 221b867ee084
children 4bac220563b1
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 INCLUDES += $(CFLAGS_libxenctrl) -I $(XEN_XENSTORE) -I$(XEN_INCLUDE)
16 CFLAGS += -Werror
17 CFLAGS += $(INCLUDES)
19 # Make gcc generate dependencies.
20 CFLAGS += -Wp,-MD,.$(@F).d
21 PROG_DEP = .*.d
23 PROGRAMS = xc_restore xc_save readnotes
25 LDLIBS = $(LDFLAGS_libxenctrl) -L$(XEN_XENSTORE) -lxenguest -lxenstore
27 .PHONY: all
28 all: build
30 .PHONY: build
31 build: $(PROGRAMS)
33 $(PROGRAMS): %: %.o
34 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
36 .PHONY: install
37 install: build
38 $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
39 $(INSTALL_PROG) $(PROGRAMS) $(DESTDIR)$(PRIVATE_BINDIR)
42 .PHONY: clean
43 clean:
44 $(RM) *.o $(PROGRAMS)
45 $(RM) $(PROG_DEP)
47 -include $(PROG_DEP)