# Generated automatically from Makefile.in by configure.
ALL: default
##### User configurable options #####

MPIR_HOME   = /usr
CC          = /usr/lib/LINUX/ch_p4/mpicc
CLINKER     = /usr/lib/LINUX/ch_p4/mpicc
CCC         = /usr/lib/LINUX/ch_p4/mpiCC
CCLINKER    = $(CCC)
F77         = /usr/lib/LINUX/ch_p4/mpif77
FLINKER     = /usr/lib/LINUX/ch_p4/mpif77
OPTFLAGS    = -O

### End User configurable options ###

SHELL = /bin/sh

PROFLIB =
CFLAGS  =  -DHAVE_PROTOTYPES  -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DUSE_STDARG $(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 = timers baseattr errhand sigchk timertest init gtime aborttest
OTHEREXECS = baseattrf errstringsf
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)
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)
clean:
	@-/bin/rm -f *.o *~ PI* $(EXECS) core *.out *.orig env.diff \
	argstest $(OTHEREXECS)

.c.o:
	$(CC) $(CFLAGS) -c $*.c
.f.o:
	$(F77) $(FFLAGS) -c $*.f
