aboutsummaryrefslogtreecommitdiffstats
path: root/USER/Makefile.PL
blob: 209af58256c9b4004e120562b4c7cacfe292a277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ExtUtils::MakeMaker;
$Verbose=1;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my $libs = "" . `pkg-config --libs libuser`;
chomp $libs;
$libs .= "-lpam_misc -lpam ";
print "\n\n\n\nI need to link with «$libs»\n\n\n\n\n\n";
WriteMakefile(
    'NAME'		=> 'USER',
    'VERSION_FROM'	=> 'USER.pm',
    'OBJECT'		=> 'USER.o', # link all the C files too
    'LIBS'		=> "\"$libs\"", # e.g., '-lm'
    'DEFINE'		=> '', # e.g., '-DHAVE_SOMETHING'
    'INC'		=> "`pkg-config --cflags libuser`", # e.g., '-I. -I/usr/include/other'
    'XSPROTOARG'        => '-noprototypes',
    'TYPEMAPS'  => ['../perlobject.map' ],
);