anchor.diff:         "           EXE_CFLAGS  - flags that will be used for compiling~n"
          "           EXE_LDFLAGS - flags that will be used for linking~n"
          "           ERL_EI_LIBDIR - ei library directory~n"
  -       "           DRV_CXX_TEMPLATE  - C++ command template~n"
  -       "           DRV_CC_TEMPLATE   - C command template~n"
  -       "           DRV_LINK_TEMPLATE - Linker command template~n"
  -       "           EXE_CXX_TEMPLATE  - C++ command template~n"
  -       "           EXE_CC_TEMPLATE   - C command template~n"
  -       "           EXE_LINK_TEMPLATE - Linker command template~n"
  +       "           DRV_CXX_TEMPLATE      - C++ command template~n"
  +       "           DRV_CC_TEMPLATE       - C command template~n"
  +       "           DRV_LINK_TEMPLATE     - C Linker command template~n"
  +       "           DRV_LINK_CXX_TEMPLATE - C++ Linker command template~n"
  +       "           EXE_CXX_TEMPLATE      - C++ command template~n"
  +       "           EXE_CC_TEMPLATE       - C command template~n"
  +       "           EXE_LINK_TEMPLATE     - C Linker command template~n"
  +       "           EXE_LINK_CXX_TEMPLATE - C++ Linker command template~n"
          "~n"
          "           Note that if you wish to extend (vs. replace) these variables,~n"
          "           you MUST include a shell-style reference in your definition.~n"
  
positive.code: select_compile_exe_template("$CC")  -> "EXE_CC_TEMPLATE";
  select_compile_exe_template("$CXX") -> "EXE_CXX_TEMPLATE".
  
  select_link_template(Target) ->
      case target_type(Target) of
          drv -> "DRV_LINK_TEMPLATE";
          exe -> "EXE_LINK_TEMPLATE"
      end.
  
  target_type(Target) -> target_type1(filename:extension(Target)).
  
negative.code:       "$CC -c $CFLAGS $DRV_CFLAGS $PORT_IN_FILES -o $PORT_OUT_FILE"},
       {"DRV_LINK_TEMPLATE",
        "$CC $PORT_IN_FILES $LDFLAGS $DRV_LDFLAGS -o $PORT_OUT_FILE"},
       {"DRV_LINK_CXX_TEMPLATE",
        "$CXX $PORT_IN_FILES $LDFLAGS $DRV_LDFLAGS -o $PORT_OUT_FILE"},
       {"EXE_CXX_TEMPLATE",
        "$CXX -c $CXXFLAGS $EXE_CFLAGS $PORT_IN_FILES -o $PORT_OUT_FILE"},
       {"EXE_CC_TEMPLATE",
        "$CC -c $CFLAGS $EXE_CFLAGS $PORT_IN_FILES -o $PORT_OUT_FILE"},
       {"EXE_LINK_TEMPLATE",
        "$CC $PORT_IN_FILES $LDFLAGS $EXE_LDFLAGS -o $PORT_OUT_FILE"},
       {"EXE_LINK_CXX_TEMPLATE",
        "$CXX $PORT_IN_FILES $LDFLAGS $EXE_LDFLAGS -o $PORT_OUT_FILE"},
       {"DRV_CFLAGS" , "-g -Wall -fPIC -MMD $ERL_CFLAGS"},
       {"DRV_LDFLAGS", "-shared $ERL_LDFLAGS"},
       {"EXE_CFLAGS" , "-g -Wall -fPIC -MMD $ERL_CFLAGS"},
  