
########################################################################
#                                                                      #
#                    Makefile for GQRAT                                #
#                                                                      #
#  Usage:                                                              #
#                                                                      #
#  Type  make                  to compile and run all test programs    #
#  Type  make resN             to compile and run the test program     #
#                              number N                                #
#  Type  make clean            to remove all but the generated output  #
#                                                                      #
########################################################################

#----------------------------------------------------------------------
# This section specifies the name of the linker and compilation options
# for various systems. All but one are commented out.
#----------------------------------------------------------------------

# ... For the Sun
LD = f77
FFLAGS = 

# ... For the Cray
#LD = cf77
#FFLAGS =

# ... For the Convex
#LD = fc
#FFLAGS = -O2

# ... For the RS/6000
#LD = xlf
#FFLAGS = -O

# ... For the HP 9000 series
#LD = f77
#FFLAGS = -O -K -w

# ... For Silicon Graphics
#LD = f77
#FFLAGS = -O2

#-------------------------------------------------------------------
# This section specifies which object files are needed for each test
# program.
#-------------------------------------------------------------------

TEST1 = driver1.o d1mach.o src.f
TEST2 = driver2.o d1mach.o src.f
TEST3 = driver3.o d1mach.o src.f
TEST5 = driver5.o d1mach.o src.f
TEST6 = driver6.o d1mach.o src.f
TEST7 = driver7.o d1mach.o src.f

#--------------------------------------------------------------
# This is the default target. It will cause all the tests to be
# generated and run, saving their outputs in files.
#--------------------------------------------------------------

all : res1 res2 res3 res5 res6 res7

#----------------------------------------------------------------------
# This section shows how to run each test program. The output for driverN
# is put in  resN.
#----------------------------------------------------------------------

res1  : test1  ; test1  > $@
res2  : test2  ; test2  > $@
res3  : test3  ; test3  > $@
res5  : test5  ; test5  > $@
res6  : test6  ; test6  > $@
res7  : test7  ; test7  > $@

#--------------------------------------------------
# This section shows how to link each test program.
#--------------------------------------------------

test1  : $(TEST1)  ; $(LD) -o $@ $(TEST1)
test2  : $(TEST2)  ; $(LD) -o $@ $(TEST2)
test3  : $(TEST3)  ; $(LD) -o $@ $(TEST3)
test5  : $(TEST5)  ; $(LD) -o $@ $(TEST5)
test6  : $(TEST6)  ; $(LD) -o $@ $(TEST6)
test7  : $(TEST7)  ; $(LD) -o $@ $(TEST7)

#----------------------------------------------
# This section shows how to clean up afterward.
#----------------------------------------------

clean :
	rm -f core test1 test2 test3 test5 test6 test7 

