home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / SimGen_Src / makefile < prev    next >
Makefile  |  1989-07-26  |  1KB  |  85 lines

  1. #
  2. # Name of program.
  3. #
  4. PROGRAM   = SimGen
  5.  
  6. #
  7. # Copy command and backup or permanent destination (for compiling
  8. # from ram: or vd0: this copies current files to disk.)
  9. #
  10. COPY      = copy CLONE
  11. BACKUP    = work:
  12.  
  13. #
  14. # 'C' compiler and global compiler flags.
  15. #
  16. CCOMPILER = cc
  17. CFLAGS    = -n +l -iinclude
  18.  
  19. #
  20. # Assembler and global assembler flags.
  21. #
  22. ASSEMBLER = as
  23. AFLAGS    = -v -c -d
  24.  
  25. #
  26. # Linker and global linker flags + libraries to like with.
  27. #
  28. LINKER    = ln
  29. LFLAGS    = -g
  30. LIBS      = +q -lc32
  31.  
  32. #
  33. # Rule for Assembly modules.
  34. #
  35. .asm.o:
  36.     $(ASSEMBLER) $(AFLAGS) $*.asm
  37.     $(COPY) $*.asm $(BACKUP)
  38.     $(COPY) $*.o   $(BACKUP)
  39.  
  40. #
  41. # Rule for 'C' modules.
  42. #
  43. .c.o:
  44.     $(CCOMPILER) $(CFLAGS) $*.c
  45.     $(COPY) $*.c $(BACKUP)
  46.     $(COPY) $*.o $(BACKUP)
  47.  
  48. #
  49. # Rule to 'backup' new header files.
  50. #
  51. .h.ho:
  52.     echo >$*.ho "marked"
  53.     $(COPY) $*.h  $(BACKUP)
  54.     $(COPY) $*.ho $(BACKUP)
  55.  
  56. #
  57. # IFF Modules.
  58. #
  59. IFFDEP = IFFR.o UNPACKER.o MYILBMR.o CBMREADPICT.o IFFMSGS.o MYIFF2.o
  60.  
  61. #
  62. # Program Modules.
  63. #
  64. PDEP =    $(PROGRAM).o RECTCOPY.o WINDOW1.o MESSAGE.o
  65.  
  66. #
  67. # Header files.
  68. #
  69. HDEP =  PICTURE.ho RECTCOPY.ho SIZEDEFS.ho
  70.  
  71. #
  72. # Dependency for program.
  73. #
  74. $(PROGRAM): $(PDEP) $(HDEP) $(IFFDEP)
  75.     $(LINKER) $(LFLAGS) $(PDEP) $(IFFDEP) $(LIBS)
  76.     $(COPY) makefile   $(BACKUP)
  77.     $(COPY) $(PROGRAM) $(BACKUP)
  78.  
  79. #
  80. # Special dependanceies
  81. #
  82. rectcopy.o: sizedefs.h
  83.  
  84. window1.o: sizedefs.h
  85.