diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2011-09-11 19:50:33 +0100 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2011-09-11 19:51:24 +0100 |
commit | 7c3b4d0061393a73e967e74810d5d58142c2fa94 (patch) | |
tree | fbeafd5a42262226ee06ab950814414ea3ea38dc /win32 | |
parent | daef35dbd8d4bdf1d5f639f82eb72fa9039ada84 (diff) | |
download | perl-7c3b4d0061393a73e967e74810d5d58142c2fa94.tar.gz |
Remove Windows 95 support from win32/makefile.mk
All supporting code for Windows 95 was already removed in 8cbe99e5b6.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/genmk95.pl | 87 | ||||
-rw-r--r-- | win32/makefile.mk | 88 |
2 files changed, 7 insertions, 168 deletions
diff --git a/win32/genmk95.pl b/win32/genmk95.pl deleted file mode 100644 index cf31457ab1..0000000000 --- a/win32/genmk95.pl +++ /dev/null @@ -1,87 +0,0 @@ -# genmk95.pl - uses miniperl to generate a makefile that command.com will -# understand given one that cmd.exe will understand - -# Author: Benjamin K. Stuhl -# Date: 10-16-1999 - -# how it works: -# dmake supports an alternative form for its recipes, called "group -# recipes", in which all elements of a recipe are run with only one shell. -# This program converts the standard dmake makefile.mk to one using group -# recipes. This is done so that lines using && or || (which command.com -# doesn't understand) may be split into two lines that will still be run -# with one shell. - -my ($filein, $fileout) = @ARGV; - -open my $in, $filein or die "Error opening input file: $!\n"; -open my $out, "> $fileout" or die "Error opening output file: $!\n"; - -print $out <<_EOH_; -# *** Warning: this file is autogenerated from $filein by $0 *** -# *** Do not edit this file - edit $filein instead *** - -_HOME_DIR := \$(PWD) - -_EOH_ - -my $inrec = 0; - -while (<$in>) -{ - chomp; - if (/^[^#.\t][^#=]*?:(?:[^=]|$)/) - { - if (! $inrec) - { - print $out "$_\n"; - while (/\\\s*$/) - { - chomp($_ = <$in>); - print $out "$_\n"; - } - print $out "@[\n"; - $inrec = 1; - next; - } - else { - if (!/^\t/) { - seek ($out, -4, 2); # no recipe, so back up and undo grouping - # should be -3, but MS has its CR/LF thing... - $inrec = 0; - } - print $out "$_\n"; - next; - } - } - if ((/^\s*$/ || /^[^#.\t][^#=]*?:/) && $inrec) - { - print $out "]\n"; - print $out "$_\n"; - $inrec = 0; - next; - } - if (/^(.*?)(&&|\|\|)(.*)$/) # two commands separated by && or || - { - my ($one, $sep, $two) = ($1, $2, $3); - $one =~ s/^\t(?:-(?!-))?\@?(.*?)$/\t$1/; # no -,@ in group recipes -LINE_CONT: - if ($two =~ /\\\s*$/) - { - chomp ($two .= "\n" . scalar <$in>); - goto LINE_CONT; - } - s/^\s*// for ($one, $two); - print $out "\t$one\n\t$two\n" if ($sep eq "&&"); - print $out "\t$one\n\tif errorlevel 1 $two\n" if ($sep eq "||"); - print $out "\tcd \$(_HOME_DIR)\n"; - next; - } - # fall through - no need for special handling - s/^\t(?:-(?!-))?\@?(.*?)$/\t$1/; # no -,@ in group recipes - print $out "$_\n"; -} -print $out "]\n" if ($inrec); - -close $in or warn "Error closing \$in: $!\n"; -close $out or warn "Error closing \$out: $!\n"; diff --git a/win32/makefile.mk b/win32/makefile.mk index 236b30b53a..8dec075660 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -120,11 +120,6 @@ USE_LARGE_FILES *= define CCTYPE *= GCC # -# uncomment this if you are compiling under Windows 95/98 and command.com -# (not needed if you're running under 4DOS/NT 6.01 or later) -#IS_WIN95 *= define - -# # uncomment next line if you want debug version of perl (big,slow) # If not enabled, we automatically try to use maximum optimization # with all compilers that are known to have a working optimizer. @@ -914,37 +909,14 @@ CFG_VARS = \ LINK_FLAGS=$(LINK_FLAGS) ~ \ optimize=$(OPTIMIZE) -# -# set up targets varying between Win95 and WinNT builds -# - -.IF "$(IS_WIN95)" == "define" -MK2 = .\makefile.95 -RIGHTMAKE = __switch_makefiles -.ELSE -MK2 = __not_needed -RIGHTMAKE = -.ENDIF - -.IMPORT .IGNORE : SystemRoot windir - -# Don't just .IMPORT OS from the environment because dmake sets OS itself. -ENV_OS=$(subst,OS=, $(shell @set OS)) - -.IF "$(ENV_OS)" == "Windows_NT" -ODBCCP32_DLL = $(SystemRoot)\system32\odbccp32.dll -.ELSE -ODBCCP32_DLL = $(windir)\system\odbccp32.dll -.ENDIF - ICWD = -I..\dist\Cwd -I..\dist\Cwd\lib # # Top targets # -all : CHECKDMAKE .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) $(MK2) \ - $(RIGHTMAKE) $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) MakePPPort \ +all : CHECKDMAKE .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) \ + $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) MakePPPort \ $(PERLEXE) $(X2P) Extensions Extensions_nonxs $(PERLSTATIC) regnodes : ..\regnodes.h @@ -953,60 +925,14 @@ regnodes : ..\regnodes.h ..\regexec$(o) : ..\regnodes.h ..\regcharclass.h -reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) $(MK2) \ - $(RIGHTMAKE) $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE) \ +reonly : regnodes .\config.h ..\git_version.h $(GLOBEXE) $(MINIPERL) \ + $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE) \ $(X2P) Extensions_reonly static: $(PERLEXESTATIC) #---------------------------------------------------------------- -#-------------------- BEGIN Win95 SPECIFIC ---------------------- - -# this target is a jump-off point for Win95 -# 1. it switches to the Win95-specific makefile if it exists -# (__do_switch_makefiles) -# 2. it prints a message when the Win95-specific one finishes (__done) -# 3. it then kills this makefile by trying to make __no_such_target - -__switch_makefiles: __do_switch_makefiles __done __no_such_target - -__do_switch_makefiles: -.IF "$(NOTFIRST)" != "true" - if exist $(MK2) $(MAKE:s/-S//) -f $(MK2) $(MAKETARGETS) NOTFIRST=true -.ELSE - $(NOOP) -.ENDIF - -.IF "$(NOTFIRST)" != "true" -__done: - @echo Build process complete. Ignore any errors after this message. - @echo Run "dmake test" to test and "dmake install" to install - -.ELSE -# dummy targets for Win95-specific makefile - -__done: - $(NOOP) - -__no_such_target: - $(NOOP) - -.ENDIF - -# This target is used to generate the new makefile (.\makefile.95) for Win95 - -.\makefile.95: .\makefile.mk - $(MINIPERL) genmk95.pl makefile.mk $(MK2) - -#--------------------- END Win95 SPECIFIC --------------------- - -# a blank target for when builds don't need to do certain things -# this target added for Win95 port but used to keep the WinNT port able to -# use this file -__not_needed: - $(NOOP) - CHECKDMAKE : .IF "$(NEWDMAKE)" == "define" $(NOOP) @@ -1460,7 +1386,7 @@ distclean: realclean install : all installbare installhtml -installbare : $(RIGHTMAKE) utils ..\pod\perltoc.pod +installbare : utils ..\pod\perltoc.pod $(PERLEXE) ..\installperl if exist $(WPERLEXE) $(XCOPY) $(WPERLEXE) $(INST_BIN)\*.* if exist $(PERLEXESTATIC) $(XCOPY) $(PERLEXESTATIC) $(INST_BIN)\*.* @@ -1507,7 +1433,7 @@ test-prep : all utils ..\pod\perltoc.pod if exist $(CCHOME)\bin\libstdc++-6.dll $(XCOPY) $(CCHOME)\bin\libstdc++-6.dll ..\t\$(NULL) .ENDIF -test : $(RIGHTMAKE) test-prep +test : test-prep set PERL_STATIC_EXT=$(STATIC_EXT) && \ cd ..\t && $(PERLEXE) -I..\lib harness $(TEST_SWITCHES) $(TEST_FILES) @@ -1527,7 +1453,7 @@ test-notty : test-prep set PERL_SKIP_TTY_TEST=1 && \ cd ..\t && $(PERLEXE) -I.\lib harness $(TEST_SWITCHES) $(TEST_FILES) -_test : $(RIGHTMAKE) +_test : $(XCOPY) $(PERLEXE) ..\t\$(NULL) $(XCOPY) $(PERLDLL) ..\t\$(NULL) $(XCOPY) $(GLOBEXE) ..\t\$(NULL) |