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.BAK < prev    next >
Text File  |  1991-08-16  |  1KB  |  40 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=    lattice_include:symbols.m
  17. SYMR=    T:lattice_symbols.m
  18.  
  19. DEST   = lattice:lib/sup32.lib
  20. CFLAGS = -iprivate_include: -cim -d0 -H$(SYMR) -rr -v -O
  21. AFLAGS = -ilattice:asminclude/ -dRLIB=0
  22.  
  23. OD     = ltmp:suplib/
  24.  
  25. $(DEST) :  $(SYMR) $(OD)*.o
  26.     -delete %(left)
  27.     list LFORMAT $(OD)%s TO $(OD)list.lst $(OD)#?.o
  28.     oml %(left) r @$(OD)list.lst
  29.  
  30. $(OD)*.o $(OD)*.o : *.c //commonlib/src/*.c
  31.     lc $(CFLAGS) -o%(left) %(right)
  32.  
  33. $(OD)*.o $(OD)*.o : *.asm //commonlib/src/*.asm
  34.     asm $(AFLAGS) -o%(left) %(right)
  35.  
  36. $(SYMR):    $(SYMS)
  37.     Copy $(SYMS) $(SYMR)
  38.  
  39.  
  40.