X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2071dda0b6016afed8777a4dd23f0ada537026b..3fd528b939f44c0e0535fc5f3aff40989fb67a45:/distrib/msw/tmake/bcc.t diff --git a/distrib/msw/tmake/bcc.t b/distrib/msw/tmake/bcc.t index b3c3ffe111..e8ad7db29d 100644 --- a/distrib/msw/tmake/bcc.t +++ b/distrib/msw/tmake/bcc.t @@ -28,8 +28,11 @@ #! needs extra files (sql*.h) so not compiled by default. next if $file =~ /^odbc\./; + $isCFile = $file =~ /\.c$/; $file =~ s/cp?p?$/obj/; - $project{"WXCOMMONOBJS"} .= "\$(MSWDIR)\\" . $file . " " + $obj = "\$(MSWDIR)\\" . $file . " "; + $project{"WXCOMMONOBJS"} .= $obj; + $project{"WXCOBJS"} .= $obj if $isCFile; } #! special hack for Borland in 16 bits needs this file @@ -39,8 +42,11 @@ #! don't take files not appropriate for 16-bit Windows next if $wxMSW{$file} =~ /\b(32|O)\b/; + $isCFile = $file =~ /\.c$/; $file =~ s/cp?p?$/obj/; - $project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " " + $obj = "\$(MSWDIR)\\" . $file . " "; + $project{"WXMSWOBJS"} .= $obj; + $project{"WXCOBJS"} .= $obj if $isCFile; } #$} @@ -159,7 +165,8 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c my @objs = split; foreach (@objs) { $text .= $_ . ": "; - s/obj/\$(SRCSUFF)/; + $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; + s/obj/$suffix/; $text .= $_ . "\n\n"; } #$} @@ -172,8 +179,9 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c my @objs = split; foreach (@objs) { $text .= $_ . ": "; + $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; s/MSWDIR/COMMDIR/; - s/obj/\$(SRCSUFF)/; + s/obj/$suffix/; $text .= $_ . "\n\n"; } #$} @@ -230,7 +238,7 @@ wxxpm: $(CFG) png: $(CFG) cd $(WXDIR)\src\png - make -f makefile.bcc + make -f makefile.bcc cd $(WXDIR)\src\msw clean_png: @@ -297,3 +305,11 @@ clean: $(PERIPH_CLEAN_TARGET) cleanall: clean +MFTYPE=bcc +# Can't use this or we'll have to distribute all tmake files with wxWindows +#makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t + +self: + cd $(WXWIN)\distrib\msw\tmake + tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) + copy makefile.$(MFTYPE) $(WXWIN)\src\msw