debuggers.hg

view tools/xcutils/Makefile @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents bd78714b8594
children d3de6f484610
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) $(CFLAGS_libxenstore)
17 PROGRAMS = xc_restore xc_save readnotes lsevtchn
19 LDLIBS = $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenguest) $(LDFLAGS_libxenstore)
21 .PHONY: all
22 all: build
24 .PHONY: build
25 build: $(PROGRAMS)
27 $(PROGRAMS): %: %.o
28 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
30 .PHONY: install
31 install: build
32 $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
33 $(INSTALL_PROG) $(PROGRAMS) $(DESTDIR)$(PRIVATE_BINDIR)
36 .PHONY: clean
37 clean:
38 $(RM) *.o $(PROGRAMS)
39 $(RM) $(DEPS)
41 -include $(DEPS)