Watcom makefile fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ee31c269fc
commit
d98fcc003d
@ -10,7 +10,6 @@
|
|||||||
#! Created: 14.07.99
|
#! Created: 14.07.99
|
||||||
#! Version: $Id$
|
#! Version: $Id$
|
||||||
#!#############################################################################
|
#!#############################################################################
|
||||||
|
|
||||||
#${
|
#${
|
||||||
#! include the code which parses filelist.txt file and initializes
|
#! include the code which parses filelist.txt file and initializes
|
||||||
#! %wxCommon, %wxGeneric and %wxMSW hashes.
|
#! %wxCommon, %wxGeneric and %wxMSW hashes.
|
||||||
@ -34,8 +33,10 @@
|
|||||||
#! doesn't compile, apparently
|
#! doesn't compile, apparently
|
||||||
next if $file =~ /^imagjpeg\./;
|
next if $file =~ /^imagjpeg\./;
|
||||||
|
|
||||||
|
$isCFile = $file =~ /\.c$/;
|
||||||
$file =~ s/cp?p?$/obj/;
|
$file =~ s/cp?p?$/obj/;
|
||||||
$project{"WXCOMMONOBJS"} .= $file . " "
|
$project{"WXCOMMONOBJS"} .= $file . " ";
|
||||||
|
$project{"WXCOBJS"} .= $file . " " if $isCFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach $file (sort keys %wxMSW) {
|
foreach $file (sort keys %wxMSW) {
|
||||||
@ -44,17 +45,20 @@
|
|||||||
|
|
||||||
next if $wxGeneric{$file} =~ /\b16\b/;
|
next if $wxGeneric{$file} =~ /\b16\b/;
|
||||||
|
|
||||||
|
my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
|
||||||
|
my $isCFile = $file =~ /\.c$/;
|
||||||
$file =~ s/cp?p?$/obj/;
|
$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()
|
# This file was automatically generated by tmake at #$ Now()
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE WAT.T!
|
# 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
|
# File: makefile.wat
|
||||||
# Author: Julian Smart
|
# Author: Julian Smart
|
||||||
@ -86,8 +90,8 @@ EXTRATARGETSCLEAN = clean_xpm clean_png clean_zlib
|
|||||||
GENDIR=$(WXDIR)\src\generic
|
GENDIR=$(WXDIR)\src\generic
|
||||||
COMMDIR=$(WXDIR)\src\common
|
COMMDIR=$(WXDIR)\src\common
|
||||||
XPMDIR=$(WXDIR)\src\xpm
|
XPMDIR=$(WXDIR)\src\xpm
|
||||||
OLEDIR=ole
|
|
||||||
MSWDIR=$(WXDIR)\src\msw
|
MSWDIR=$(WXDIR)\src\msw
|
||||||
|
OLEDIR=$(MSWDIR)\ole
|
||||||
|
|
||||||
DOCDIR = $(WXDIR)\docs
|
DOCDIR = $(WXDIR)\docs
|
||||||
|
|
||||||
@ -134,13 +138,22 @@ cleanall: clean
|
|||||||
foreach (@objs) {
|
foreach (@objs) {
|
||||||
$text .= $_ . ': $(';
|
$text .= $_ . ': $(';
|
||||||
s/\.obj$//;
|
s/\.obj$//;
|
||||||
if ( $wxMSW{$_} =~ /\bO\b/ ) {
|
if ( $project{"WXOLEOBJS"} =~ /\b\Q$_\E\b/ ) {
|
||||||
$text .= 'OLEDIR)\\';
|
$text .= 'OLEDIR)\\';
|
||||||
} else {
|
} else {
|
||||||
$text .= 'MSWDIR)\\';
|
$text .= 'MSWDIR)\\';
|
||||||
}
|
}
|
||||||
$text .= $_ . ".cpp\n" .
|
my $suffix, $cc;
|
||||||
' *$(CCC) $(CPPFLAGS) $(IFLAGS) $<' . "\n\n";
|
if ( $project{"WXCOBJS"} =~ /\b\Q$_\E\b/ ) {
|
||||||
|
$suffix = "c";
|
||||||
|
$cc="CC";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$suffix = "cpp";
|
||||||
|
$cc="CCC";
|
||||||
|
}
|
||||||
|
$text .= $_ . ".$suffix\n" .
|
||||||
|
" *\$($cc) \$(CPPFLAGS) \$(IFLAGS) \$<" . "\n\n";
|
||||||
}
|
}
|
||||||
#$}
|
#$}
|
||||||
|
|
||||||
@ -154,8 +167,17 @@ cleanall: clean
|
|||||||
$text .= $_;
|
$text .= $_;
|
||||||
s/\.obj$//;
|
s/\.obj$//;
|
||||||
$text .= ': $(COMMDIR)\\';
|
$text .= ': $(COMMDIR)\\';
|
||||||
$text .= $_ . ".cpp\n" .
|
my $suffix, $cc;
|
||||||
' *$(CCC) $(CPPFLAGS) $(IFLAGS) $<' . "\n\n";
|
if ( $project{"WXCOBJS"} =~ /\b\Q$_\E\b/ ) {
|
||||||
|
$suffix = "c";
|
||||||
|
$cc="CC";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$suffix = "cpp";
|
||||||
|
$cc="CCC";
|
||||||
|
}
|
||||||
|
$text .= $_ . ".$suffix\n" .
|
||||||
|
" *\$($cc) \$(CPPFLAGS) \$(IFLAGS) \$<" . "\n\n";
|
||||||
}
|
}
|
||||||
#$}
|
#$}
|
||||||
|
|
||||||
|
@ -1,16 +1,23 @@
|
|||||||
|
|
||||||
|
|
||||||
# This file was automatically generated by tmake at 18:37, 1999/10/22
|
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE WAT.T!
|
|
||||||
|
|
||||||
#!/binb/wmake.exe
|
#!/binb/wmake.exe
|
||||||
|
|
||||||
|
# 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!
|
||||||
|
|
||||||
#
|
#
|
||||||
# File: makefile.wat
|
# File: makefile.wat
|
||||||
# Author: Julian Smart
|
# Author: Julian Smart
|
||||||
# Created: 1998
|
# Created: 1998
|
||||||
#
|
#
|
||||||
# Makefile : Builds wxWindows library for Watcom C++, WIN32
|
# 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 = ..\..
|
WXDIR = ..\..
|
||||||
|
|
||||||
@ -27,8 +34,8 @@ EXTRATARGETSCLEAN = clean_xpm clean_png clean_zlib
|
|||||||
GENDIR=$(WXDIR)\src\generic
|
GENDIR=$(WXDIR)\src\generic
|
||||||
COMMDIR=$(WXDIR)\src\common
|
COMMDIR=$(WXDIR)\src\common
|
||||||
XPMDIR=$(WXDIR)\src\xpm
|
XPMDIR=$(WXDIR)\src\xpm
|
||||||
OLEDIR=ole
|
|
||||||
MSWDIR=$(WXDIR)\src\msw
|
MSWDIR=$(WXDIR)\src\msw
|
||||||
|
OLEDIR=$(MSWDIR)\ole
|
||||||
|
|
||||||
DOCDIR = $(WXDIR)\docs
|
DOCDIR = $(WXDIR)\docs
|
||||||
|
|
||||||
@ -290,7 +297,7 @@ accel.obj: $(MSWDIR)\accel.cpp
|
|||||||
app.obj: $(MSWDIR)\app.cpp
|
app.obj: $(MSWDIR)\app.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
automtn.obj: $(MSWDIR)\ole\automtn.cpp
|
automtn.obj: $(OLEDIR)\automtn.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
bitmap.obj: $(MSWDIR)\bitmap.cpp
|
bitmap.obj: $(MSWDIR)\bitmap.cpp
|
||||||
@ -341,7 +348,7 @@ cursor.obj: $(MSWDIR)\cursor.cpp
|
|||||||
data.obj: $(MSWDIR)\data.cpp
|
data.obj: $(MSWDIR)\data.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
dataobj.obj: $(MSWDIR)\ole\dataobj.cpp
|
dataobj.obj: $(OLEDIR)\dataobj.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
dc.obj: $(MSWDIR)\dc.cpp
|
dc.obj: $(MSWDIR)\dc.cpp
|
||||||
@ -377,10 +384,10 @@ dirdlg.obj: $(MSWDIR)\dirdlg.cpp
|
|||||||
dragimag.obj: $(MSWDIR)\dragimag.cpp
|
dragimag.obj: $(MSWDIR)\dragimag.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
dropsrc.obj: $(MSWDIR)\ole\dropsrc.cpp
|
dropsrc.obj: $(OLEDIR)\dropsrc.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
droptgt.obj: $(MSWDIR)\ole\droptgt.cpp
|
droptgt.obj: $(OLEDIR)\droptgt.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
filedlg.obj: $(MSWDIR)\filedlg.cpp
|
filedlg.obj: $(MSWDIR)\filedlg.cpp
|
||||||
@ -446,7 +453,7 @@ msgdlg.obj: $(MSWDIR)\msgdlg.cpp
|
|||||||
nativdlg.obj: $(MSWDIR)\nativdlg.cpp
|
nativdlg.obj: $(MSWDIR)\nativdlg.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
oleutils.obj: $(MSWDIR)\ole\oleutils.cpp
|
oleutils.obj: $(OLEDIR)\oleutils.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
ownerdrw.obj: $(MSWDIR)\ownerdrw.cpp
|
ownerdrw.obj: $(MSWDIR)\ownerdrw.cpp
|
||||||
@ -545,7 +552,7 @@ utils.obj: $(MSWDIR)\utils.cpp
|
|||||||
utilsexc.obj: $(MSWDIR)\utilsexc.cpp
|
utilsexc.obj: $(MSWDIR)\utilsexc.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
uuid.obj: $(MSWDIR)\ole\uuid.cpp
|
uuid.obj: $(OLEDIR)\uuid.cpp
|
||||||
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
*$(CCC) $(CPPFLAGS) $(IFLAGS) $<
|
||||||
|
|
||||||
wave.obj: $(MSWDIR)\wave.cpp
|
wave.obj: $(MSWDIR)\wave.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user