!include <..\..\make.inc>
 
#######################################################################
#
#  Sample Windows NT makefile (Watcom Fortran 77)
#
#  This makefile creates the test programs for the BLAS 3 routines.
#  The test files are grouped as follows:
#       SBLAT3 -- Single precision real test routines
#       CBLAT3 -- Single precision complex test routines
#       DBLAT3 -- Double precision real test routines
#       ZBLAT3 -- Double precision complex test routines
#
#  Test programs can be generated for all or some of the four different
#  precisions.  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
#     ../xblat3s.exe, ../xblat3d.exe, ../xblat3c.exe, and ../xblat3z.exe
#
#  To remove the object files after the executable files have been
#  created, enter
#       make clean
#
#######################################################################

.SUFFIXES: .f .obj .exe .lib

SBLAT3 = sblat3.obj

CBLAT3 = cblat3.obj 

DBLAT3 = dblat3.obj 

ZBLAT3 = zblat3.obj

all:  single double complex complex16

single: ..\xblat3s.exe
double: ..\xblat3d.exe
complex: ..\xblat3c.exe
complex16: ..\xblat3z.exe

..\xblat3s.exe: $(SBLAT3)
	$(LOADER) NAME $@ FILE $(SBLAT3) LIBRARY $(BLASLIB)

..\xblat3c.exe: $(CBLAT3) 
	$(LOADER) NAME $@ FILE $(CBLAT3) LIBRARY $(BLASLIB)
 
..\xblat3d.exe: $(DBLAT3) 
	$(LOADER) NAME $@ FILE $(DBLAT3) LIBRARY $(BLASLIB)
 
..\xblat3z.exe: $(ZBLAT3) 
	$(LOADER) NAME $@ FILE $(ZBLAT3) LIBRARY $(BLASLIB)
 
clean:
	del *.obj
 
.f.obj: 
	$(FORTRAN) $(OPTS) -FO= $*.f
