home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / epmgcc32.zip / gccenv.e < prev    next >
Text File  |  1996-06-21  |  4KB  |  68 lines

  1. /*
  2. ╔══════════════════════════════════════════════════════════════════════════════╗
  3. ║ What's it called: EPMGCC  V3.00                                              ║
  4. ║                                                                              ║
  5. ║ What does it do:  The E source code for the GCC-Interface for EPM.           ║
  6. ║                   This file contains default constants for external commands ║
  7. ║                   and command parameters. It is included in GCC.E.           ║
  8. ║                                                                              ║
  9. ║ Who and When:     B. Bablok 12/93 - 07/96                                    ║
  10. ║                                                                              ║
  11. ╚══════════════════════════════════════════════════════════════════════════════╝
  12. */
  13.  
  14. CONST
  15. /*
  16. ┌──────────────────────────────────────────────────────────────────────────────┐
  17. │  Constants which cannot be changed at runtime.                               │
  18. └──────────────────────────────────────────────────────────────────────────────┘
  19. */
  20.    GCC_MENU_ALWAYS_ON = 1                  -- change to 0
  21. /*
  22. ┌──────────────────────────────────────────────────────────────────────────────┐
  23. │  Constants which can be changed using an external e-macro (see the samples   │
  24. │  and documentation for details).                                             │
  25. │  See the OS2-reference for the meaning of /c, /n and /win.                   │
  26. └──────────────────────────────────────────────────────────────────────────────┘
  27. */
  28.    GCC_EDIT_COMMAND   = 'start /c /win epro'  -- change to 'EDIT' if you don't
  29.                                               -- want to use epro.cmd
  30.  
  31.    GCC_COMP_COMMAND   = 'start /n /win gcc'   -- commands to invoke the compiler,
  32.    GCC_BUILD_COMMAND  = 'start /n /win make'  -- the make utility and
  33.    GCC_DEBUG_COMMAND  = 'start /n /win gdb'   -- your favorite debugger
  34.  
  35.    GCC_PARSER_MODULE  = 'gccparse'            -- module containing error-parser
  36.    GCC_WANT_TRANSLATE = 1                     -- translate \ to / in filenames
  37.  
  38. /*
  39. ┌──────────────────────────────────────────────────────────────────────────────┐
  40. │  Templates for compile/build options. Templates with '_D_' in the name are   │
  41. │  used if debug-mode is turned on, otherwise the '_P_' templates are used.    │
  42. │  Replacement rules (file is either the current file or the makefile):        │
  43. │    %*   fully qualified filename                                             │
  44. │    %**D drive letter and colon                                               │
  45. │    %**P path, including drive and trailing '\'                               │
  46. │    %**F filename, including extension                                        │
  47. │    %**N filename without extension                                           │
  48. │    %**E extension                                                            │
  49. │  These templates can be changed at runtime (using the setup-macros).         │
  50. └──────────────────────────────────────────────────────────────────────────────┘
  51. */
  52.    GCC_D_COMPILE_OPTIONS = '-c -g2 -Wall %*'
  53.    GCC_P_COMPILE_OPTIONS = '-O2 -o %**P%**N.exe %*'
  54.    GCC_D_BUILD_OPTIONS   = '-k -f %* MODE=D'
  55.    GCC_P_BUILD_OPTIONS   = '-k -f %* MODE=P'
  56. /*
  57. ┌──────────────────────────────────────────────────────────────────────────────┐
  58. │  Constants which define the startup values of autosave, debug, verbose,      │
  59. │  auto-err-remove and save-settings mode. These toggles can be changed        │
  60. │  runtime.                                                                    │
  61. └──────────────────────────────────────────────────────────────────────────────┘
  62. */
  63.    GCC_AUTOSAVE_FILE = 1       -- save file / all files before compile or build
  64.    GCC_DEBUG_MODE    = 1       -- use debug-templates for compile / build
  65.    GCC_VERBOSE_MODE  = 0       -- don't show commands in the message area
  66.    GCC_REMOVE_MODE   = 1       -- automatically remove .err files
  67.    GCC_SETTINGS_MODE = 1       -- save settings at exit
  68.