X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9d61c23a836b4e4f76d117d18d6b9848b915c39..6e29a95a9af77b000e1da5f92fb6798a070f8d2a:/distrib/msw/tmake/b32.t?ds=inline diff --git a/distrib/msw/tmake/b32.t b/distrib/msw/tmake/b32.t index 71cb6946ec..751281f9de 100644 --- a/distrib/msw/tmake/b32.t +++ b/distrib/msw/tmake/b32.t @@ -38,10 +38,16 @@ next; } - my $isOle = $wxMSW{$file} =~ /\bO\b/; + my $isOleObj = $wxMSW{$file} =~ /\bO\b/; $file =~ s/cp?p?$/obj/; - $project{"WXMSWOBJS"} .= ($isOle ? "\$(OLEDIR)\\" : "\$(MSWDIR)\\") - . $file . " " + my $obj = "\$(MSWDIR)\\" . $file . " "; + + $project{"WXMSWOBJS"} .= $obj; + if ( $isOleObj ) { + #! remember that this file is in ole subdir + $project{"WXOLEOBJS"} .= $obj; + } + } #$} @@ -194,6 +200,7 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c my @objs = split; foreach (@objs) { $text .= $_ . ": "; + if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; } s/obj$/\$(SRCSUFF)/; $text .= $_ . "\n\n"; }