ia64/xen-unstable

changeset 8445:87e5ac90a8df

Only build xenctx on x86_32 and x86_64.

Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
author Ian.Campbell@xensource.com
date Fri Dec 23 09:12:41 2005 +0000 (2005-12-23)
parents c9184cc4d1d1
children 829517be689f
files tools/xentrace/Makefile
line diff
     1.1 --- a/tools/xentrace/Makefile	Thu Dec 22 16:15:33 2005 +0000
     1.2 +++ b/tools/xentrace/Makefile	Fri Dec 23 09:12:41 2005 +0000
     1.3 @@ -15,24 +15,32 @@ HDRS     = $(wildcard *.h)
     1.4  OBJS     = $(patsubst %.c,%.o,$(wildcard *.c))
     1.5  
     1.6  BIN      = xentrace tbctl setsize
     1.7 -LIBBIN   = xenctx
     1.8 +LIBBIN   = 
     1.9  SCRIPTS  = xentrace_format
    1.10  MAN1     = $(wildcard *.1)
    1.11  MAN8     = $(wildcard *.8)
    1.12  
    1.13 +ifeq ($(XEN_TARGET_ARCH),x86_32)
    1.14 +LIBBIN  += xenctx
    1.15 +endif
    1.16 +
    1.17 +ifeq ($(XEN_TARGET_ARCH),x86_64)
    1.18 +LIBBIN  += xenctx
    1.19 +endif
    1.20 +
    1.21  all: build
    1.22  build: $(BIN) $(LIBBIN)
    1.23  
    1.24  install: build
    1.25  	[ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
    1.26 -	[ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
    1.27 +	[ -z "$(LIBBIN)"] || [ -d $(DESTDIR)/usr/$(LIBDIR)/xen/bin ] || \
    1.28  		$(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
    1.29  	[ -d $(DESTDIR)/usr/share/man/man1 ] || \
    1.30  		$(INSTALL_DIR) $(DESTDIR)/usr/share/man/man1
    1.31  	[ -d $(DESTDIR)/usr/share/man/man8 ] || \
    1.32  		$(INSTALL_DIR) $(DESTDIR)/usr/share/man/man8
    1.33  	$(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)/usr/bin
    1.34 -	$(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
    1.35 +	[ -z "$(LIBBIN)"] || $(INSTALL_PROG) $(LIBBIN) $(DESTDIR)/usr/$(LIBDIR)/xen/bin
    1.36  	$(INSTALL_DATA) $(MAN1) $(DESTDIR)/usr/share/man/man1
    1.37  	$(INSTALL_DATA) $(MAN8) $(DESTDIR)/usr/share/man/man8
    1.38