<p><b>laura@ucar.edu</b> 2012-05-03 11:26:15 -0600 (Thu, 03 May 2012)</p><p>Added the option PHYSICS=-DDO_PHYSICS_GFS to compile and link the GFS physics package in ./src/core_atmos_physics_gfs. As before, PHYSICS=-DDO_PHYSICS is used to compile and link MPAS with ./src/core_atmos_physics. PHYSICS= is used to compile and link MPAS without any physics.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/atmos_physics_gfs/src/core_nhyd_atmos/Makefile
===================================================================
--- branches/atmos_physics_gfs/src/core_nhyd_atmos/Makefile        2012-05-02 17:45:03 UTC (rev 1862)
+++ branches/atmos_physics_gfs/src/core_nhyd_atmos/Makefile        2012-05-03 17:26:15 UTC (rev 1863)
@@ -1,6 +1,7 @@
 .SUFFIXES: .F .o
 
-PHYSICS=-DDO_PHYSICS
+#PHYSICS=-DDO_PHYSICS
+PHYSICS=-DDO_PHYSICS_GFS
 #PHYSICS=
 
 OBJS = mpas_atm_mpas_core.o \
@@ -8,13 +9,22 @@
        mpas_atm_time_integration.o \
        mpas_atm_advection.o
 
+ifeq ($(PHYSICS),-DDO_PHYSICS)
+        dir_physics = core_atmos_physics
+        dir_physics_src = $(dir_physics)/physics_wrf
+endif
+ifeq ($(PHYSICS),-DDO_PHYSICS_GFS)
+        dir_physics = core_atmos_physics_gfs
+        dir_physics_src = $(dir_physics)/physics_gfs
+endif
+
 all: physcore core_hyd
 
 physcore:
-        ( cd ../core_atmos_physics; make all )
-        ( mkdir phys; cd phys; ar -x ../../core_atmos_physics/libphys.a )
-        ( cd ../..; ln -sf ./src/core_atmos_physics/physics_wrf/files/*TBL .)
-        ( cd ../..; ln -sf ./src/core_atmos_physics/physics_wrf/files/*DBL .)
+        ( cd ../$(dir_physics); make all )
+        ( mkdir phys; cd phys; ar -x ../../$(dir_physics)/libphys.a )
+        ( cd ../..; ln -sf ./src/$(dir_physics_src)/files/*TBL .)
+        ( cd ../..; ln -sf ./src/$(dir_physics_src)/files/*DBL .)
 
 core_hyd: $(OBJS)
         ar -ru libdycore.a $(OBJS) phys/*.o
@@ -28,7 +38,7 @@
 mpas_atm_mpas_core.o: mpas_atm_advection.o mpas_atm_test_cases.o mpas_atm_time_integration.o
 
 clean:
-        ( cd ../core_atmos_physics; make clean )
+        ( cd ../$(dir_physics); make clean )
         ( cd ../..; rm -f *TBL )
         ( cd ../..; rm -f *DBL )
         $(RM) -r phys
@@ -37,4 +47,5 @@
 .F.o:
         $(RM) $@ $*.mod
         $(CPP) $(CPPFLAGS) $(PHYSICS) $(CPPINCLUDES) $&lt; &gt; $*.f90
-        $(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I../framework -I../operators -I../core_atmos_physics -I../core_atmos_physics/physics_wrf -I../external/esmf_time_f90
+        $(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES) -I../framework -I../operators -I../$(dir_physics) -I../$(dir_physics_src) -I../external/esmf_time_f90
+

</font>
</pre>