home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 240.lha / CC / sources / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-07  |  1.9 KB  |  61 lines

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