ia64/xen-unstable

annotate tools/xcutils/Makefile @ 16899:221b867ee084

Add PRIVATE_BINDIR. Use it.

Signed-off-by: Bastian Blank <waldi@debian.org>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Jan 26 14:42:03 2008 +0000 (2008-01-26)
parents b9004e222fde
children ddf454872de4
rev   line source
cl349@5099 1 #
cl349@5099 2 # tools/xcutils/Makefile
cl349@5099 3 #
cl349@5099 4 # This file is subject to the terms and conditions of the GNU General
cl349@5099 5 # Public License. See the file "COPYING" in the main directory of
cl349@5099 6 # this archive for more details.
cl349@5099 7 #
cl349@5099 8 # Copyright (C) 2005 by Christian Limpach
cl349@5099 9 #
cl349@5099 10
cl349@5099 11 XEN_ROOT = ../..
cl349@5099 12 include $(XEN_ROOT)/tools/Rules.mk
cl349@5099 13
keir@16894 14 INCLUDES += -I $(XEN_LIBXC) -I $(XEN_XENSTORE) -I$(XEN_INCLUDE)
cl349@5099 15
keir@15533 16 CFLAGS += -Werror
cl349@5099 17 CFLAGS += $(INCLUDES)
cl349@5099 18
cl349@5099 19 # Make gcc generate dependencies.
cl349@5099 20 CFLAGS += -Wp,-MD,.$(@F).d
cl349@5099 21 PROG_DEP = .*.d
cl349@5099 22
Tim@14436 23 PROGRAMS = xc_restore xc_save readnotes
cl349@5099 24
Tim@14436 25 LDLIBS = -L$(XEN_LIBXC) -L$(XEN_XENSTORE) -lxenguest -lxenctrl -lxenstore
cl349@5099 26
cl349@5099 27 .PHONY: all
cl349@5099 28 all: build
kaf24@9660 29
kaf24@9660 30 .PHONY: build
cl349@5099 31 build: $(PROGRAMS)
cl349@5099 32
kaf24@5120 33 $(PROGRAMS): %: %.o
keir@16741 34 $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
cl349@5099 35
cl349@5099 36 .PHONY: install
cl349@5099 37 install: build
keir@16899 38 $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
keir@16899 39 $(INSTALL_PROG) $(PROGRAMS) $(DESTDIR)$(PRIVATE_BINDIR)
cl349@5099 40
cl349@5099 41
kaf24@9660 42 .PHONY: clean
cl349@5099 43 clean:
kaf24@5120 44 $(RM) *.o $(PROGRAMS)
cl349@5099 45 $(RM) $(PROG_DEP)
cl349@5099 46
cl349@5099 47 -include $(PROG_DEP)