ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Tree-M/Makefile.PL
Revision: 1.5
Committed: Sun May 27 13:40:57 2001 UTC (23 years, 1 month ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 use ExtUtils::MakeMaker;
2
3 WriteMakefile(
4 dist => {
5 PREOP => '(cat INSTALL; pod2text M.pm) | tee README > $(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
6 COMPRESS => 'gzip -9v',
7 SUFFIX => '.gz',
8 },
9 CC => 'g++',
10 LD => 'g++',
11 OPTIMIZE => '-O6 -funroll-all-loops',
12 INC => '-IGiST -IMT',
13 MYEXTLIB => 'GiST/libGiST.a MT/libMT.a',
14 OBJECT => 'M$(OBJ_EXT) PMT$(OBJ_EXT)',
15 NAME => 'Tree::M',
16 VERSION_FROM => 'M.pm',
17 );
18
19 print <<EOF;
20
21 ***
22 *** This module is written in C++, which is nontrivial to integrate into
23 *** most pre-built perls. If problems occur during compiling then edit (hack)
24 ***
25 *** Makefile.PL
26 *** GiST/Makefile MT/Makefile
27 ***
28 *** in this order. Especially wautch out for compile and optimization flags.
29 *** Have fun ;->
30 ***
31
32 EOF
33
34 sub MY::postamble { <<'EOF' }
35
36 force :
37
38 GiST/libGiST.a: force
39 cd GiST && $(MAKE) OPTIMIZE="$(OPTIMIZE)" CXX="$(CC)" LD="$(LD)" libGiST.a
40
41 MT/libMT.a: GiST/libGiST.a force
42 cd MT && $(MAKE) OPTIMIZE="$(OPTIMIZE)" CXX="$(CC)" LD="$(LD)" libMT.a
43
44 clean ::
45 cd MT && $(MAKE) clean
46 cd GiST && $(MAKE) clean
47
48 EOF
49