aboutsummaryrefslogtreecommitdiffstats
path: root/USER/Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'USER/Makefile.PL')
-rw-r--r--USER/Makefile.PL18
1 files changed, 18 insertions, 0 deletions
diff --git a/USER/Makefile.PL b/USER/Makefile.PL
new file mode 100644
index 0000000..0867054
--- /dev/null
+++ b/USER/Makefile.PL
@@ -0,0 +1,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 ";
+WriteMakefile(
+ 'NAME' => 'USER',
+ 'OPTIMIZE' => '-Wno-declaration-after-statement',
+ 'VERSION_FROM' => 'USER.pm',
+ 'OBJECT' => 'USER.o', # link all the C files too
+ 'LIBS' => "$libs", # e.g., '-lm'
+ 'DEFINE' => '-DPACKAGE_NAME=\"userdrake\"', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => "`pkg-config --cflags libuser`", # e.g., '-I. -I/usr/include/other'
+ 'XSPROTOARG' => '-noprototypes',
+ 'TYPEMAPS' => ['../perlobject.map' ],
+);