home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff232.lzh / Dbug / lattice.mk < prev    next >
Makefile  |  1989-08-02  |  1KB  |  62 lines

  1. #
  2. #  FILE
  3. #
  4. #    lattice.mk    Makefile for dbug package
  5. #
  6. #  SCCS ID
  7. #
  8. #    @(#)lattice.mk    1.1    7/25/89
  9. #
  10. #  DESCRIPTION
  11. #
  12. #    Makefile for the dbug package (AmigaDOS, Lattice C compiler)
  13. #
  14.  
  15. # Define NO_VARARGS if you have no <varargs.h> to include.
  16. VARARGS =    -dNO_VARARGS=1
  17.  
  18. CFLAGS =    $(VARARGS) -damiga=1
  19. CC =        lc
  20.  
  21. #    The default thing to do is remake the local runtime support
  22. #    library.
  23.  
  24. all :        dbug.lib factorial analyze
  25.  
  26. #    Note that we cannot simply rename dbug.o to dbug.lib since
  27. #    the rename will fail if dbug.lib already exists.  And we
  28. #    can't just arbitrarily delete it, since that will fail if
  29. #    it doesn't exist.  Sigh.
  30.  
  31. dbug.lib :    dbug.c dbug.h
  32.         $(CC) $(CFLAGS) dbug.c
  33.         copy dbug.o dbug.lib
  34.         delete dbug.o
  35.  
  36. #
  37. #    Make the test/example program "factorial".
  38. #
  39. #    Note that the objects depend on the LOCAL dbug.h file and
  40. #    the compilations are set up to find dbug.h in the current
  41. #    directory even though the sources have "#include <dbug.h>".
  42. #    This allows the examples to look like the code a user would
  43. #    write but still be used as test cases for new versions
  44. #    of dbug.
  45.  
  46. factorial :    main.o factorial.o dbug.lib
  47.         blink with factor.lnk
  48.  
  49. main.o :    main.c dbug.h
  50.         $(CC) $(CFLAGS) main.c
  51.  
  52. factorial.o :    factorial.c dbug.h
  53.         $(CC) $(CFLAGS) factorial.c
  54.  
  55. #    Make the analyze program for runtime profiling support.
  56.  
  57. analyze :    analyze.o dbug.lib
  58.         blink with analyze.lnk
  59.  
  60. analyze.o :    analyze.c useful.h dbug.h
  61.         $(CC) $(CFLAGS) analyze.c
  62.