Changeset 2656 for Makefile.PL
- Timestamp:
- 05/03/05 20:15:53 (4 years ago)
- svk:copy_cache_prev:
- 4152
- Files:
-
- 1 modified
-
Makefile.PL (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.PL
r2629 r2656 3 3 use warnings; 4 4 use Config; 5 use Cwd qw(abs_path); 5 6 use File::Spec; 6 7 use lib 'lib'; … … 86 87 . 87 88 } 88 89 89 90 90 my $ghc_output = "-o pugs$Config{_exe} src/Main.hs"; … … 103 103 $ghc_output .= " $pcre @syck @pge $unicode"; 104 104 105 my $embed_flags; 106 if ($ENV{PUGS_EMBED} and $ENV{PUGS_EMBED} =~ /\bparrot\b/i) { 107 my $base = $ENV{PARROT_PATH}; 108 if (!$base and -d "../parrot") { 109 $base = abs_path('../parrot/'); 110 } 111 (-d $base and -e "$base/parrot-config.imc") 112 or die "*** Please set \$ENV{PARROT_PATH} to the base path with a built parrot tree.\n"; 113 $embed_flags .= " -I$base/include -L$base/blib/lib -DPUGS_HAVE_PARROT=1 -L/usr/local/lib"; 114 $ghc_output .= " -lparrot -licuuc -licudata " 115 } 116 105 117 my $config = get_pugs_config(); 106 118 my $is_win32 = ($^O =~ /MSWin|mingw|cygwin/i); … … 159 171 160 172 optimized :: src/Pugs/Config.hs @srcfiles $version_h @prereqs 161 $ghc $threaded -O --make $ghc_flags $ ghc_output173 $ghc $threaded -O --make $ghc_flags $embed_flags $ghc_output 162 174 163 175 unoptimised :: optimized 164 176 165 177 unoptimized :: src/Pugs/Config.hs @srcfiles $version_h @prereqs 166 $ghc $threaded -O0 --make $ghc_flags $ ghc_output178 $ghc $threaded -O0 --make $ghc_flags $embed_flags $ghc_output 167 179 168 180 $pugs : src/Pugs/Config.hs @srcfiles $version_h @prereqs 169 $ghc $threaded -O --make $ghc_flags $ ghc_output181 $ghc $threaded -O --make $ghc_flags $embed_flags $ghc_output 170 182 171 183 smoke : $pugs util/run-smoke.pl … … 173 185 174 186 ghci :: 175 $ghc --interactive $ghc_flags $ ghc_output187 $ghc --interactive $ghc_flags $embed_flags $ghc_output 176 188 177 189 tags : @srcfiles
