home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff297.lzh / DevKit / Examples / AutoCommands < prev    next >
Text File  |  1989-12-29  |  2KB  |  43 lines

  1. The following are some examples of the kinds of "Auto:" commands that are
  2. likely to be useful when using Aztec C.  Remember that any DOS command is
  3. acceptable as an "Auto:" command, provided you give its full path or
  4. provided it is in the current directory (COMP:) or the C: directory.
  5.  
  6. Note that the programs found in the Sources directory of the DevKit contain
  7. "Auto:" commands that allow them to be compiled by Aztec C.  You may wish
  8. to refer to these actual examples.
  9.  
  10.  
  11. 1.  Regular Compilation (errors sent to file AztecC.err):
  12.         Auto: cc -q <path><file>
  13.         Auto: ln <path><file>.o -lc -o <path><file>
  14.  
  15. 2.  As #1, but with .o file sent to RAM: disk:
  16.         Auto: cc -q -o RAM:<file>.o <path><file>
  17.         Auto: ln RAM:<file>.o -lc -o <path><file>
  18.  
  19. 3.    As #2, but using precompiled headers (RAM:Includes.pre)
  20.         Auto: cc -q +IRAM:Includes.pre -o RAM:<file>.o <path><file>
  21.         Auto: ln RAM:<file>.o -lc -o <path><file>
  22.  
  23. 4.    As #2, but include source debugging information.
  24.         Auto: cc -q -n -o RAM:<file>.o <path><file>
  25.         Auto: ln RAM:<file>.o -lc -g -o <path><file>
  26.  
  27. 5.    As #2, but link with MeToo.o (to be found in same directory).
  28.         Auto: cc -q -o RAM:<file>.o <path><file>
  29.         Auto: ln RAM:<file>.o <path>MeToo.o -lc -o <path><file>
  30.  
  31. 6.    As #2, but assign "src:" to the current path, so we can #include
  32.     a header located in the same directory.
  33.         Auto: assign src: <path>
  34.         Auto: cc -q -o RAM:<file>.o <path><file>
  35.         Auto: ln RAM:<file>.o -lc -o <path><file>
  36.         ...
  37.         #include "src:MyIncludes.h"
  38.  
  39. 7.    If you own and use make, then the compiler options will be in
  40.     a makefile (say you place the makefile in the same directory as your
  41.     source).  The "Auto:" command would then be:
  42.         Auto: make -f <path>makefile <path><file>
  43.