home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / sound / players / mp02_tar.z / mp02_tar / mp02 / Makefile < prev    next >
Encoding:
Makefile  |  1993-02-05  |  1.5 KB  |  50 lines

  1. # Makefile for mp
  2. # Greg Lee, 1/30/93
  3.  
  4. DESTDIR = /usr/src/Sound/bin
  5. LINK = cc
  6.  
  7. # The value of XSELECT determines which channels get sent
  8. # to the external midi port.  If b0 is 1, e.g., channel one
  9. # gets sent there.  I have it as -DXSELECT=0x0ff to send the
  10. # first eight channels out and play only the high eight channels
  11. # on the sound card.  If you don't have an external port, you could
  12. # put -DXSELECT=0.  Similarly, -DPSELECT determines which channels
  13. # should be considered percussion channels; -DPSELECT marks
  14. # channels 10 and 16 for percussion.
  15. # -DK1 is for hooking up and external Kawai K1 -- the relevant code
  16. # is in file phase2.c
  17. # If the synth hooked to the external port has a small number of polyphonic
  18. # voices, you can try adding -DXPOLYPHANY=8 or some other small number,
  19. # in which case mp will disable external output to one or more channels
  20. # if it thinks the limit you set will be exceeded (but I haven't been
  21. # very succesful with this).
  22.  
  23. CFLAGS = -O2 -DUNIX -DXSELECT=0x0000 -DPSELECT=0x8200
  24.  
  25. PROGS = mp setsb setdrums
  26. OBJ = midifile.o mp.o phase2.o userio.o cmdline.o
  27.  
  28. all:    $(PROGS)
  29.  
  30. mp:    $(OBJ)
  31.     $(LINK) $(OBJ) -o mp
  32.  
  33. setsb:    setsb.o
  34.     $(LINK) setsb.o -o setsb
  35.  
  36. setdrums: setsb
  37.     ln -s setsb setdrums
  38.  
  39. install: all
  40.     install -s mp setsb $(DESTDIR)
  41.     (cd $(DESTDIR); ln -s setsb setdrums)
  42.  
  43. clean:
  44.     rm -f *.o $(PROGS)
  45.  
  46. phase2.o: cext.h adagio.h userio.h cmdline.h pitch.h midicode.h midi.h drum.h
  47. userio.o: cext.h userio.h
  48. cmdline.o: cext.h cmdline.h
  49. mp.o: cext.h adagio.h userio.h cmdline.h midifile.h midi.h midicode.h vname.h
  50.