include ../Path.incl

#
# $Id: Makefile.in,v 1.3 2003/01/17 10:11:55 steer Exp $
#
# top-level PVM3 makefile
#

SHELL	=	/bin/sh

AIMKSTR	=	-here -f ./conf/`./lib/pvmtmparch`.def -f ./Makefile.aimk

RM = rm

all: default 

default:
	@PVM_ROOT=$(SCIDIR)/pvm3; export PVM_ROOT;\
		PVM_ARCH=LINUX; export PVM_ARCH ;\
		./lib/aimk $(AIMKSTR) default

clean:
	@PVM_ROOT=$(SCIDIR)/pvm3; export PVM_ROOT;\
		PVM_ARCH=LINUX; export PVM_ARCH ;\
		./lib/aimk $(AIMKSTR) clean

# distclean clean removes *.o and other remaining executables 
# 
distclean:: clean
	arch=`./lib/pvmtmparch` ;$(RM) -rf lib/$$arch/* bin/$$arch/* 

ALL_ARCH = HPPA SGI ALPHA LINUXALPHA LINUX LINUXSPARC SUN4SOL2 SUNMP 

# make a distclean on one architecture and removes binaries for other 
# architectures 

super_distclean:
	@for arch in $(ALL_ARCH) ;\
        do \
	( aimkop="-here -f ./conf/$$arch.def -f ./Makefile.aimk" ;\
	 PVM_ROOT=`pwd` ; export PVM_ROOT; ./lib/aimk $$aimkop clean ; \
	 $(RM) -rf lib/$$arch bin/$$arch pvmgs/$$arch  \
            ); \
        done
