########################################################################
#                                                                      #
# This Makefile generates a test driver for SKYPACK.                   #
#                                                                      #
# 1. The user must define the adequate driver model and path to the    #
#    package in the macros DRIVER and SKYPACK. As defined below,       #
#    libskypack.a is assumed to be in ../lib/.                         #
# 2. The user must comment/uncomment/change the Fortran compiler and   #
#    its options and the BLAS kernels library (macros F77 and BLAS).   #
#    If SKYPACK has been generated including the BLAS kernels, the     #
#    corresponding macro should be left blank.                         #
# 3. The executable is labelled `driver'.                              #
#                                                                      #
########################################################################

####### set the driver model, solver and path to SKYPACK ###############

DRIVER  = driver_dp.f
SKYFMT  = skyfmt_dp.f
SKYPACK = -L../lib -lskypack

####### set Fortran options and BLAS library ###########################

####### AIX      (IBM Risc 6000 workstation) ###########################
#F77     = xlf -O
#BLAS    = -lblas
####### ConvexOS (Convex C220 computer) ################################
#F77     = fc -O3
#BLAS    = -lveclib
####### HP-UX    (HP workstation) ######################################
#F77     = fort77 +O4 +U77
#BLAS    = 
####### IRIX     (SGI workstation) #####################################
#F77     = f77 -O2
#BLAS    = 
####### SunOS    (Sun Sparc workstation) ###############################
F77     = f77 -O3
BLAS    = -lblas
####### Unicos   (CRAY C90 computer) ###################################
#F77     = cf77 -Zp -Wf"-o inline -A fast"
#BLAS    = 
########################################################################

####### generate the test driver #######################################

driver_model:
	$(F77) $(SKYFMT) -o skypack.skyfmt $(SKYPACK) $(BLAS)
	$(F77) $(DRIVER) -o skypack.driver $(SKYPACK) $(BLAS)

####### cleaunp ########################################################

clean:
	@ rm -f *.bin *.o *.out skyfmt driver

# end of Makefile ######################################################
