home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / chord3_6.zip / chord / makefile < prev    next >
Makefile  |  2000-04-17  |  2KB  |  78 lines

  1. # This is a modified make file for CHORD for OS/2
  2.  
  3. # Select the required paper size for your printer
  4. PAPERSIZE = US
  5. #PAPERSIZE = A4
  6.  
  7. # If your system does not have a getopt fonction, uncomment the next line
  8. #GETOPT = getopt.o
  9.  
  10. # Use a ansi or K&R compiler
  11. CC = gcc 
  12. CFLAGS = -D$(PAPERSIZE) -g -O2 -m486
  13.  
  14. # I commented out everything having something to do with make install,
  15. # known this is not necessary nor conform to the OS/2 directory structure
  16.  
  17. # where to put the resulting program
  18. #BINDIR = /usr/local/bin
  19.  
  20. # where to put the man page
  21. #MANDIR = /usr/man
  22. #MANEXT = l
  23.  
  24. # You should not have to change anything below this line
  25.  
  26. # name of the program
  27. PROGRAMS = chord.exe  a2crd.exe
  28.  
  29. INCL = chord.h getopt.h patchlevel.h
  30. SRC = common.c xpose.c iso.c toc.c chord.c grid.c getopt.c chord.man Makefile a2crd.c
  31. OBJ = common.o xpose.o iso.o toc.o chord.o grid.o ${GETOPT}
  32. SONGS = songs/space-oddity songs/heaven songs/everybody-hurts
  33. DOCS = README chord_guide.ps license.txt a2crd.man a2crd.txt
  34. RELNAME = chord36
  35.  
  36. all: $(PROGRAMS)
  37.  
  38. chord.exe : $(OBJ) Makefile
  39.     $(CC) $(CFLAGS) -o $@ $(OBJ)
  40.  
  41. a2crd.exe: a2crd.o Makefile
  42.     $(CC) $(CFLAGS) -o $@ a2crd.o common.o
  43.     
  44. chord.o    : chord.h
  45. common.o   : chord.h
  46. grid.o     : chord.h
  47. xpose.o       : chord.h
  48. getopt.o   : getopt.h
  49. toc.o       : chord.h
  50.  
  51. #install : all
  52. #    cp $(PROGRAMS) $(BINDIR)
  53. #    rm -f $(MANDIR)/cat$(MANEXT)/chord.$(MANEXT)
  54. #    cp chord.man $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
  55. #    chmod 666 $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
  56. #    Cp a2crd.man $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
  57. #    chmod 666 $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
  58.     
  59. # Note that also shar, tar and lint are not necessary. I left them
  60. # uncommented just in case you want to play with them!
  61.  
  62. shar : $(SRC)
  63.     rm -f $(RELNAME).part*
  64.     shar -F -L 60 -o $(RELNAME).part $(SRC) $(INCL) $(SONGS) $(DOCS)
  65.  
  66. tar : $(SRC)
  67.     tar cvf $(RELNAME).tar $(SRC) $(INCL) $(SONGS) $(DOCS)
  68.     rm $(RELNAME).tar.Z
  69.     compress -v $(RELNAME).tar
  70.  
  71. lint : $(SRC)
  72.     lint $(SRC)
  73.  
  74. clean:
  75.     rm -f core *.o *.exe 
  76.  
  77.     
  78.