Alien-TinyCC

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

use strict;
use warnings;
use lib 'inc';

#            if OS is...      class is...
my $class = $^O =~ /MSWin/            ? 'My::Build::Windows'
           : $^O =~ /Cygwin/          ? 'My::Build::Cygwin'
           : $^O =~ /darwin/          ? 'My::Build::MacOSX'
           : $^O =~ /GNU\/?kFreeBSD/i ? 'My::Build::Linux' # Linux build process works for this particular BSD
           : $^O =~ /BSD/i            ? 'My::Build::BSD'   # all other BSDs need slight modification
           :                            'My::Build::Linux' # default to Linux
           ;

src/configure  view on Meta::CPAN

Info directory      $infodir
Doc directory       $docdir
Target root prefix  $sysroot
Source path      $source_path
C compiler       $cc
Target OS        $targetos
CPU              $cpu
Big Endian       $bigendian
gprof enabled    $gprof
cross compilers  $build_cross
use libgcc       $use_libgcc
EOF

echo "Creating config.mak and config.h"

cat >config.mak <<EOF
# Automatically generated by configure - do not modify
prefix=$prefix
bindir=\$(DESTDIR)$bindir
tccdir=\$(DESTDIR)$tccdir
libdir=\$(DESTDIR)$libdir



( run in 0.789 second using v1.01-cache-2.11-cpan-87723dcf8b7 )