/* The compilers expect the following macros to have been defined */ /* OPT and DEBUG */ /* determine the host and compiler to be used for the build */ #if [ matches sun%1 [os machine] ] /* Sun machine? */ #if [ matches f77 [getenv WEPS_COMPILER] ] /* f77 compiler? */ FC = f77; #include "cookbook/cook.f90" #elif [ matches g77 [getenv WEPS_COMPILER] ] /* g77 compiler? */ FC = g77; #include "cookbook/cook.f90" #elif [ matches f90 [getenv WEPS_COMPILER] ] /* f90 compiler? */ FC = f90; #include "cookbook/cook.f90" /***** included to test Watcom cookbooks under Unix *****/ #elif [ matches wfc386 [getenv WEPS_COMPILER] ] FC = wfc386; /* set FC to wfc386 */ #include "cookbook/cook.wat" /***** included to test Watcom cookbooks under Unix *****/ #else /* default to f90 */ #include "cookbook/cook.f90" #endif #else /* assume a PC */ #if [ matches g77 [getenv WEPS_COMPILER] ] /* g77 compiler? */ FC = g77; #include "cookbook/cook.f90" #elif [ matches wfc386 [getenv WEPS_COMPILER] ] FC = wfc386; /* set FC to wfc386 */ #include "cookbook/cook.wat" /* set to Watcom */ #else FC = lf95; /* set FC to lf95 */ #include "cookbook/cook.l95" /* default to Lahey */ #endif #endif