-> type: cd c:\wxWin\src\msw
-> type: make -f makefile.g95
-II) Unix using plain makefiles.
-----------------------------------------
+II) GTK port on Unix using plain makefiles.
+------------------------------------------
Set WXWIN environment variable to the base directory such
as ~/wxWindows
-> type: export WXWIN=~/wxWindows
-
-Edit ~/wxWindows/src/make.env as you wish.
+-> edit ~/wxWindows/src/gtk.env as you wish.
-> type: cd ~/wxWindows/src/gtk
-> type: cp ./setup0.h setup.h
-> type: make
GTKOBJS = \
#$ ExpandList("WXGTKOBJS");
-UINXOBJS = \
+UNIXOBJS = \
#$ ExpandList("WXUNIXOBJS");
ZLIBOBJS = \
-27th July '99: Eight wxGTK 2.1 snapshot released
+29th July '99: Eight wxGTK 2.1 snapshot released
The new makefile system is not able to produce shared libraries
-on Unix with the exception of Linux - libtool is really great...
+on Unix with the exception of Linux - libtool is really great.
+Therefore, the build system defaults to static libraries on
+anything but Linux for now.
Work in wxPen, wxBrush and wxDC to match wxMSW more exactly and
to implement missing feature etc.
If you compile wxWindows on Linux for the first time and don't like to read
install instructions just do (in the base dir):
-./configure
-make
-su <type root password>
-make install
-ldconfig
-exit
+> ./configure --with-gtk
+> make
+> su <type root password>
+> make install
+> ldconfig
+> exit
-On all other Unices (maybe except *BSD), shared libraries are not supported
-out of the box due to the utter stupidity of libtool, so you'll have to do
-this instead:
+On all variants of Unix except Linux (and maybe except *BSD), shared libraries
+are not supportet out of the box due to the utter stupidity of libtool, so you'll
+have to do this to get shared library support:
-./configure --enable-static --disable-shared
-make
-su <type root password>
-make install
-ldconfig
-exit
+> ./configure --with-gtk --disable-static --enable-shared
+
+Then you'll have to edit the wrongly created libtool script. There are two
+important entries with respect to shared library creation, which are
-You may also want to try to edit the wrongly created libtool script
-in your build directory, if you need shared libraries on Unix. The
-wrong entries are something like
archive_cmds="\$LD -shared ....
archive_expsym_cmds="\$LD -shared ....
+
which should be something like
+
archive_cmds="\$CC -shared ....
archive_expsym_cmds="\$CC -shared ....
+
+Afterwards you can continue with
+
+> make
+> su <type root password>
+> make install
+> ldconfig
+> exit
If you want to remove wxWindows on Unix you can do this:
-su <type root password>
-make uninstall
-ldconfig
-exit
+> su <type root password>
+> make uninstall
+> ldconfig
+> exit
* The expert case
-----------------
* The most simple case
-----------------------
-If you compile wxWindows on Unix for the first time and don't like to read
+If you compile wxWindows on Linux for the first time and don't like to read
install instructions just do (in the base dir):
-./configure --with-motif
-make
-su <type root password>
-make install
-ldconfig
-exit
+> ./configure --with-motif
+> make
+> su <type root password>
+> make install
+> ldconfig
+> exit
-On all other Unices (maybe except *BSD), shared libraries are not supported
-out of the box due to the utter stupidity of libtool, so you'll have to do
-this instead:
+On all variants of Unix except Linux (and maybe except *BSD), shared libraries
+are not supportet out of the box due to the utter stupidity of libtool, so you'll
+have to do this to get shared library support:
-./configure --enable-static --disable-shared
-make
-su <type root password>
-make install
-ldconfig
-exit
+> ./configure --with-motif --disable-static --enable-shared
+
+Then you'll have to edit the wrongly created libtool script. There are two
+important entries with respect to shared library creation, which are
-You may also want to try to edit the wrongly created libtool script
-in your build directory, if you need shared libraries on Unix. The
-wrong entries are something like
archive_cmds="\$LD -shared ....
archive_expsym_cmds="\$LD -shared ....
+
which should be something like
+
archive_cmds="\$CC -shared ....
archive_expsym_cmds="\$CC -shared ....
+
+Afterwards you can continue with
+
+> make
+> su <type root password>
+> make install
+> ldconfig
+> exit
If you want to remove wxWindows on Unix you can do this:
-su <type root password>
-make uninstall
-ldconfig
-exit
+> su <type root password>
+> make uninstall
+> ldconfig
+> exit
* The expert case
-----------------
* The most simple case
-----------------------
-If you compile wxWindows on Unix for the first time and don't like to read
+If you compile wxWindows on Linux for the first time and don't like to read
install instructions just do (in the base dir):
-./configure --with-wine
-make
-su <type root password>
-make install
-ldconfig
-exit
+> ./configure --with-wine
+> make
+> su <type root password>
+> make install
+> ldconfig
+> exit
+
+On all variants of Unix except Linux (and maybe except *BSD), shared libraries
+are not supportet out of the box due to the utter stupidity of libtool, so you'll
+have to do this to get shared library support:
+
+> ./configure --with-wine --disable-static --enable-shared
+
+Then you'll have to edit the wrongly created libtool script. There are two
+important entries with respect to shared library creation, which are
+
+ archive_cmds="\$LD -shared ....
+ archive_expsym_cmds="\$LD -shared ....
+
+which should be something like
+
+ archive_cmds="\$CC -shared ....
+ archive_expsym_cmds="\$CC -shared ....
+
+Afterwards you can continue with
+
+> make
+> su <type root password>
+> make install
+> ldconfig
+> exit
If you want to remove wxWindows on Unix you can do this:
-su <type root password>
-make uninstall
-ldconfig
-exit
+> su <type root password>
+> make uninstall
+> ldconfig
+> exit
* The expert case
-----------------
* Use standard C++ streams if 1. If 0, use wxWin
* streams implementation.
*/
-#define wxUSE_STD_IOSTREAM 1
+#define wxUSE_STD_IOSTREAM 0
/*
* wxLibrary class
*/
* Use standard C++ streams if 1. If 0, use wxWin
* streams implementation.
*/
-#define wxUSE_STD_IOSTREAM 1
+#define wxUSE_STD_IOSTREAM 0
/*
* wxLibrary class
*/
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/dcclient.h"
-# include "wx/timer.h"
+ #include "wx/timer.h"
#endif
#include "wx/generic/progdlgg.h"
MIN_VER = 1
MIC_VER = 0
+WXLIB =
+
########################### Programs #################################
# C++ compiler
############################ Libraries ################################
-LD_LIBS = -L$(WXDIR)/lib -llibwx_$(GUI).a `gtk-config --libs` -L/usr/lib -ldl
+WXLIB = $(WXDIR)/lib/libwx_$(GUI).a
+
+LD_LIBS = $(WXLIB) `gtk-config --libs` -L/usr/lib -ldl -lpthread
############################# Suffixes ################################
####################### No changes below this line ####################
-CPPFLAGS = $(GUI_OPT) $(CPP_EXTRA) $(CPP_OPT) $(CPP_DEBUG) $(CPP_WARN) $(WX_INC) $(EXTRA_INCLUDE) $(GUI_INC)
-CFLAGS = $(GUI_OPT) $(C_EXTRA) $(C_OPT) $(C_DEBUG) $(C_WARN) $(WX_INC) $(EXTRA_INCLUDE) $(GUI_INC)
+CPPFLAGS = $(GUI_OPT) $(CPP_EXTRA) $(CPP_OPT) $(CPP_DEBUG) $(CPP_WARN) $(WX_INC) $(EXTRA_INC) $(GUI_INC)
+CFLAGS = $(GUI_OPT) $(C_EXTRA) $(C_OPT) $(C_DEBUG) $(C_WARN) $(WX_INC) $(EXTRA_INC) $(GUI_INC)
LDFLAGS = $(LD_EXTRA) $(LD_LIBS)
# Clears all default suffixes
$(GTKDIR)/win_gtk.$(OBJSUFF) \
$(GTKDIR)/window.$(OBJSUFF)
-UINXOBJS = \
+UNIXOBJS = \
$(UNIXDIR)/gsocket.$(OBJSUFF) \
$(UNIXDIR)/threadpsx.$(OBJSUFF) \
$(UNIXDIR)/utilsunx.$(OBJSUFF)
$(GTKDIR)/win_gtk.$(OBJSUFF) \
$(GTKDIR)/window.$(OBJSUFF)
-UINXOBJS = \
+UNIXOBJS = \
$(UNIXDIR)/gsocket.$(OBJSUFF) \
$(UNIXDIR)/threadpsx.$(OBJSUFF) \
$(UNIXDIR)/utilsunx.$(OBJSUFF)
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+#include <ctype.h>
#ifdef sun
# include <sys/filio.h>