Watcom C++ mods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-07 15:22:05 +00:00
parent 2432b92dd7
commit 8a2c6ef8d1
68 changed files with 821 additions and 363 deletions

View File

@@ -266,6 +266,8 @@ samples/wxsocket/*.cpp
samples/wxsocket/*.h samples/wxsocket/*.h
samples/wxsocket/*.def samples/wxsocket/*.def
samples/wxsocket/makefile* samples/wxsocket/makefile*
samples/wxsocket/client.wat
samples/wxsocket/server.wat
samples/wxsocket/*.xbm samples/wxsocket/*.xbm
samples/wxsocket/*.xpm samples/wxsocket/*.xpm
samples/wxsocket/*.ico samples/wxsocket/*.ico

View File

@@ -43,6 +43,7 @@ src/msw/*.prj
src/xpm/*.c src/xpm/*.c
src/xpm/*.h src/xpm/*.h
src/xpm/makefile*
src/xpm/changes src/xpm/changes
src/xpm/readme src/xpm/readme
src/xpm/readme.msw src/xpm/readme.msw

View File

@@ -229,7 +229,7 @@ application have all been processed, wxWindows sends an OnIdle event to the appl
sends an OnIdle event to each application window, allowing windows to do idle processing such as updating sends an OnIdle event to each application window, allowing windows to do idle processing such as updating
their appearance. If either wxApp::OnIdle or a window OnIdle function requested more time, by their appearance. If either wxApp::OnIdle or a window OnIdle function requested more time, by
caling \helpref{wxIdleEvent::ReqestMore}{wxidleeventrequestmore}, wxWindows will send another OnIdle caling \helpref{wxIdleEvent::ReqestMore}{wxidleeventrequestmore}, wxWindows will send another OnIdle
event to the application event. This will occur in a loop until either a user event is found to be event to the application object. This will occur in a loop until either a user event is found to be
pending, or OnIdle requests no more time. Then all pending user events are processed until the system pending, or OnIdle requests no more time. Then all pending user events are processed until the system
goes idle again, when OnIdle is called, and so on. goes idle again, when OnIdle is called, and so on.

View File

@@ -7,7 +7,7 @@
wxWindows is a C++ framework providing GUI (Graphical User wxWindows is a C++ framework providing GUI (Graphical User
Interface) and other facilities on more than one platform. Version 2.0 currently Interface) and other facilities on more than one platform. Version 2.0 currently
supports subsets MS Windows (16-bit, Windows 95 and Windows NT) and GTK+, with Motif supports MS Windows (16-bit, Windows 95 and Windows NT) and GTK+, with Motif
and Mac ports in an advanced state. and Mac ports in an advanced state.
wxWindows was originally developed at the Artificial Intelligence wxWindows was originally developed at the Artificial Intelligence
@@ -29,7 +29,7 @@ variants, unless otherwise stated. All trademarks are acknowledged.
wxWindows was developed to provide a cheap and flexible way to maximize wxWindows was developed to provide a cheap and flexible way to maximize
investment in GUI application development. While a number of commercial investment in GUI application development. While a number of commercial
class libraries already exist for cross-platform development, class libraries already existed for cross-platform development,
none met all of the following criteria: none met all of the following criteria:
\begin{enumerate}\itemsep=0pt \begin{enumerate}\itemsep=0pt
@@ -39,22 +39,24 @@ none met all of the following criteria:
\item support for a wide range of compilers. \item support for a wide range of compilers.
\end{enumerate} \end{enumerate}
Since wxWindows was started, several other free or almost-free GUI frameworks have
emerged. However, none has the range of features, flexibility, documentation and the
well-established development team that wxWindows has.
As public domain software and a project open to everyone, wxWindows has As public domain software and a project open to everyone, wxWindows has
benefited from comments, ideas, bug fixes, enhancements and the sheer benefited from comments, ideas, bug fixes, enhancements and the sheer
enthusiasm of users, especially via the Internet. This gives wxWindows a enthusiasm of users, especially via the Internet. This gives wxWindows a
certain advantage over its commercial brothers, and a robustness against certain advantage over its commercial competitors (and over free libraries
without an independent development team), plus a robustness against
the transience of one individual or company. This openness and the transience of one individual or company. This openness and
availability of source code is especially important when the future of availability of source code is especially important when the future of
thousands of lines of application code may depend upon the longevity of thousands of lines of application code may depend upon the longevity of
the underlying class library. the underlying class library.
In writing wxWindows, completeness has sometimes been traded for Version 2.0 goes much further than previous versions in terms of generality and features,
portability and simplicity of programming. Version 2.0 goes much
further than previous versions in terms of generality and features,
allowing applications to be produced allowing applications to be produced
that are often indistinguishable from those produced using single-platform that are often indistinguishable from those produced using single-platform
toolkits toolkits such as Motif and MFC.
such as Motif and MFC.
The importance of using a platform-independent class library cannot be The importance of using a platform-independent class library cannot be
overstated, since GUI application development is very time-consuming, overstated, since GUI application development is very time-consuming,
@@ -62,10 +64,9 @@ and sustained popularity of particular GUIs cannot be guaranteed.
Code can very quickly become obsolete if it addresses the wrong Code can very quickly become obsolete if it addresses the wrong
platform or audience. wxWindows helps to insulate the programmer from platform or audience. wxWindows helps to insulate the programmer from
these winds of change. Although wxWindows may not be suitable for these winds of change. Although wxWindows may not be suitable for
every application, it provides access to most of the functionality a every application (such as an OLE-intensive program), it provides access to most of the functionality a
GUI program normally requires, plus some extras such as form GUI program normally requires, plus some extras such as network programming
construction, interprocess communication and PostScript output, and and PostScript output, and can of course be extended as needs dictate. As a bonus, it provides
can of course be extended as needs dictate. As a bonus, it provides
a cleaner programming interface than the native a cleaner programming interface than the native
APIs. Programmers may find it worthwhile to use wxWindows even if they APIs. Programmers may find it worthwhile to use wxWindows even if they
are developing on only one platform. are developing on only one platform.
@@ -76,14 +77,19 @@ here are some of the benefits:
\begin{itemize}\itemsep=0pt \begin{itemize}\itemsep=0pt
\item Low cost (free, in fact!) \item Low cost (free, in fact!)
\item You get the source. \item You get the source.
\item Available on a variety of popular platforms.
\item Works with almost all popular C++ compilers.
\item Several example programs. \item Several example programs.
\item Over 700 pages of printable and on-line documentation. \item Over 700 pages of printable and on-line documentation.
\item Includes Tex2RTF, to allow you to produce your own documentation
in Windows Help, HTML and Word RTF formats.
\item Simple-to-use, object-oriented API. \item Simple-to-use, object-oriented API.
\item Graphics calls include splines, polylines, rounded rectangles, etc. \item Flexible event system.
\item Graphics calls include lines, rounded rectangles, splines, polylines, etc.
\item Constraint-based layout option. \item Constraint-based layout option.
\item Print/preview and document/view architectures. \item Print/preview and document/view architectures.
\item Status line facility, toolbar \item Toolbar, notebook, tree control, advanced list control classes.
\item Encapsulated PostScript generation under Unix, normal MS Windows printing on the \item PostScript generation under Unix, normal MS Windows printing on the
PC. PC.
\item MDI (Multiple Document Interface) support. \item MDI (Multiple Document Interface) support.
\item Can be used to create DLLs under Windows, dynamic libraries on Unix. \item Can be used to create DLLs under Windows, dynamic libraries on Unix.
@@ -92,7 +98,7 @@ PC.
them to the clipboard. them to the clipboard.
\item An API for invoking help from applications. \item An API for invoking help from applications.
\item Dialog Editor for building dialogs. \item Dialog Editor for building dialogs.
\item Socket support. \item Network support via a family of socket and protocol classes.
\end{itemize} \end{itemize}
\section{Changes from version 1.xx}\label{versionchanges} \section{Changes from version 1.xx}\label{versionchanges}
@@ -167,7 +173,9 @@ following setups.
\begin{enumerate}\itemsep=0pt \begin{enumerate}\itemsep=0pt
\item A 486 or higher PC running MS Windows. \item A 486 or higher PC running MS Windows.
\item One of Microsoft Visual C++ 4.0 or higher, Borland C++, Gnu-Win32. \item A Windows compiler: most are supported, but please see {\tt install.txt} for
details. Supported compilers include Microsoft Visual C++ 4.0 or higher, Borland C++, Cygwin,
Metrowerks CodeWarrior.
\item At least 60 MB of disk space. \item At least 60 MB of disk space.
\end{enumerate} \end{enumerate}
@@ -399,7 +407,7 @@ wxWindows does not use templates since it is a notoriously unportable feature.
Some compilers, such as Borland C++ and Microsoft C++, support Some compilers, such as Borland C++ and Microsoft C++, support
precompiled headers. This can save a great deal of compiling time. The precompiled headers. This can save a great deal of compiling time. The
recommended approach is to precompile {\tt ``wx.h''}, using this recommended approach is to precompile {\tt "wx.h"}, using this
precompiled header for compiling both wxWindows itself and any precompiled header for compiling both wxWindows itself and any
wxWindows applications. For Windows compilers, two dummy source files wxWindows applications. For Windows compilers, two dummy source files
are provided (one for normal applications and one for creating DLLs) are provided (one for normal applications and one for creating DLLs)
@@ -409,8 +417,7 @@ However, there are several downsides to using precompiled headers. One
is that to take advantage of the facility, you often need to include is that to take advantage of the facility, you often need to include
more header files than would normally be the case. This means that more header files than would normally be the case. This means that
changing a header file will cause more recompilations (in the case of changing a header file will cause more recompilations (in the case of
wxWindows, everything needs to be recompiled since everything includes wxWindows, everything needs to be recompiled since everything includes {\tt "wx.h"}!)
{\tt ``wx.h''}!)
A related problem is that for compilers that don't have precompiled A related problem is that for compilers that don't have precompiled
headers, including a lot of header files slows down compilation headers, including a lot of header files slows down compilation
@@ -460,8 +467,9 @@ descriptions of miscellaneous file handling functions.
A number of `extras' are supplied with wxWindows, to complement A number of `extras' are supplied with wxWindows, to complement
the GUI functionality in the main class library. These are found the GUI functionality in the main class library. These are found
below the utils directory and usually have their own source, library below the utils directory and usually have their own source, library
and documentation directories. For larger user-contributed packages, and documentation directories. For other user-contributed packages,
see the directory /pub/packages/wxwin/contrib. see the directory ftp://www.remstar.com/pub/wxwin/contrib, which is
more easily accessed via the Contributions page on the Web site.
\section{wxHelp}\label{wxhelp} \section{wxHelp}\label{wxhelp}
@@ -596,8 +604,7 @@ The same goes for other data types: use classes wherever possible.
Don't use absolute panel item positioning if you can avoid it. Different GUIs have Don't use absolute panel item positioning if you can avoid it. Different GUIs have
very differently sized panel items. Consider using the constraint system, although this very differently sized panel items. Consider using the constraint system, although this
can be complex to program. If you needs are simple, the default relative positioning can be complex to program.
behaviour may be adequate (using default position values and wxPanel::NewLine).
Alternatively, you could use alternative .wrc (wxWindows resource files) on different Alternatively, you could use alternative .wrc (wxWindows resource files) on different
platforms, with slightly different dimensions in each. Or space your panel items out platforms, with slightly different dimensions in each. Or space your panel items out

View File

@@ -1090,10 +1090,14 @@ Under X, sleeps for the specified number of seconds.
\membersection{::wxStripMenuCodes} \membersection{::wxStripMenuCodes}
\func{void}{wxStripMenuCodes}{\param{const wxString\& }{in}, \param{const wxString\& }{out}} \func{wxString}{wxStripMenuCodes}{\param{const wxString\& }{in}}
\func{void}{wxStripMenuCodes}{\param{char* }{in}, \param{char* }{out}}
Strips any menu codes from {\it in} and places the result Strips any menu codes from {\it in} and places the result
in {\it out}. Menu codes include \& (mark the next character with an underline in {\it out} (or returns the new string, in the first form).
Menu codes include \& (mark the next character with an underline
as a keyboard shortkey in Windows and Motif) and $\backslash$t (tab in Windows). as a keyboard shortkey in Windows and Motif) and $\backslash$t (tab in Windows).
\membersection{::wxStartTimer}\label{wxstarttimer} \membersection{::wxStartTimer}\label{wxstarttimer}

View File

@@ -1,7 +1,7 @@
\section{\class{wxStringList}}\label{wxstringlist} \section{\class{wxStringList}}\label{wxstringlist}
A string list is a list which is assumed to contain strings, with a A string list is a list which is assumed to contain strings.
specific member functions. Memory is allocated when strings are added to Memory is allocated when strings are added to
the list, and deallocated by the destructor or by the {\bf Delete}\rtfsp the list, and deallocated by the destructor or by the {\bf Delete}\rtfsp
member. member.

View File

@@ -187,12 +187,13 @@ If {\bf caseSensitive}, comparison is case sensitive (the default).
Returns the index of the first item matched, or NOT\_FOUND. Returns the index of the first item matched, or NOT\_FOUND.
\membersection{wxString::Insert}\label{wxstringInsert} % TODO
%\membersection{wxString::insert}\label{wxstringinsert}
\func{void}{Insert}{\param{const wxString\&}{ str}, \param{uint}{ index}} % Wrong!
%\func{void}{insert}{\param{const wxString\&}{ str}, \param{uint}{ index}}
Add new element at the given position. %
%Add new element at the given position.
%
\membersection{wxString::IsAscii}\label{wxstringIsAscii} \membersection{wxString::IsAscii}\label{wxstringIsAscii}
\constfunc{bool}{IsAscii}{\void} \constfunc{bool}{IsAscii}{\void}

View File

@@ -97,15 +97,12 @@ project files are currently supplied.
Watcom C++ 10.6 compilation Watcom C++ 10.6 compilation
--------------------------- ---------------------------
Currently under construction, but so far we have:
1. Make sure your WXWIN variable is set, and uses the FAT (short 1. Make sure your WXWIN variable is set, and uses the FAT (short
name) form. name) form.
2. Change directory to wx\src\msw. Type 'wmake -f makefile.wat' to 2. Change directory to wx\src\msw. Type 'wmake -f makefile.wat' to
make the wxWindows core library. make the wxWindows core library.
3. Change directory to wx\samples\minimal and type 'wmake -f makefile.wat' 3. Change directory to wx\samples\minimal and type 'wmake -f makefile.wat'
to make this sample. There are a lot of link errors at this to make this sample.
point, so can anyone help work out what I've done wrong?
Metrowerks CodeWarrior compilation Metrowerks CodeWarrior compilation
---------------------------------- ----------------------------------

View File

@@ -33,6 +33,8 @@ Add centring, right justify styles to wxStaticText.
Extend wxSystemSettings to get symbols for current nationality, Extend wxSystemSettings to get symbols for current nationality,
e.g. ',' instead of '.' for decimal points. e.g. ',' instead of '.' for decimal points.
Supply correct ctl3d/odbc lib files for BC++, Watcom (corrupt?)
LOW PRIORITY (MEDIUM TERM) LOW PRIORITY (MEDIUM TERM)
-------------------------- --------------------------

View File

@@ -1,11 +1,21 @@
General ToDo General ToDo
------------ ------------
- Write this ToDo list :-)
Please see also: Please see also:
docs/gtk/todo.txt docs/gtk/todo.txt
docs/motif/todo.txt docs/motif/todo.txt
docs/msw/todo.txt docs/msw/todo.txt
- Suggestion from Janos Vegh: the memory-checking classes could
also keep return the size of memory currently allocated, with
a call to return it e.g. int wxDebugContext::GetMemoryUsed().
Maybe even an optional window in debug mode with a tally of memory
usage, how many classes of each kind are in use, etc.? That
would be neat.
- Documentation: mention include files with each class.
- Complete this ToDo list :-)

View File

@@ -150,7 +150,11 @@ public:
// accessors: set/get the item associated with this node // accessors: set/get the item associated with this node
void SetId(const wxTreeItemId& id) { m_itemId = id; } void SetId(const wxTreeItemId& id) { m_itemId = id; }
#ifdef __WATCOMC__
const wxTreeItemId GetId() const { return m_itemId; }
#else
const wxTreeItemId& GetId() const { return (wxTreeItemId&) m_itemId; } const wxTreeItemId& GetId() const { return (wxTreeItemId&) m_itemId; }
#endif
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -30,7 +30,7 @@ public:
~wxFTP(); ~wxFTP();
bool Close(); bool Close();
bool Connect(wxSockAddress& addr); bool Connect(wxSockAddress& addr, bool wait = TRUE);
bool Connect(const wxString& host); bool Connect(const wxString& host);
void SetUser(const wxString& user) { m_user = user; } void SetUser(const wxString& user) { m_user = user; }

View File

@@ -27,7 +27,7 @@ public:
~wxHTTP(); ~wxHTTP();
bool Connect(const wxString& host); bool Connect(const wxString& host);
bool Connect(wxSockAddress& addr); bool Connect(wxSockAddress& addr, bool wait);
bool Abort(); bool Abort();
wxInputStream *GetInputStream(const wxString& path); wxInputStream *GetInputStream(const wxString& path);
inline wxProtocolError GetError() { return m_perr; } inline wxProtocolError GetError() { return m_perr; }

View File

@@ -63,8 +63,8 @@ public:
wxProtocol(); wxProtocol();
bool Reconnect(); bool Reconnect();
virtual bool Connect( const wxString& WXUNUSED(host) ) { return FALSE; } virtual bool Connect( const wxString& WXUNUSED(host) ) { return FALSE; }
virtual bool Connect( wxSockAddress& addr) { return wxSocketClient::Connect(addr); } virtual bool Connect( wxSockAddress& addr, bool WXUNUSED(wait) = TRUE) { return wxSocketClient::Connect(addr); }
virtual bool Abort() = 0; virtual bool Abort() = 0;
virtual wxInputStream *GetInputStream(const wxString& path) = 0; virtual wxInputStream *GetInputStream(const wxString& path) = 0;

View File

@@ -1,8 +1,8 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = $(%WXWIN) WXDIR = $(%WXWIN)

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = checklst
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = conftest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = controls
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

15
samples/db/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = dbtest
OBJECTS = $(PROGRAM).obj listdb.obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = dialogs
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

15
samples/dnd/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = dnd
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -1,43 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = docview
OBJECTS = $(PROGRAM).obj view.obj doc.obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = docview
LNK = $(name).lnk
OBJS = $(name).obj doc.obj view.obj
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
thing: .SYMBOLIC
echo $(WATLIBDIR)
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = docview
OBJECTS = $(PROGRAM).obj view.obj doc.obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = forty
OBJECTS = $(PROGRAM).obj canvas.obj card.obj game.obj pile.obj playerdg.obj scoredg.obj scorefil.obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -1,8 +1,8 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = $(%WXWIN) WXDIR = $(%WXWIN)

15
samples/grid/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

15
samples/help/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = demo
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = image
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -1,43 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = internat
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = minimal
LNK = $(name).lnk
OBJS = $(name).obj
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
thing: .SYMBOLIC
echo $(WATLIBDIR)
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe

View File

@@ -1,43 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = joytest
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = joytest
LNK = $(name).lnk
OBJS = $(name).obj
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
thing: .SYMBOLIC
echo $(WATLIBDIR)
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -1,44 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = layout
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = layout
LNK = $(name).lnk
OBJS = $(name).obj
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
thing: .SYMBOLIC
echo $(WATLIBDIR)
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = listtest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -1,43 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = mdi
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = mdi
LNK = $(name).lnk
OBJS = $(name).obj
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
thing: .SYMBOLIC
echo $(WATLIBDIR)
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -1,43 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = memcheck
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = memcheck
LNK = $(name).lnk
OBJS = $(name).obj
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\wx\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
thing: .SYMBOLIC
echo $(WATLIBDIR)
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -1,8 +1,8 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = ..\..

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -1,42 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = nativdlg
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = hello
LNK = $(name).lnk
OBJS = $(name).obj
PRECOMP=
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = oleauto
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = ownerdrw
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

15
samples/png/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = pngdemo
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = printing
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = regtest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -1,42 +1,15 @@
# #
# Makefile for WATCOM # Makefile for WATCOM
# #
# Created by D.Chubraev, chubraev@iem.ee.ethz.ch # Created by Julian Smart, January 1999
# 8 Nov 1994 #
# #
WXDIR = ..\.. WXDIR = $(%WXWIN)
!include $(WXDIR)\src\makewat.env PROGRAM = resource
OBJECTS = $(PROGRAM).obj
WXLIB = $(WXDIR)\lib !include $(WXDIR)\src\makeprog.wat
NAME = hello
LNK = $(name).lnk
OBJS = $(name).obj
PRECOMP=
all: $(name).exe
$(name).exe : $(OBJS) $(name).res $(LNK) $(WXLIB)\wx$(LEVEL).lib
wlink @$(LNK)
$(BINDCOMMAND) $(name).res
$(name).res : $(name).rc $(WXDIR)\include\msw\wx.rc
$(RC) $(RESFLAGS1) $(name).rc
$(LNK) : makefile.wat
%create $(LNK)
@%append $(LNK) debug all
@%append $(LNK) system $(LINKOPTION)
@%append $(LNK) $(MINDATA)
@%append $(LNK) $(MAXDATA)
@%append $(LNK) $(STACK)
@%append $(LNK) name $(name)
@%append $(LNK) file $(WXLIB)\wx$(LEVEL).lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJS)) do @%append $(LNK) file %i
clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe *.rex

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = sashtest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

15
samples/tab/makefile.wat Normal file
View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = tbtest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = treetest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = typetest
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = validate
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = wxpoem
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = client
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -0,0 +1,15 @@
#
# Makefile for WATCOM
#
# Created by Julian Smart, January 1999
#
#
WXDIR = $(%WXWIN)
PROGRAM = server
OBJECTS = $(PROGRAM).obj
!include $(WXDIR)\src\makeprog.wat

View File

@@ -80,7 +80,7 @@ wxFTP::~wxFTP()
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
////// wxFTP connect and login methods ///////////////////////// ////// wxFTP connect and login methods /////////////////////////
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
bool wxFTP::Connect(wxSockAddress& addr) bool wxFTP::Connect(wxSockAddress& addr, bool WXUNUSED(wait))
{ {
if (!m_handler) { if (!m_handler) {
m_lastError = wxPROTO_NOHNDLR; m_lastError = wxPROTO_NOHNDLR;

View File

@@ -166,7 +166,7 @@ bool wxHTTP::Connect(const wxString& host)
return TRUE; return TRUE;
} }
bool wxHTTP::Connect(wxSockAddress& addr) bool wxHTTP::Connect(wxSockAddress& addr, bool WXUNUSED(wait))
{ {
struct sockaddr *raw_addr; struct sockaddr *raw_addr;
size_t len; size_t len;

View File

@@ -56,6 +56,8 @@
// wxListKey // wxListKey
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
wxListKey wxDefaultListKey;
bool wxListKey::operator==(wxListKeyValue value) const bool wxListKey::operator==(wxListKeyValue value) const
{ {
switch ( m_keyType ) switch ( m_keyType )

View File

@@ -250,7 +250,8 @@ wxInputStream *wxURL::GetInputStream(void)
addr.Service(m_servname); addr.Service(m_servname);
if (!m_protocol->Connect(addr)) { if (!m_protocol->Connect(addr, TRUE)) // Watcom needs the 2nd arg for some reason
{
m_error = wxURL_CONNERR; m_error = wxURL_CONNERR;
return NULL; return NULL;
} }
@@ -281,7 +282,7 @@ void wxURL::SetDefaultProxy(const wxString& url_proxy)
addr.Hostname(hostname); addr.Hostname(hostname);
addr.Service(port); addr.Service(port);
g_proxy->Connect(addr); g_proxy->Connect(addr, TRUE); // Watcom needs the 2nd arg for some reason
} }
void wxURL::SetProxy(const wxString& url_proxy) void wxURL::SetProxy(const wxString& url_proxy)
@@ -306,7 +307,7 @@ void wxURL::SetProxy(const wxString& url_proxy)
addr.Hostname(hostname); addr.Hostname(hostname);
addr.Service(port); addr.Service(port);
m_proxy.Connect(addr); m_proxy.Connect(addr, TRUE); // Watcom needs the 2nd arg for some reason
m_protocol = &m_proxy; m_protocol = &m_proxy;
m_protoname = "proxy"; m_protoname = "proxy";

View File

@@ -21,12 +21,19 @@ $(LNK) : makefile.wat
@%append $(LNK) $(STACK) @%append $(LNK) $(STACK)
@%append $(LNK) name $(PROGRAM).exe @%append $(LNK) name $(PROGRAM).exe
@%append $(LNK) file $(WXLIB)\wx.lib @%append $(LNK) file $(WXLIB)\wx.lib
@for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
@for %i in ($(OBJECTS)) do @%append $(LNK) file %i @for %i in ($(OBJECTS)) do @%append $(LNK) file %i
# @for %i in ($(EXTRALIBS)) do @%append $(LNK) file %i
# @%append $(LNK) $(MINDATA) # @%append $(LNK) $(MINDATA)
# @%append $(LNK) $(MAXDATA) # @%append $(LNK) $(MAXDATA)
clean: .SYMBOLIC clean: .SYMBOLIC
-erase *.obj *.bak *.err *.pch *.lib *.lnk *.res *.exe -erase *.obj
-erase *.bak
-erase *.err
-erase *.pch
-erase *.lib
-erase *.lnk
-erase *.res
-erase *.exe
-erase *.lbc

View File

@@ -51,7 +51,9 @@ WATLIBDIR = $(WATCOMDIR)\lib386\nt
MINDATA = MINDATA =
MAXDATA = MAXDATA =
STACK = option stack=64k STACK = option stack=64k
EXTRALIBS = $(WATLIBDIR)\ctl3d32.lib $(WATLIBDIR)\odbc32.lib EXTRALIBS = $(WXDIR)\lib\zlib.lib $(WXDIR)\lib\png.lib $(WXDIR)\lib\xpm.lib &
$(WATLIBDIR)\odbc32.lib $(WATLIBDIR)\comctl32.lib $(WATLIBDIR)\comdlg32.lib &
$(WATLIBDIR)\ole32.lib $(WATLIBDIR)\oleaut32.lib $(WATLIBDIR)\uuid.lib
IFLAGS = -i=$(WXINC) -i=$(%watcom)\h;$(%watcom)\h\nt # -i=$(WXDIR)\include\wx\msw\gnuwin32 IFLAGS = -i=$(WXINC) -i=$(%watcom)\h;$(%watcom)\h\nt # -i=$(WXDIR)\include\wx\msw\gnuwin32
RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include RESFLAGS1 = -r -bt=nt /i$(WXDIR)\include
RESFLAGS2 = -R $(name) /i$(WXDIR)\include RESFLAGS2 = -R $(name) /i$(WXDIR)\include
@@ -67,7 +69,7 @@ RESFLAGS2 = -R $(name) /i$(WXDIR)\include
OPTFLAGS=/ox /5r OPTFLAGS=/ox /5r
# /d1 for line numbers only: anything else produces an enormous wx32.lib # /d1 for line numbers only: anything else produces an enormous wx32.lib
CPPFLAGS = /bt=nt /w1 /D__WIN32__ /D__WIN95__ /D__WINDOWS__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__ CPPFLAGS = /bt=nt /w1 /DWIN32 /D__WIN32__ /D__WIN95__ /D__WINDOWS__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 $(DEBUGFLAGS) /d__WXMSW__ $(EXTRACPPFLAGS) # /d__WATCOMC__
.cpp.obj: # $< # .AUTODEPEND .cpp.obj: # $< # .AUTODEPEND
*$(CCC) $(CPPFLAGS) $(IFLAGS) $< *$(CCC) $(CPPFLAGS) $(IFLAGS) $<

View File

@@ -561,7 +561,7 @@ int wxEntry(WXHINSTANCE hInstance,
int nCmdShow, int nCmdShow,
bool enterLoop) bool enterLoop)
{ {
#if !defined(__WXDEBUG__) && !defined(__BORLANDC__) // take everything into a try-except block in release build #if !defined(__WXDEBUG__) && !defined(__BORLANDC__) && !defined(__WATCOMC__) // take everything into a try-except block in release build
try { try {
#endif #endif
@@ -631,7 +631,7 @@ int wxEntry(WXHINSTANCE hInstance,
wxApp::CleanUp(); wxApp::CleanUp();
return retValue; return retValue;
#if !defined(__WXDEBUG__) && !defined(__BORLANDC__) // catch exceptions only in release build #if !defined(__WXDEBUG__) && !defined(__BORLANDC__) && !defined(__WATCOMC__) // catch exceptions only in release build
} }
except ( EXCEPTION_EXECUTE_HANDLER ) { except ( EXCEPTION_EXECUTE_HANDLER ) {
/* /*

View File

@@ -16,9 +16,8 @@ LIBTARGET = $(WXLIB)\wx.lib
DUMMY=dummydll DUMMY=dummydll
# ODBCLIB = ..\..\contrib\odbc\odbc32.lib # ODBCLIB = ..\..\contrib\odbc\odbc32.lib
EXTRATARGETS = # wxxpm EXTRATARGETS = xpm png zlib
EXTRATARGETSCLEAN = # clean_wxxpm 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
@@ -114,7 +113,7 @@ COMMONOBJS = cmndata.obj &
# db.obj & # db.obj &
# dbtable.obj & # dbtable.obj &
MSWOBJS1 = & MSWOBJS = &
accel.obj & accel.obj &
app.obj & app.obj &
bitmap.obj & bitmap.obj &
@@ -169,7 +168,6 @@ MSWOBJS1 = &
palette.obj & palette.obj &
pen.obj & pen.obj &
penwin.obj & penwin.obj &
pnghand.obj &
printdlg.obj & printdlg.obj &
printwin.obj & printwin.obj &
radiobox.obj & radiobox.obj &
@@ -199,6 +197,8 @@ MSWOBJS1 = &
wave.obj & wave.obj &
window.obj & window.obj &
# pnghand.obj &
OLEOBJS = & OLEOBJS = &
droptgt.obj & droptgt.obj &
dropsrc.obj & dropsrc.obj &
@@ -207,33 +207,28 @@ OLEOBJS = &
uuid.obj & uuid.obj &
automtn.obj automtn.obj
XPMOBJECTS = crbuffri.obj&
crdatfri.obj&
create.obj crifrbuf.obj&
crifrdat.obj&
data.obj&
hashtab.obj misc.obj&
parse.obj rdftodat.obj&
rdftoi.obj&
rgb.obj scan.obj&
simx.obj wrffrdat.obj&
wrffrp.obj wrffri.obj
# Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc. # Add $(NONESSENTIALOBJS) if wanting generic dialogs, PostScript etc.
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(OLEOBJS) # $(XPMOBJECTS) OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS) $(OLEOBJS)
all: $(OBJECTS) $(LIBTARGET) all: $(OBJECTS) $(LIBTARGET) $(EXTRATARGETS)
$(LIBTARGET) : $(OBJECTS) $(LIBTARGET) : $(OBJECTS)
%create tmp.lbc %create tmp.lbc
@for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
wlib /b /c /n /p=512 $^@ @tmp.lbc wlib /b /c /n /p=512 $^@ @tmp.lbc
#test : $(OBJECTS)
# %create tmp.lbc
# @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
# wlib /b /c /n /p=512 $^@ @tmp.lbc
clean: .SYMBOLIC
clean: $(EXTRATARGETSCLEAN)
-erase *.obj -erase *.obj
-erase $(LIBTARGET) -erase $(LIBTARGET)
-erase *.pch -erase *.pch
-erase *.err -erase *.err
-erase *.lbc
cleanall: clean cleanall: clean
@@ -825,15 +820,85 @@ wrffri.obj: $(XPMDIR)\wrffri.c
wrffrp.obj: $(XPMDIR)\wrffrp.c wrffrp.obj: $(XPMDIR)\wrffrp.c
*$(CC) $(CPPFLAGS) $(IFLAGS) $< *$(CC) $(CPPFLAGS) $(IFLAGS) $<
OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
trees$(O)
OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
infutil$(O) inffast$(O)
#wxxpm: .SYMBOLIC all: $(LIBTARGET)
# cd $(WXDIR)\contrib\wxxpm
# wmake -f makefile.wat all
# cd $(WXDIR)\src\msw
#clean_wxxpm: .SYMBOLIC adler32.obj: adler32.c zutil.h zlib.h zconf.h
# cd $(WXDIR)\contrib\wxxpm $(CC) -c $(CFLAGS) $*.c
# wmake -f makefile.wat clean
# cd $(WXDIR)\src\msw compress.obj: compress.c zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
crc32.obj: crc32.c zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
gzio.obj: gzio.c zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
infcodes.h infutil.h
$(CC) -c $(CFLAGS) $*.c
infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
infcodes.h inffast.h
$(CC) -c $(CFLAGS) $*.c
inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
$(CC) -c $(CFLAGS) $*.c
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
$(CC) -c $(CFLAGS) $*.c
infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
$(CC) -c $(CFLAGS) $*.c
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
$(CC) -c $(CFLAGS) $*.c
trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
uncompr.obj: uncompr.c zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
zutil.obj: zutil.c zutil.h zlib.h zconf.h
$(CC) -c $(CFLAGS) $*.c
xpm: .SYMBOLIC
cd $(WXDIR)\src\xpm
wmake -f makefile.wat all
cd $(WXDIR)\src\msw
clean_xpm: .SYMBOLIC
cd $(WXDIR)\src\xpm
wmake -f makefile.wat clean
cd $(WXDIR)\src\msw
png: .SYMBOLIC
cd $(WXDIR)\src\png
wmake -f makefile.wat all
cd $(WXDIR)\src\msw
clean_png: .SYMBOLIC
cd $(WXDIR)\src\png
wmake -f makefile.wat clean
cd $(WXDIR)\src\msw
zlib: .SYMBOLIC
cd $(WXDIR)\src\zlib
wmake -f makefile.wat all
cd $(WXDIR)\src\msw
clean_zlib: .SYMBOLIC
cd $(WXDIR)\src\zlib
wmake -f makefile.wat clean
cd $(WXDIR)\src\msw

40
src/png/makefile.wat Normal file
View File

@@ -0,0 +1,40 @@
#!/binb/wmake.exe
#
# File: makefile.wat
# Author: Julian Smart
# Created: 1998
#
# Makefile : Builds PNG library for Watcom C++, WIN32
WXDIR = ..\..
!include $(WXDIR)\src\makewat.env
WXLIB = $(WXDIR)\lib
LIBTARGET = $(WXLIB)\png.lib
OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj &
pngpread.obj pngtrans.obj pngwrite.obj pngwtran.obj pngwutil.obj &
pngerror.obj pngmem.obj pngwio.obj pngrio.obj pngget.obj pngset.obj
all: $(OBJECTS) $(LIBTARGET)
$(LIBTARGET) : $(OBJECTS)
%create tmp.lbc
@for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
wlib /b /c /n /p=512 $^@ @tmp.lbc
clean: .SYMBOLIC
-erase *.obj
-erase $(LIBTARGET)
-erase *.pch
-erase *.err
-erase *.lbc
cleanall: clean
#accel.obj: $(MSWDIR)\accel.cpp
# *$(CCC) $(CPPFLAGS) $(IFLAGS) $<

54
src/xpm/makefile.wat Normal file
View File

@@ -0,0 +1,54 @@
#!/binb/wmake.exe
#
# File: makefile.wat
# Author: Julian Smart
# Created: 1998
#
# Makefile : Builds XPM library for Watcom C++, WIN32
WXDIR = ..\..
!include $(WXDIR)\src\makewat.env
WXLIB = $(WXDIR)\lib
LIBTARGET = $(WXLIB)\xpm.lib
OBJECTS = crbuffri.obj &
crdatfri.obj &
create.obj &
crifrbuf.obj &
crifrdat.obj &
data.obj &
hashtab.obj &
misc.obj &
parse.obj &
rdftodat.obj &
rdftoi.obj &
rgb.obj &
scan.obj &
simx.obj &
wrffrdat.obj &
wrffrp.obj &
wrffri.obj
all: $(OBJECTS) $(LIBTARGET)
$(LIBTARGET) : $(OBJECTS)
%create tmp.lbc
@for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
wlib /b /c /n /p=512 $^@ @tmp.lbc
clean: .SYMBOLIC
-erase *.obj
-erase $(LIBTARGET)
-erase *.pch
-erase *.err
-erase *.lbc
cleanall: clean
#accel.obj: $(MSWDIR)\accel.cpp
# *$(CCC) $(CPPFLAGS) $(IFLAGS) $<

View File

@@ -29,7 +29,9 @@ OBJP1=adler32$(O)+compress$(O)+crc32$(O)+gzio$(O)+uncompr$(O)+deflate$(O)
OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O) OBJP2=trees$(O)+zutil$(O)+inflate$(O)+infblock$(O)+inftrees$(O)+infcodes$(O)
OBJP3=infutil$(O)+inffast$(O) OBJP3=infutil$(O)+inffast$(O)
all: test # all: test
all: $(LIBTARGET)
adler32.obj: adler32.c zutil.h zlib.h zconf.h adler32.obj: adler32.c zutil.h zlib.h zconf.h
$(CC) $(CFLAGS) $*.c $(CC) $(CFLAGS) $*.c