# Makefile to compile example programs on generic Unix machines, # where the Fortran 90 compiler is 'f90' .IGNORE: SHELL = /bin/csh F90 = f90 F90FLAGS = -O F90CFLAGS = -c F90LFLAGS = F90_COMPILE = $(F90) $(F90FLAGS) $(F90CFLAGS) F90_LOAD = $(F90) $(F90FLAGS) $(F90LFLAGS) .IGNORE: .SUFFIXES: .SUFFIXES: .f90 .o .mod .f90.o: $(F90_COMPILE) $*.f90 .f90.mod: $(F90_COMPILE) $*.f90 EXECUTABLES = test90 diehard_data diehard_multi_data all: $(EXECUTABLES) test90: test90.o globals.o random_pl.o $(F90_LOAD) test90.o globals.o random_pl.o -o test90 diehard_data: diehard_data.o globals.o random_pl.o $(F90_LOAD) diehard_data.o globals.o random_pl.o -o diehard_data diehard_multi_data: diehard_multi_data.o globals.o random_pl.o $(F90_LOAD) diehard_multi_data.o globals.o random_pl.o -o diehard_multi_data random_pl.o: globals.mod test90.o: globals.mod random_pl.mod diehard_data.o: globals.mod random_pl.mod clean: rm -f *.o *.mod *.d *.il $(EXECUTABLES)