#! 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
#! 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;
}
#$}
my @objs = split;
foreach (@objs) {
$text .= $_ . ": ";
- s/obj/\$(SRCSUFF)/;
+ $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
+ s/obj/$suffix/;
$text .= $_ . "\n\n";
}
#$}
my @objs = split;
foreach (@objs) {
$text .= $_ . ": ";
+ $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
s/MSWDIR/COMMDIR/;
- s/obj/\$(SRCSUFF)/;
+ s/obj/$suffix/;
$text .= $_ . "\n\n";
}
#$}
png: $(CFG)
cd $(WXDIR)\src\png
- make -f makefile.bcc
+ make -f makefile.bcc
cd $(WXDIR)\src\msw
clean_png:
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