home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / suplib.lzh / SUPLIB / SRC / DMAKEFILE.AZTEC < prev    next >
Text File  |  1991-08-16  |  1KB  |  42 lines

  1.  
  2. #   DMakefile    for sup32.lib        LATTICE C V5.02
  3. #
  4. #   The suplib (sup32.lib) contains many useful functions including many that
  5. #   are available in the dres.library (the commonlib stuff).  All routines
  6. #   expect integers to be 32 bits in size.
  7. #
  8. #   The RLIB C/Asm flag is not set so all routines in the commonlib will
  9. #   be compiled/assembled for being called from C
  10.  
  11. #   NOTE1!  -rrb does not work.  Thus I use -rr
  12. #   NOTE2!  -A4 relative used (is the default for V5.02).  Note that small and
  13. #         large data models appear to not be mixable due to a problem
  14. #         referencing IntuitionBase.
  15.  
  16. SYMS=    aztec_include:symbols.m
  17. SYMR=    T:aztec_symbols.m
  18.  
  19. DEST   = aztec:lib/sup32.lib
  20. CFLAGS = +BCDL +I$(SYMR)
  21. AFLAGS = -D
  22.  
  23. OD     = atmp:suplib/
  24.  
  25. $(DEST) :  $(SYMR) $(OD)*.o
  26.     -Delete %(left)
  27.     cd $(OD)
  28.     list LFORMAT %s TO list.in #?.o
  29.     Ord list.in list.out
  30.     Lb $(DEST) -f list.out
  31.     cd
  32.  
  33. $(OD)*.o : *.c
  34.     cc $(CFLAGS) %(right) -o %(left)
  35.  
  36. $(OD)*.o : *.asm
  37.     as $(AFLAGS) %(right) -o %(left)
  38.  
  39. $(SYMR):    $(SYMS)
  40.     Copy $(SYMS) $(SYMR)
  41.  
  42.