/* 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 f90 [getenv WEPS_COMPILER] ] /* f90 compiler? */ FC = f90; #elif [ matches f95 [getenv WEPS_COMPILER] ] /* f95 compiler? */ FC = f95; #include "cookbook/cook.f95" #else /* default to f95 */ #include "cookbook/cook.f95" #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