home *** CD-ROM | disk | FTP | other *** search
/ The Amiga Game Guide / AmigaGameGuide_CD.iso / PC / Tools / chunker / source / makefile < prev    next >
Makefile  |  1977-12-31  |  813b  |  43 lines

  1. #
  2. # Unix Makefile for chunker
  3. #
  4. #
  5.  
  6. # CC - Compiler command, CC by default but often gcc is a better choice.
  7. CC = CC
  8. #CC = gcc
  9.  
  10. # LINKER - Linker command
  11. LINKER = $(CC)
  12.  
  13. # COMPILEOPTS - Options to pass to the compiler
  14. COMPILEOPTS = -c
  15.  
  16. # LINKOPTS - options to pass when linking
  17. LINKOPTS = 
  18.  
  19. OPTIMISE = -O2
  20.  
  21. all: dechunk chunker
  22.  
  23. chunker: chunker.o machine.o bfn.o
  24.     $(LINKER) $(LINKOPTS) $(OPTIMISE) -o $@ chunker.o machine.o bfn.o
  25.  
  26. dechunk: dechunk.o machine.o bfn.o
  27.     $(LINKER) $(LINKOPTS) $(OPTIMISE) -o $@ dechunk.o machine.o bfn.o
  28.  
  29. machine.o: machine.c
  30.     $(CC) $(COMPILEOPTS) $(OPTIMISE) -c machine.c
  31.  
  32. bfn.o: bfn.c
  33.     $(CC) $(COMPILEOPTS) $(OPTIMISE) -c bfn.c
  34.  
  35. chunker.o: chunker.c
  36.     $(CC) $(COMPILEOPTS) $(OPTIMISE) -c chunker.c
  37.  
  38. dechunk.o: dechunk.c
  39.     $(CC) $(COMPILEOPTS) $(OPTIMISE) -c dechunk.c
  40.  
  41. clean:
  42.     rm *.o
  43.