forked from Songmu/text-markdown-discount
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.PL
More file actions
78 lines (72 loc) · 1.28 KB
/
Copy pathMakefile.PL
File metadata and controls
78 lines (72 loc) · 1.28 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
use strict;
use warnings;
use ExtUtils::MakeMaker;
use File::Spec;
my $extdir = 'discount-2.1.2';
my $myextlib = File::Spec->catfile($extdir, 'libmarkdown.a');
my $clean_files = join (" ",
map{ File::Spec->catfile($extdir, $_) }
qw (
Csio.o
basename.o
blocktags
cols
config.cmd
config.h
config.log
config.mak
config.md
config.sub
css.o
docheader.o
dumptree.o
echo
emmatch.o
flags.o
generate.o
html5.o
libmarkdown
libmarkdown.a
librarian.sh
main.o
makepage
markdown
markdown.o
mkd2html
mkd2html.o
mkdio.h
mkdio.o
mktags
pgm_options.o
resource.o
setup.o
tags.o
theme
theme.o
toc.o
theme
theme.o
toc.o
version.c
version.o
xml.o
xmlpage.o
));
sub MY::postamble {
return sprintf('
$(MYEXTLIB):
%s
', qq{( cd $extdir; CC='cc -fPIC' sh configure.sh; make )\n});
}
WriteMakefile(
NAME => 'Text::Markdown::Discount',
VERSION_FROM => 'lib/Text/Markdown/Discount.pm',
PREREQ_PM => {},
($] >= 5.005 ?
(ABSTRACT_FROM => 'lib/Text/Markdown/Discount.pm',
AUTHOR => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()),
LIBS => '-L' . $extdir,
INC => '-I. -I' . $extdir,
MYEXTLIB => $myextlib,
clean => { FILES => $clean_files },
);