ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Tree-M/Makefile.PL
Revision: 1.4
Committed: Wed May 23 02:11:14 2001 UTC (23 years ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.3: +16 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 use ExtUtils::MakeMaker;
2    
3     WriteMakefile(
4     dist => {
5 root 1.4 PREOP => '(cat INSTALL; pod2text M.pm) | tee README > $(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
6 root 1.1 COMPRESS => 'gzip -9v',
7     SUFFIX => '.gz',
8     },
9     CC => 'g++',
10     LD => 'g++',
11 root 1.2 OPTIMIZE => '-O6 -funroll-all-loops',
12 root 1.1 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 root 1.4
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 root 1.1
34     sub MY::postamble { <<'EOF' }
35    
36     force :
37    
38     GiST/libGiST.a: force
39 root 1.3 cd GiST && make OPTIMIZE="$(OPTIMIZE)" CXX="$(CC)" LD="$(LD)" libGiST.a
40 root 1.1
41     MT/libMT.a: GiST/libGiST.a force
42 root 1.3 cd MT && make OPTIMIZE="$(OPTIMIZE)" CXX="$(CC)" LD="$(LD)" libMT.a
43 root 1.1
44     clean ::
45     cd MT && $(MAKE) clean
46     cd GiST && $(MAKE) clean
47    
48     EOF
49