*** Installation of drvmidi ***

0. Requirements

  - AWE32 driver v0.4.3 or newer
  - Tcl7.5/Tk4.1 or newer libraries (optional)
  - Ncurses library (optional)
  - AWESFX package v0.4.3 or newer (optional)

  AWE32 driver and utilities can be downloaded from:
	http://members.tripod.de/iwai/awedrv.html

1. Edit Imakefile (if necessary).

  * Select control interfaces
	- Select control interfaces to be built in drvmidi (from line
	  12 to 15).  Currently all interfaces except Tk interface are
	  selected.  Comment out unnecessary interfaces (do NOT set
	  value to 0).  At least one interface should be defined.

  * AWE library (optional)
	- If you want to use AWElib for dynamic loading, uncomment
	  the definition in line 30.  Otherwise, sfxload program is
	  used to load the samples.

  * Ncurses interface options (optional)
	- if you don't have ncurses library, comment out
	  the line `INTERFACE_NCURSES' at the beginning of Imakefile.

  * Tkmidi program
	- to build the external Tcl/Tk interface (tkmidi), comment out
	  and define 'BUILD_TKMIDI' in Imakefile (line 22).

  * Tcl/Tk options (for both tkmidi and tk interface)
	- both tkmidi and tk interface refer to a directory to store
	  scripts and bitmap files specified in TCLDIR (line 46).
	- if you have different Tcl include path (for example,
	  /usr/local/include/tcl7.6jp), modify or add the line
	  	INCLUDES += -I/usr/local/include/tcl7.6jp
	  around line 101 or 104.
	- if you have different Tk include path, change or add it
	  as well as above.
	- if you have different Tcl or Tk library pathes, modify
	  TKLIBS definitions (line 102 or 104).
	- if the program name of wish is different, change TCLSH.
	- if you want to use the old type file browser, rename the
	  file "browser.tcl.old" to "browser.tcl".

  * Atmidi program
	- to build another external interface, comment out and define
	  'BUILID_ATMIDI' in Imakefile (line 23).  This program
	  requires Athena Widget set.

2. Edit config.h (if any).
	Miscellaneous configurations are defined in config.h
	You can change the default parameter of command line options.
	See the comment of each definition.


3. Make Makefile via xmkmf
	% xmkmf


4. Make, and install programs
	% make all
	% make install


5. That's all.  Enjoy listening!

