# Makefile for winselection to use with NMAKE
# -  Microsoft (R) Fortran PowerStation  Version 4.00 
# -  Compaq Visual Fortran Optimizing Compiler Version 6.5
#

#  name of current fortran  compiler
FC = FL32

# name of the compiler dependent directory
# Windows
CDD = ..\Dep_W

# compiler flag(s) 
FFLAGS = /Ox /G5 

# erase file command
# see also below "clean" for Windows Me 
RM = del


##############################################################
##############################################################

# include directories 
#INCL = /I..\Inc

HEADERS = .\codeco_common.f 

TARGET = ..\winselection.exe

SRC = winselect_5.f\
      ckesfi.f\
      codecoutil.f\
      compdecomp.f\
      gcmlnw.f\
      glun.f\
      gsein.f\
      init_hdrvars.f\
      reader_cs.f\
      reader_gse.f\
      readerthw.f\
      reader_saf.f\
      rsaf.f\
      split3.f\
      $(CDD)\guw8.f\
      $(CDD)\intand.f

OBJ = $(SRC:.f=.obj)


.f.obj:
	$(FC) $(FFLAGS) $(INCL) /c $< /Fo$@


$(TARGET): $(OBJ)
	$(FC) /Fe$(TARGET) $(OBJ)


$(OBJ): $(HEADERS)


clean:
	$(RM) $(OBJ)


# Windows Me
#clean:
#	$(RM) $(CDD)\*.obj
#	$(RM) *.obj