home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 613b.lha / PrLabel_v1.1 / src.LZH / src / makefile < prev    next >
Makefile  |  1992-01-31  |  855b  |  41 lines

  1. #COPT = -d3 -r0
  2. POPT = -dDOPROTOS
  3.  
  4. OFILES = main.o PrL.o
  5. LFILES = LIB:lc.lib LIB:amiga.lib LIB:stslib.lib
  6. IFILES = PrLabel.h
  7. PFILES = main_protos.h PrL_protos.h
  8.  
  9. #
  10. # The executable 'PrLabel' depends on the object files
  11. # Link these with the library files.
  12. #
  13. PrLabel     : $(OFILES) 
  14.    link FROM LIB:c.o LIB:tinymain.o $(OFILES) TO PrLabel LIB $(LFILES) VERBOSE
  15. #   link FROM LIB:c.o $(OFILES) TO PrLabel LIB $(LFILES) VERBOSE
  16.  
  17. #
  18. # '.o' depends on the source file and its includes
  19. #
  20. main.o   : main.c $(IFILES)
  21.    lc $(COPT) main.c
  22. PrL.o    : PrL.c  $(IFILES)
  23.    lc $(COPT) PrL.c
  24. #
  25. # The protos include file is recreated thus:
  26. #
  27. protos : $(PFILES)
  28.  
  29.  
  30. main_protos.h :   main.c
  31.    lc $(POPT) -omain_protos.h -pr main
  32. PrL_protos.h :   PrL.c
  33.    lc $(POPT) -oPrL_protos.h -pr PrL
  34. #
  35. #  Finally get rid of the .o files
  36. #
  37. clean :
  38.    DELETE main.o
  39.    DELETE PrL.o
  40.  
  41.