diff options
author | Ian.Campbell@xensource.com <Ian.Campbell@xensource.com> | 2005-12-23 09:12:41 +0000 |
---|---|---|
committer | Ian.Campbell@xensource.com <Ian.Campbell@xensource.com> | 2005-12-23 09:12:41 +0000 |
commit | efec87263e4c972c6d475595243d3ec4c5eaa455 (patch) | |
tree | f64eab134f3d563b42073b6521af4276ded53cfa /tools/xentrace/Makefile | |
parent | e201be5d57d1ac559ed6c6cb3f334facdbf09438 (diff) | |
download | xen-efec87263e4c972c6d475595243d3ec4c5eaa455.tar.gz xen-efec87263e4c972c6d475595243d3ec4c5eaa455.tar.bz2 xen-efec87263e4c972c6d475595243d3ec4c5eaa455.zip |
Only build xenctx on x86_32 and x86_64.
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
Diffstat (limited to 'tools/xentrace/Makefile')
-rw-r--r-- | tools/xentrace/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/xentrace/Makefile b/tools/xentrace/Makefile index cbe2d3a600..cf91113105 100644 --- a/tools/xentrace/Makefile +++ b/tools/xentrace/Makefile @@ -15,24 +15,32 @@ HDRS = $(wildcard *.h) OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) BIN = xentrace tbctl setsize -LIBBIN = xenctx +LIBBIN = SCRIPTS = xentrace_format MAN1 = $(wildcard *.1) MAN8 = $(wildcard *.8) +ifeq ($(XEN_TARGET_ARCH),x86_32) +LIBBIN += xenctx +endif + +ifeq ($(XEN_TARGET_ARCH),x86_64) +LIBBIN += xenctx +endif + all: build build: $(BIN) $(LIBBIN) install: build [ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin - [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \ + [ -z "$(LIBBIN)"] || [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \ $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin [ -d $(DESTDIR)/usr/share/man/man1 ] || \ $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1 [ -d $(DESTDIR)/usr/share/man/man8 ] || \ $(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8 $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin - $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin + [ -z "$(LIBBIN)"] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin $(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1 $(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8 |