1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
use ExtUtils::MakeMaker;
$Verbose = 1;
use Config;
$osname=$Config{osname};
%defines=(
'linux'=>'-DLINUX',
'freebsd'=>'-DFREEBSD',
'netbsd'=>'-DNETBSD',
'solaris'=>'-DSOLARIS',
'sunos'=>'-DSOLARIS',
'bsdi'=>'-DBSDI',
'aix'=>'-DAIX',
'hpux'=>'-DHPUX',
);
WriteMakefile(
NAME => 'Authen::TacacsPlus::tacplus',
DEFINE => $defines{$osname},
SKIP => [qw(static dynamic)],
clean => {'FILES' => 'libtacplus$(LIB_EXT)'},
CCFLAGS => "$ENV{'CFLAGS'} $ENV{'CPPFLAGS'}",
);
sub MY::top_targets {
'
all: static
static: libtacplus$(LIB_EXT)
libtacplus$(LIB_EXT): $(O_FILES)
$(AR) cr libtacplus$(LIB_EXT) $(O_FILES)
$(RANLIB) libtacplus$(LIB_EXT)
pure_all :
$(NOECHO) $(NOOP)
';
}
|