srcdir = .

UNIFIED_OBJS = test001.unified test002.unified test003.unified test004.unified test005.unified test006.unified test007.unified test008.unified test009.unified test010.unified test100.unified test101.unified test102.unified test103.unified
SERIAL_OBJS = test001.serial test002.serial test003.serial test004.serial test005.serial test006.serial test007.serial test008.serial test009.serial test010.serial test100.serial test101.serial test102.serial test103.serial
PVM_OBJS = test001.pvm test002.pvm test003.pvm test004.pvm test005.pvm test006.pvm test007.pvm test008.pvm test009.pvm test010.pvm test100.pvm test101.pvm test102.pvm test103.pvm
MPI_OBJS = test001.mpi test002.mpi test003.mpi test004.mpi test005.mpi test006.mpi test007.mpi test008.mpi test009.mpi test010.mpi test100.mpi test101.mpi test102.mpi test103.mpi


ifdef UNIFIED_ONLY

OBJS = $(UNIFIED_OBJS)

else

ifdef MPI_ONLY

OBJS = $(MPI_OBJS)

else

ifdef PVM_ONLY

OBJS = $(PVM_OBJS)

else

OBJS = $(UNIFIED_OBJS) $(SERIAL_OBJS) $(PVM_OBJS) $(MPI_OBJS)

endif
endif
endif


# $(UNIFIED_OBJS) 

#

.SUFFIXES:
.SUFFIXES: .code .unified .serial .pvm .mpi

.code.unified:
	code -t Unified -c $<
	cd $@ ; make

.code.serial:
	code -t Serial -c $<
	cd $@ ; make

.code.pvm:
	code -t PVM -c $<
	cd $@ ; make

.code.mpi:
	code -t Unified -c $<
	mv $*.unified $*.mpi
	cd $@ ; make MPI=1

#


all:	$(OBJS)


install:


clean:
	rm -rf *.unified *.serial


test:
	runtests




