 +      CHARACTER(LEN=1),PARAMETER::SLASH = '/' !Linux, Unix
  
        END MODULE CRSIMDEF
+diff --git a/INVAR.for b/INVAR.for
+index f23d69b..453ccc5 100644
+--- a/INVAR.for
++++ b/INVAR.for
+@@ -35,7 +35,7 @@ C=======================================================================
+ 
+       IMPLICIT     NONE
+ 
+-      INCLUDE     'COMGEN.BLK'
++      INCLUDE     'COMGEN.blk'
+ 
+       CHARACTER*1  LINE(80),ANS,RNMODE,BLANK,UPCASE
+       CHARACTER*6  GNAME(18),VARTY,ECONO
+@@ -252,7 +252,7 @@ C=======================================================================
+ 
+       IMPLICIT  NONE
+ 
+-      INCLUDE  'COMGEN.BLK'
++      INCLUDE  'COMGEN.blk'
+ 
+       INTEGER     IERR,IPARAM,NDEX
+       CHARACTER*2 CROP
+@@ -962,7 +962,7 @@ C=======================================================================
+ 
+       IMPLICIT NONE
+ 
+-      INCLUDE 'COMGEN.BLK'
++      INCLUDE 'COMGEN.blk'
+ 
+       INTEGER  IERR,IPARAM,NDEX,L
+ C
+diff --git a/IPSIM.for b/IPSIM.for
+index fa52a00..b897c88 100644
+--- a/IPSIM.for
++++ b/IPSIM.for
+@@ -48,7 +48,7 @@ C=======================================================================
+       IMPLICIT NONE
+       SAVE
+ 
+-      INCLUDE 'COMSWI.BLK'
++      INCLUDE 'COMSWI.blk'
+ 
+       CHARACTER*1   UPCASE,ISIMI, RNMODE
+       CHARACTER*2   CROP
+@@ -688,8 +688,8 @@ C-----------------------------------------------------------------------
+      &      CONTROL, ISWITCH, FROP, MODEL, NYRS, RNMODE)
+       USE ModuleDefs 
+       USE ModuleData
+-      INCLUDE 'COMSWI.BLK'
+-      INCLUDE 'COMIBS.BLK'
++      INCLUDE 'COMSWI.blk'
++      INCLUDE 'COMIBS.blk'
+ 
+       CHARACTER*1 RNMODE
+       CHARACTER*8 MODEL
+diff --git a/IPSOIL_Inp.for b/IPSOIL_Inp.for
+index 6698199..cb67b9d 100644
+--- a/IPSOIL_Inp.for
++++ b/IPSOIL_Inp.for
+@@ -37,7 +37,7 @@ C=======================================================================
+       USE ModuleDefs
+       IMPLICIT NONE
+ 
+-      INCLUDE 'COMSOI.BLK'
++      INCLUDE 'COMSOI.blk'
+ 
+       CHARACTER*1   LINE(80),RNMODE,BLANK,ANS,UPCASE
+       CHARACTER*5   MH(NL)
+diff --git a/IPVAR.for b/IPVAR.for
+index ac481d8..b690918 100644
+--- a/IPVAR.for
++++ b/IPVAR.for
+@@ -43,7 +43,7 @@ C=======================================================================
+ 
+       IMPLICIT NONE
+ 
+-      INCLUDE 'COMGEN.BLK'
++      INCLUDE 'COMGEN.blk'
+ 
+       CHARACTER*1   LINE(80),RNMODE,BLANK,ANS
+       CHARACTER*2   CROP
+diff --git a/Makefile b/Makefile
+new file mode 100644
+index 0000000..0cf406b
+--- /dev/null
++++ b/Makefile
+@@ -0,0 +1,44 @@
++FC = ifort
++FFLAGS =  -nowarn -g -std95 -fixed -traceback
++TARGET = DSCSM046.EXE
++
++OBJECTS = $(patsubst %.f90, %.o, $(wildcard *.f90)) $(patsubst %.for, %.o, $(wildcard *.for))
++
++all: modules dirs $(TARGET)
++
++$(TARGET): $(OBJECTS)
++	$(FC) -o $@ SALUS/*.o ttutil/*.o ORYZA/*.o OP_OBS/*.o $^ $(FFLAGS)
++
++%.o: %.f90 $(MODULES)
++	$(FC) -c $(FFLAGS) $^ -o $@
++
++%.o: %.F90 $(MODULES)
++	$(FC) -c $(FFLAGS) $^ -o $@
++
++%.o: %.for $(MODULES)
++	$(FC) -c $(FFLAGS) $^ -o $@
++
++%.o: %.FOR $(MODULES)
++	$(FC) -c $(FFLAGS) $^ -o $@
++
++dirs:
++	cd SALUS; make
++	cd ttutil; make
++	cd ORYZA; make
++	cd OP_OBS; make
++
++clean:
++	$(RM) $(TARGET) $(OBJECTS) *.mod
++	cd SALUS; make clean
++	cd ttutil; make clean
++	cd ORYZA; make clean
++	cd OP_OBS; make clean
++
++modules:
++	ifort -fixed -c ModuleDefs.for
++	ifort -fixed -c OPHEAD.for
++	ifort -fixed -c SoilMixing.for
++	ifort -fixed -c SLigCeres.for
++	ifort -fixed -c OPSUM.for
++	ifort -fixed -c SC_CNG_mods.for
++	ifort -fixed -c IPSOIL.for
 diff --git a/ModuleDefs.for b/ModuleDefs.for
-index 9c7d1c1..c588d57 100644
+index 16c5720..fac45fb 100644
 --- a/ModuleDefs.for
 +++ b/ModuleDefs.for
 @@ -40,8 +40,8 @@ C             CHP Added TRTNUM to CONTROL variable.

 
 !=======================================================================
 !     Compiler directives used to set library for system calls
-- 
1.8.4


From f8d6754f575e88b21c513d93492934dc8d1042ba Mon Sep 17 00:00:00 2001
From: David Kelly <davidkelly999@gmail.com>
Date: Wed, 29 Apr 2015 15:36:05 -0500
Subject: [PATCH 1/1] Capitalization fixes

---
 CRSIMDEF.for    |  4 ++--
 INVAR.for       |  6 +++---
 IPSIM.for       |  6 +++---
 IPSOIL_Inp.for  |  2 +-
 IPVAR.for       |  2 +-
 Makefile        | 44 ++++++++++++++++++++++++++++++++++++++++++++
 ModuleDefs.for  |  4 ++--
 OPGEN.for       |  4 ++--
 OPHEAD.for      | 12 ++++++------
 OPTEMPXY2K.for  |  8 ++++----
 OP_OBS/Makefile | 11 +++++++++++
 ORYZA/Makefile  | 21 +++++++++++++++++++++
 SALUS/Makefile  | 12 ++++++++++++
 SENS.for        |  6 +++---
 input_sub.for   |  6 +++---
 ipexp.for       |  4 ++--
 optempy2k.for   |  8 ++++----
 ttutil/Makefile | 23 +++++++++++++++++++++++
 18 files changed, 147 insertions(+), 36 deletions(-)
 create mode 100644 Makefile
 create mode 100644 OP_OBS/Makefile
 create mode 100644 ORYZA/Makefile
 create mode 100644 SALUS/Makefile
 create mode 100644 ttutil/Makefile

diff --git a/CRSIMDEF.for b/CRSIMDEF.for
index f2e5a56..d887d5e 100644
--- a/CRSIMDEF.for
+++ b/CRSIMDEF.for
@@ -7,7 +7,7 @@
 
       SAVE
