| 1 |
use ExtUtils::MakeMaker; |
| 2 |
|
| 3 |
print <<EOF; |
| 4 |
|
| 5 |
*** |
| 6 |
*** IMPORTANT: PLIB::PUI requires a C++ compiler that is compatible |
| 7 |
*** with your perl. You need to specify by overriding CC manually, as in: |
| 8 |
*** |
| 9 |
*** perl Makefile.PL CC=g++ |
| 10 |
*** |
| 11 |
|
| 12 |
EOF |
| 13 |
|
| 14 |
sub MY::postamble { |
| 15 |
my $postamble =<<'END'; |
| 16 |
|
| 17 |
clean:: |
| 18 |
-cd pui && $(MAKE) clean |
| 19 |
|
| 20 |
$(MYEXTLIB): |
| 21 |
cd pui && $(MAKE) CC="$(CC)" CFLAGS="$(OPTIMIZE) $(CFLAGS) $(CCCDLFLAGS)" all |
| 22 |
|
| 23 |
END |
| 24 |
} |
| 25 |
|
| 26 |
WriteMakefile( |
| 27 |
dist => { |
| 28 |
PREOP => 'pod2text PUI.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
| 29 |
COMPRESS => 'gzip -9v', |
| 30 |
SUFFIX => '.gz', |
| 31 |
}, |
| 32 |
NAME => "PLIB::PUI", |
| 33 |
MYEXTLIB => 'pui/libplibpu.a', |
| 34 |
VERSION_FROM => "PUI.pm", |
| 35 |
); |
| 36 |
|