#! Created: 14.07.99
#! Version: $Id$
#!#############################################################################
-
#${
#! include the code which parses filelist.txt file and initializes
#! %wxCommon, %wxGeneric and %wxMSW hashes.
#! doesn't compile, apparently
next if $file =~ /^imagjpeg\./;
+ $isCFile = $file =~ /\.c$/;
$file =~ s/cp?p?$/obj/;
- $project{"WXCOMMONOBJS"} .= $file . " "
+ $project{"WXCOMMONOBJS"} .= $file . " ";
+ $project{"WXCOBJS"} .= $file . " " if $isCFile;
}
foreach $file (sort keys %wxMSW) {
next if $wxGeneric{$file} =~ /\b16\b/;
+ my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
+ my $isCFile = $file =~ /\.c$/;
$file =~ s/cp?p?$/obj/;
- $project{"WXMSWOBJS"} .= $file . " "
+ $project{"WXMSWOBJS"} .= $file . " ";
+ $project{"WXCOBJS"} .= $file . " " if $isCFile;
+ $project{"WXOLEOBJS"} .= $file . " " if $isOleObj
}
#$}
+#! an attempt to embed '#' directly in the string somehow didn't work...
+#$ $text = chr(35) . '!/binb/wmake.exe';
# This file was automatically generated by tmake at #$ Now()
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE WAT.T!
-#! an attempt to embed '#' directly in the string somehow didn't work...
-#$ $text = chr(35) . '!/binb/wmake.exe';
-
#
# File: makefile.wat
# Author: Julian Smart
GENDIR=$(WXDIR)\src\generic
COMMDIR=$(WXDIR)\src\common
XPMDIR=$(WXDIR)\src\xpm
-OLEDIR=ole
MSWDIR=$(WXDIR)\src\msw
+OLEDIR=$(MSWDIR)\ole
DOCDIR = $(WXDIR)\docs
foreach (@objs) {
$text .= $_ . ': $(';
s/\.obj$//;
- if ( $wxMSW{$_} =~ /\bO\b/ ) {
+ if ( $project{"WXOLEOBJS"} =~ /\b\Q$_\E\b/ ) {
$text .= 'OLEDIR)\\';
} else {
$text .= 'MSWDIR)\\';
}
- $text .= $_ . ".cpp\n" .
- ' *$(CCC) $(CPPFLAGS) $(IFLAGS) $<' . "\n\n";
+ my $suffix, $cc;
+ if ( $project{"WXCOBJS"} =~ /\b\Q$_\E\b/ ) {
+ $suffix = "c";
+ $cc="CC";
+ }
+ else {
+ $suffix = "cpp";
+ $cc="CCC";
+ }
+ $text .= $_ . ".$suffix\n" .
+ " *\$($cc) \$(CPPFLAGS) \$(IFLAGS) \$<" . "\n\n";
}
#$}
$text .= $_;
s/\.obj$//;
$text .= ': $(COMMDIR)\\';
- $text .= $_ . ".cpp\n" .
- ' *$(CCC) $(CPPFLAGS) $(IFLAGS) $<' . "\n\n";
+ my $suffix, $cc;
+ if ( $project{"WXCOBJS"} =~ /\b\Q$_\E\b/ ) {
+ $suffix = "c";
+ $cc="CC";
+ }
+ else {
+ $suffix = "cpp";
+ $cc="CCC";
+ }
+ $text .= $_ . ".$suffix\n" .
+ " *\$($cc) \$(CPPFLAGS) \$(IFLAGS) \$<" . "\n\n";
}
#$}
+#!/binb/wmake.exe
-
-# This file was automatically generated by tmake at 18:37, 1999/10/22
+# This file was automatically generated by tmake at 09:14, 1999/10/25
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE WAT.T!
-#!/binb/wmake.exe
-
#
# File: makefile.wat
# Author: Julian Smart
# Created: 1998
#
# Makefile : Builds wxWindows library for Watcom C++, WIN32
+#
+# NOTE: This file is generated from wat.t by tmake, but not all bugs have
+# been removed from this process. If wxWindows doesn't compile,
+# check the following and edit this makefile accordingly:
+#
+# - OLE-related files such as oleutils.cpp should have 'ole\' prepended
+# to the path.
+# - extended.c, gsocket.c, unzip.c must be compiled using $(CC), not $(CCC).
+# They may also be wrongly specified as extended.cpp, etc.
WXDIR = ..\..
GENDIR=$(WXDIR)\src\generic
COMMDIR=$(WXDIR)\src\common
XPMDIR=$(WXDIR)\src\xpm
-OLEDIR=ole
MSWDIR=$(WXDIR)\src\msw
+OLEDIR=$(MSWDIR)\ole
DOCDIR = $(WXDIR)\docs
app.obj: $(MSWDIR)\app.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
-automtn.obj: $(MSWDIR)\ole\automtn.cpp
+automtn.obj: $(OLEDIR)\automtn.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
bitmap.obj: $(MSWDIR)\bitmap.cpp
data.obj: $(MSWDIR)\data.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
-dataobj.obj: $(MSWDIR)\ole\dataobj.cpp
+dataobj.obj: $(OLEDIR)\dataobj.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
dc.obj: $(MSWDIR)\dc.cpp
dragimag.obj: $(MSWDIR)\dragimag.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
-dropsrc.obj: $(MSWDIR)\ole\dropsrc.cpp
+dropsrc.obj: $(OLEDIR)\dropsrc.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
-droptgt.obj: $(MSWDIR)\ole\droptgt.cpp
+droptgt.obj: $(OLEDIR)\droptgt.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
filedlg.obj: $(MSWDIR)\filedlg.cpp
nativdlg.obj: $(MSWDIR)\nativdlg.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
-oleutils.obj: $(MSWDIR)\ole\oleutils.cpp
+oleutils.obj: $(OLEDIR)\oleutils.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
ownerdrw.obj: $(MSWDIR)\ownerdrw.cpp
utilsexc.obj: $(MSWDIR)\utilsexc.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
-uuid.obj: $(MSWDIR)\ole\uuid.cpp
+uuid.obj: $(OLEDIR)\uuid.cpp
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
wave.obj: $(MSWDIR)\wave.cpp