home *** CD-ROM | disk | FTP | other *** search
- FORTRAN = f77
- OPTS =
- LOADER = f77
- LOADOPTS =
- BLAS =
-
- #######################################################################
- # This makefile creates the test programs for the BLAS 2 routines.
- # The test files are grouped as follows:
- # ABLAT2 -- Test routines called from more than one program
- # SBLAT2 -- Single precision real test routines
- # CBLAT2 -- Single precision complex test routines
- # DBLAT2 -- Double precision real test routines
- # ZBLAT2 -- Double precision complex test routines
- #
- # Test programs can be generated for all or some of the four different
- # precisions. First, modify the FORTRAN and OPTS definitions to refer
- # to the compiler and desired compiler options for your machine, and
- # define LOADER and LOADOPTS to refer to the loader and desired load
- # options for your machine. Also replace the definition for BLAS with
- # the name of the BLAS library on your system.
- # Then to create the test programs, enter make followed by one or more
- # of the precisions desired. Some examples:
- # make single
- # make single complex
- # make single double complex complex16
- # Alternatively, the command
- # make
- # without any arguments creates all four test programs.
- # The executable files which are created are called
- # xblat2s, xblat2d, xblat2c, and xblat2z
- #
- # To remove the object files after the executable files have been
- # created, enter
- # make clean
- # To force the source files to be recompiled, enter, for example,
- # make single FRC=FRC
- #
- #---------------------------------------------------------------------
- #
- # Edward Anderson
- # Math and Computer Science Division
- # Argonne National Laboratory
- # 9700 S. Cass Ave.
- # Argonne, IL 60439
- # (312) 972-6646
- #
- #######################################################################
-
- ABLAT2 = lsame.o
-
- SBLAT2 = sblat2.o
-
- CBLAT2 = cblat2.o
-
- DBLAT2 = dblat2.o
-
- ZBLAT2 = zblat2.o
-
- all: single double complex complex16
-
- single: xblat2s
- double: xblat2d
- complex: xblat2c
- complex16: xblat2z
-
- xblat2s: $(ABLAT2) $(SBLAT2) $(BLAS)
- $(LOADER) $(LOADOPTS) $(ABLAT2) $(SBLAT2) \
- $(BLAS) -o xblat2s
-
- xblat2c: $(ABLAT2) $(CBLAT2) $(BLAS)
- $(LOADER) $(LOADOPTS) $(ABLAT2) $(CBLAT2) \
- $(BLAS) -o xblat2c
-
- xblat2d: $(ABLAT2) $(DBLAT2) $(BLAS)
- $(LOADER) $(LOADOPTS) $(ABLAT2) $(DBLAT2) \
- $(BLAS) -o xblat2d
-
- xblat2z: $(ABLAT2) $(ZBLAT2) $(BLAS)
- $(LOADER) $(LOADOPTS) $(ABLAT2) $(ZBLAT2) \
- $(BLAS) -o xblat2z
-
- $(ABLAT2): $(FRC)
- $(SBLAT2): $(FRC)
- $(CBLAT2): $(FRC)
- $(DBLAT2): $(FRC)
- $(ZBLAT2): $(FRC)
-
- FRC:
- @FRC=$(FRC)
-
- clean:
- rm -f *.o
-
- .f.o:
- $(FORTRAN) $(OPTS) $*.f
-