ALL: default ##### User configurable options ##### MPIR_HOME = @MPIR_HOME@ CC = @MPICC@ CLINKER = @MPICC@ CCC = @MPICPLUSPLUS@ CCLINKER = $(CCC) F77 = @MPIF77@ FLINKER = @MPIF77@ OPTFLAGS = @OPTFLAGS@ ### End User configurable options ### SHELL = /bin/sh prefix = @prefix@ top_srcdir = @top_srcdir@ srcdir = @srcdir@ @VPATH@ PROFLIB = CFLAGS = @DEFS@ $(OPTFLAGS) CCFLAGS = $(CFLAGS) FFLAGS = $(OPTFLAGS) @FFLAGS@ # Use LIBS to add any special libraries for C programs LIBS = @LIB_PATH@ @LIB_LIST@ # Use FLIBS to add any special libraries for Fortran programs FLIBS = @FLIB_PATH@ @LIB_LIST@ EXECS = timers baseattr errhand sigchk timertest init gtime aborttest testerr \ cmdline errhand2 getproc OTHEREXECS = baseattrf errstringsf getprocf errhandf default: $(EXECS) # # Note that runtests builds the executables as required testing: -./runtests $(TESTARGS) linktest: default clean all: testing init: init.o $(CLINKER) $(OPTFLAGS) -o init init.o $(LIBS) timers: timers.o test.o $(CLINKER) $(OPTFLAGS) -o timers timers.o test.o $(LIBS) timertest: timertest.o test.o $(CLINKER) $(OPTFLAGS) -o timertest timertest.o test.o $(LIBS) baseattr: baseattr.o test.o $(CLINKER) $(OPTFLAGS) -o baseattr baseattr.o test.o $(LIBS) gtime: gtime.o test.o $(CLINKER) $(OPTFLAGS) -o ./gtime gtime.o test.o $(LIBS) -lm baseattrf: baseattrf.o $(FLINKER) $(OPTFLAGS) -o baseattrf baseattrf.o $(LIBS) getprocf: getprocf.o $(FLINKER) $(OPTFLAGS) -o getprocf getprocf.o $(LIBS) errhandf: errhandf.o $(FLINKER) $(OPTFLAGS) -o errhandf errhandf.o $(LIBS) errstringsf: errstringsf.o $(FLINKER) $(OPTFLAGS) -o errstringsf errstringsf.o $(LIBS) errhand: errhand.o test.o $(CLINKER) $(OPTFLAGS) -o errhand errhand.o test.o $(LIBS) sigchk: sigchk.o test.o $(CLINKER) $(OPTFLAGS) -o sigchk sigchk.o test.o $(LIBS) aborttest: aborttest.o $(CLINKER) $(OPTFLAGS) -o aborttest aborttest.o $(LIBS) testerr: testerr.o $(CLINKER) $(OPTFLAGS) -o testerr testerr.o $(LIBS) getproc: getproc.o $(CLINKER) $(OPTFLAGS) -o getproc getproc.o $(LIBS) clean: @-rm -f *.o *~ PI* $(EXECS) core *.out *.orig env.diff \ argstest $(OTHEREXECS) mpif.h ${srcdir}/*.o *.stdo @-rm -f work.pc work.pcl .c: $(CC) $(CFLAGS) -c $< $(CLINKER) $(OPTFLAGS) -o $* $*.o $(LIBS) .c.o: $(CC) $(CFLAGS) -c $< .f.o: $(F77) $(FFLAGS) -c $<