# INSTALLING SLINK: 
# a) edit slink, slinkls, slink-convert, truename to invoke proper perl.
# b) edit Slink/Config.pm to set options. 
# c) define $privlib, $bin below. 
# d) perl Makefile.PL
# e) make install

use ExtUtils::MakeMaker;
use Config; 

# define for your system : where to put slink libraries (in directory Slink). 
# default is to place these in perl's own privlib. 
# $privlib = "/usr/local/lib/perl5"; 

# define for your system : location of slink commands (slink, link, copy, etc).
# default is to place them where perl is installed. 
# $bin = "/usr/local/sbin"; 

$privlib = $Config{'privlib'} if ! defined $privlib; 
$bin     = $Config{'bin'}     if ! defined $bin; 

WriteMakefile(  VERSION => "5.0", NAME => "Slink", DISTNAME => "Slink-5.0",
		OBJECT => " ", # C_FILES => " ", O_FILES => " ", 
   		EXE_FILES => [ 'slink', 'slinkls', 'truename' ],
 		INSTALLBIN => $bin, 
		INSTALLPRIVLIB => $privlib, 
		PMLIBDIRS => [ "./Slink", "./pod" ],
              );


# these sections of the Makefile are irrelevant and shouldn't be generated
sub MY::dynamic     { "dynamic::\n"; }
sub MY::dynamic_bs  { "dynamic_bs::\n"; }
sub MY::dynamic_lib { "dynamic_lib::\n"; }
sub MY::static      { "static::\n"; }
sub MY::static_lib  { "static_lib::\n"; }
