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.LATTICE < prev    next >
Text File  |  1991-08-16  |  1KB  |  38 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. #   NOTE1!  -rrb does not work.  Thus I use -rr
  9. #   NOTE2!  -A4 relative used (is the default for V5.02).  Note that small and
  10. #         large data models appear to not be mixable due to a problem
  11. #         referencing IntuitionBase.
  12.  
  13. SYMS=    lattice_include:symbols.m
  14. #SYMR=    T:lattice_symbols.m
  15.  
  16. DEST   = lattice:lib/sup32.lib
  17. #CFLAGS = -iprivate_include: -cim -d0 -H$(SYMS) -rr -v -O
  18. #CFLAGS = -iprivate_include: -cim -rr -v -O
  19. CFLAGS = -iprivate_include: -cimq -v -H$(SYMS)
  20. AFLAGS = -ilattice:asminclude/ -dLATTICE
  21.  
  22. OD     = ltmp:suplib/
  23.  
  24. $(DEST) : $(OD)*.o
  25.     -delete %(left)
  26.     list LFORMAT $(OD)%s TO $(OD)list.lst $(OD)#?.o
  27.     oml %(left) r @$(OD)list.lst
  28.  
  29. $(OD)*.o : *.asm
  30.     asm $(AFLAGS) -o%(left) %(right)
  31.  
  32. $(OD)*.o : *.c
  33.     lc $(CFLAGS) -o%(left) %(right)
  34.  
  35. $(SYMR):    $(SYMS)
  36.     Copy $(SYMS) $(SYMR)
  37.  
  38.