X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2071dda0b6016afed8777a4dd23f0ada537026b..3ce369e6876c49ad7a101ad222048bd5446b7125:/distrib/msw/tmake/dos.t diff --git a/distrib/msw/tmake/dos.t b/distrib/msw/tmake/dos.t index 0b92a431af..b8e97b7ed3 100644 --- a/distrib/msw/tmake/dos.t +++ b/distrib/msw/tmake/dos.t @@ -15,7 +15,7 @@ #! now transform these hashes into $project tags foreach $file (sort keys %wxGeneric) { if ( $wxGeneric{$file} =~ /\b(PS|G|U)\b/ ) { - #! this file for some reason was compiled for VC++ 1.52 + #! this file for some reason wasn't compiled for VC++ 1.52 next unless $file =~ /^prntdlgg\./; } @@ -27,8 +27,11 @@ #! socket files don't compile under Win16 currently next if $wxCommon{$file} =~ /\b(32|S)\b/; + $isCFile = $file =~ /\.c$/; $file =~ s/cp?p?$/obj/; - $project{"WXCOMMONOBJS"} .= "\$(COMMDIR)\\" . $file . " " + $obj = "\$(COMMDIR)\\" . $file . " "; + $project{"WXCOMMONOBJS"} .= $obj; + $project{"WXCOBJS"} .= $obj if $isCFile; } foreach $file (sort keys %wxMSW) { @@ -177,11 +180,20 @@ $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF) $_ = $project{"WXMSWOBJS"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"}; my @objs = split; foreach (@objs) { - s:\\:/:; - $text .= $_ . ': $*.$(SRCSUFF)' . "\n" . - ' cl @<<' . "\n" . - '$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" . - "<<\n\n"; + if ( $project{"WXCOBJS"} =~ /\Q$_/ ) { + s:\\:/:; + $text .= $_ . ': $*.c' . "\n" . + ' cl @<<' . "\n" . + '$(CPPFLAGS2) /Fo$@ /c /Tc $*.c' . "\n" . + "<<\n\n"; + } + else { + s:\\:/:; + $text .= $_ . ': $*.$(SRCSUFF)' . "\n" . + ' cl @<<' . "\n" . + '$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" . + "<<\n\n"; + } } #$} @@ -253,3 +265,8 @@ clean: $(PERIPH_CLEAN_TARGET) cleanall: clean +MFTYPE=dos +makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t + cd $(WXWIN)\distrib\msw\tmake + tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) + copy makefile.$(MFTYPE) $(WXWIN)\src\msw