ia64/xen-unstable

view tools/debugger/xenitp/Makefile @ 16607:dad1f2974d29

[IA64] Fix XenITP build

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Dec 13 09:07:55 2007 -0700 (2007-12-13)
parents b3862770cde2
children 6ed9b42d1ec4
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 [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
30 [ -z "$(LIBBIN)" ] || [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
31 $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
32 [ -d $(DESTDIR)/usr/share/man/man1 ] || \
33 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
34 [ -d $(DESTDIR)/usr/share/man/man8 ] || \
35 $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
36 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
37 [ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
38 $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
39 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
41 .PHONY: clean
42 clean:
43 $(RM) *.a *.so *.o *.rpm $(BIN) $(LIBBIN)
45 %: %.c $(HDRS) Makefile
46 $(CC) $(CFLAGS) -o $@ $< -L$(XEN_LIBXC) -lxenctrl
48 XENITP_OBJS=xenitp.o ia64-dis.o ia64-opc.o cpu-ia64-opc.o
49 xenitp: $(XENITP_OBJS)
50 $(CC) $(CFLAGS) -o $@ $(XENITP_OBJS) -L$(XEN_LIBXC) -lxenctrl