ia64/xen-unstable

view tools/debugger/xenitp/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 0ededc85e6b4
children ddf454872de4
line source
1 XEN_ROOT=../../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 #CFLAGS += -Werror -g -O0
6 CFLAGS += -I $(XEN_LIBXC)
8 HDRS = $(wildcard *.h)
9 OBJS = $(patsubst %.c,%.o,$(wildcard *.c))
11 BIN =
12 LIBBIN =
13 SCRIPTS =
14 MAN1 = $(wildcard *.1)
15 MAN8 = $(wildcard *.8)
17 ifeq ($(XEN_TARGET_ARCH),ia64)
18 LIBBIN += xenitp
19 endif
21 .PHONY: all
22 all: build
24 .PHONY: build
25 build: $(BIN) $(LIBBIN)
27 .PHONY: install
28 install: build
29 $(INSTALL_DIR) $(DESTDIR)$(BINDIR)
30 [ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
31 $(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
32 $(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
33 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR)
34 [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)$(PRIVATE_BINDIR)
35 $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR)
36 $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR)
38 .PHONY: clean
39 clean:
40 $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN)
42 %: %.c $(HDRS) Makefile
43 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
45 XENITP_OBJS=xenitp.o ia64-dis.o ia64-opc.o cpu-ia64-opc.o
46 xenitp: $(XENITP_OBJS)
47 $(CC) $(CFLAGS) -o $@ $(XENITP_OBJS) -L$(XEN_LIBXC) -lxenctrl