#!perl -w use strict; use warnings; # Makefile.PL for perfect.exe # Writes a makefile that supports enough targets to play # nicely with ExtUtils::MakeMaker. # $Id: Makefile.PL,v 1.2 2006/06/11 21:00:15 robertemay Exp $ use 5.006; use Config; print "Writing Makefile for Win32::GUI::Constants - perfect.exe\n"; my $file = 'Makefile'; open my $fh, '>', $file or die "Failed to open $file for writing: $!"; my $oldfh = select $fh; # Generic configuration my $nologo = ""; my $output = '-o $@'; my $cflags = "-O"; if($Config{cc} =~ /gcc/) { # gcc, e.g. MinGW $cflags .= " -fno-builtin-log2"; } elsif($Config{cc} =~ /cl/) { # MSVC $nologo = "-nologo"; $output = "-Fe\$@"; } print <