-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
48 lines (43 loc) · 1 KB
/
Makefile.PL
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
44
45
46
47
48
use strict;
use warnings;
use ExtUtils::MakeMaker;
use ExtUtils::Mksymlists;
my $pm = 'lib/IP/Tools.pm';
my $repo = 'https://github.com/benkasminbullock/IP-Tools';
my $name = 'IP::Tools';
if ($^O eq 'MSWin32') {
# The following command exports the C functions in "ip-tools.c" to
# outside this module, for Microsoft Windows.
Mksymlists (
NAME => $name,
FUNCLIST => [
'ip_tools_ip_to_int',
'ip_tools_ip_range',
],
DL_FUNCS => {
'IP::Tools' => [
'boot_IP__Tools',
],
},
IMPORTS => {},
);
}
WriteMakefile (
NAME => $name,
VERSION_FROM => $pm,
ABSTRACT_FROM => $pm,
AUTHOR => 'Ben Bullock <bkb@cpan.org>',
LICENSE => 'perl',
PREREQ_PM => {
},
META_MERGE => {
resources => {
repository => $repo,
bugtracker => "$repo/issues",
},
},
EXE_FILES => [
'script/iprtocidr',
],
OBJECT => 'Tools.o ip-tools.o',
);