X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b9315eb77090dbef647c0ef638df43b761767aa..3fd528b939f44c0e0535fc5f3aff40989fb67a45:/distrib/msw/tmake/b32.t diff --git a/distrib/msw/tmake/b32.t b/distrib/msw/tmake/b32.t index 3fb5fd74c9..ffbf12197c 100644 --- a/distrib/msw/tmake/b32.t +++ b/distrib/msw/tmake/b32.t @@ -38,6 +38,8 @@ next; } + $isCFile = $file =~ /\.c$/; + my $isOleObj = $wxMSW{$file} =~ /\bO\b/; $file =~ s/cp?p?$/obj/; my $obj = "\$(MSWDIR)\\" . $file . " "; @@ -47,7 +49,7 @@ #! remember that this file is in ole subdir $project{"WXOLEOBJS"} .= $obj; } - + $project{"WXCOBJS"} .= $obj if $isCFile; } #$} @@ -201,7 +203,8 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c foreach (@objs) { $text .= $_ . ": "; if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; } - s/obj$/\$(SRCSUFF)/; + $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; + s/obj$/$suffix/; $text .= $_ . "\n\n"; } #$}