File: Makefile.PL.in

package info (click to toggle)
pilot-link 0.12.5-dfsg-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 6,868 kB
  • ctags: 5,811
  • sloc: ansic: 53,153; sh: 10,459; java: 2,584; perl: 2,247; python: 1,044; makefile: 991; yacc: 662; cpp: 551; xml: 39
file content (47 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download | duplicates (3)
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

$prefix = "@prefix@";
$exec_prefix = "@exec_prefix@";
$libdir = "../../libpisock/.libs";

$lib = "-L$libdir -lpisock";

$plincdir = "../../include";
$h2xsheaders = join(' ', map { "$plincdir/$_" } qw(
					      pi-macros.h
					      pi-buffer.h
					      pi-file.h
					      pi-datebook.h
					      pi-memo.h
					      pi-expense.h
					      pi-address.h
					      pi-todo.h
					      pi-mail.h
					      pi-socket.h
					      pi-dlp.h
					      pi-syspkt.h
					      pi-error.h
					      pi-version.h
					     ));

sub MY::postamble {
    "%.inc:
	@PERL@ ./h2xs-pilot-link -n PDA::Pilot $h2xsheaders
	cp PDA-Pilot/fallback/*.inc .
	rm -rf PDA-Pilot
";
}	

WriteMakefile(
    'NAME'       => 'PDA::Pilot',
    'VERSION'    => '@PILOT_LINK_VERS@.@PILOT_LINK_MAJOR@.@PILOT_LINK_MINOR@@PILOT_LINK_PATCH@',
    'XSPROTOARG' => '-noprototypes',
    'INC'        => "-I$plincdir",
    'PREFIX'     => "$prefix",
    'INSTALLDIRS'=> 'vendor',
    'dynamic_lib'=> {'OTHERLDFLAGS' => $lib},
    'depend'     => {'Pilot.c' => 'const-c.inc const-xs.inc'},
    'clean'      => {'FILES'   => 'const-c.inc const-xs.inc'},
);