# Generated automatically from Mfile.in by configure.
ALL: default

# This is a special Makefile.in source for use by the test suite (see the
# configure in examples/test)
##### User configurable options #####

MPIR_HOME    = 
CC           = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/bin/mpicc
CLINKER      = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/bin/mpicc
CCC          = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/bin/mpiCC
CCLINKER     = $(CCC)
F77          = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/bin/mpif77
F90BASE	     = @MPIF90BASE@
F90          = @MPIF90@
FLINKER      = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/bin/mpif77
OPTFLAGS     = 
MPIFDEP      = 
### End User configurable options ###

SHELL = /bin/sh
prefix     = 
top_srcdir = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/examples/test
srcdir     = /builddir/build/BUILD/mvapich-1.2rc1/non-psm/examples/test/io
VPATH=.:$(srcdir)

PROFLIB =
CFLAGS  =  -fPIC -DMPID_NO_FORTRAN -DMPID_NO_FORTRAN -D_X86_64_ -O3 -fno-strict-aliasing -g -D_GNU_SOURCE -DCH_GEN2 -D_AFFINITY_ -DMEMORY_SCALE -D_SMP_ -D_SMP_RNDV_ -DVIADEV_RPUT_SUPPORT -DEARLY_SEND_COMPLETION -DHAVE_MPICHCONF_H  -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_LONG_LONG_INT=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1 $(OPTFLAGS) 
CCFLAGS = $(CFLAGS)
FFLAGS = $(OPTFLAGS)   
# Use LIBS to add any special libraries for C programs
LIBS =  
# Use FLIBS to add any special libraries for Fortran programs
FLIBS =   
EXECS = $(CTESTS) $(FTESTS)
OTHEREXECS = 
CTESTS = simple perf async coll_test coll_perf misc file_info excl \
       large_array \
     atomicity noncontig i_noncontig noncontig_coll split_coll shared_fp \
     large_file psimple error status noncontig_coll2
FTESTS = fcoll_test fperf fmisc pfcoll_test 

default: $(EXECS)

#
# Note that runtests builds the executables as required
testing: 
	  -./runtests $(TESTARGS)

all: testing

fortran_tests: $(FTESTS)
#
# The Fortran tests must be built with the Fortran linker
fperf: fperf.f
	$(F77) $(USER_FFLAGS) -o  $@ $< $(FLIBS)

# Some of the Fortran tests must be derived, so their code will be in the
# LOCAL directory
fcoll_test: fcoll_test.f
	$(F77) $(USER_FFLAGS) -o  fcoll_test fcoll_test.f $(FLIBS)

fmisc: fmisc.f
	$(F77) $(USER_FFLAGS) -o  fmisc fmisc.f $(FLIBS)

pfcoll_test: pfcoll_test.f	
	$(F77) $(USER_FFLAGS) -o  pfcoll_test pfcoll_test.f $(FLIBS)

#
# Make sure that we remove executables for specific architectures
clean:
	@-/bin/rm -f *.o *~ PI* $(EXECS) *.out core pt2pt.diff $(OTHEREXECS) \
		*.trace rdb.* startup.* mpif.h ${srcdir}/*.o *.stdo
	@-rm -f work.pc work.pcl
	@-for file in $(EXECS) Makefile ; do \
	   /bin/rm -f $$file.sun4 $$file.alpha $$file.IRIX $$file.freebsd ;\
	done
.c:
	$(CC) $(CFLAGS) -o $* $< $(LIBS)
.c.o:
	$(CC) $(CFLAGS) -c $<
.o:
	${CLINKER} $(OPTFLAGS) -o $* $*.o $(LIBS)
.f.o:
	$(F77) $(FFLAGS) -c $<
