#! 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
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
+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