home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 502b.lha / cc / src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-07  |  2.1 KB  |  65 lines

  1. /*
  2.  * configuration file for cc; easily re-configurable stuff goes here.
  3.  * March 1989, Miles Bader
  4.  *
  5.  * Modified 1/29/91 by The Starbound Software Group, Dave Lowrey - programmer. 
  6.  *    Modified to work with SAS/C as well as Lattice/C
  7.  */
  8.  
  9. /*
  10.  * this file contains declarations, so it can only be included in one source file
  11.  */
  12.  
  13. #define MAXPATH 200        /* max length of a path */
  14.  
  15. /* What to call executable if not specified.  If NULL, named after 1st source file */
  16. #define DEFAULT_EXEC "a.out"
  17.  
  18. /* must be a prefix; i.e., needs a slash or a colon on the end */
  19. #define TEMPDIR    "T:"        /* Keep intermediate files in temp directory */
  20. /* #define TEMPDIR "" */    /* Keep intermediate files in current dir */
  21.  
  22. /* The file for filtering compiler pass output.  If NULL, no filtering is done */
  23. #define SINKFILE "T:__cc_sink"
  24.  
  25. #define DEFAULT_DEBUGLEVEL 3    /* default debug level if just -g is given */
  26.  
  27. /* Listf of default options.  Note that not having _EXEC, _COMPILE, _ASSEMBLE,
  28.  * and _LINK set by default would be very wierd
  29.  */
  30. int defaultOptions[]={
  31.     OPT_COMPILE,    /* compile things! */
  32.     OPT_ASSEMBLE,    /* make object files! */
  33.     OPT_EXEC,        /* execute passes! */
  34.     OPT_LINK,        /* link into executable! */
  35.     OPT_FILTER,        /* filter out obnoxious messages */
  36.     OPT_STACKCHECK,    /* enable stack checking */
  37.     0
  38. };
  39.  
  40. /* initial contents of some lists; &insertMark is where additional elements go */
  41. char *libDirsInit[]={"",&insertMark,"lib:",NULL};
  42. char *incDirsInit[]={&insertMark,"include:",NULL};
  43. char **binDirsInit=NULL;
  44. char **definesInit=NULL;
  45. char **undefinesInit=NULL;
  46. char *libsInit[]={&insertMark,"lc","amiga",NULL};
  47.  
  48. /* prefixes that are filtered out of the compiler output stream */
  49. char *filteredPrefixes[]={
  50.     "\n",            /* blank lines */
  51.     "Copyright",        /* copyright noticed */
  52.     "Lattice",            /* lattice advertisements */
  53.     "SAS",                /* SAS advertisements */       /* DWL */
  54.  
  55.     /* lc2 */
  56.     "Module size",
  57.  
  58.     /* blink */
  59.     "Blink - Version",
  60.     "Enter a DEFINE value",     /* input is impossible anyway... */
  61.     "BLINK Complete",
  62.     "Final output file size",
  63.     NULL
  64. };
  65.