more changes for wxBase - starts to work under Unix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-10-06 17:48:34 +00:00
parent 6768c790de
commit 3766781218
5 changed files with 290 additions and 114 deletions

View File

@ -1,5 +1,5 @@
# #
# This file was automatically generated by tmake at 13:22, 1999/10/06 # This file was automatically generated by tmake at 18:19, 1999/10/06
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T! # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
# #
@ -125,6 +125,43 @@ DISTDIR = ./_dist_dir/wx$(TOOLKIT)
############################## Files ################################## ############################## Files ##################################
BASE_HEADERS = \
app.h \
date.h \
debug.h \
defs.h \
dynarray.h \
dynlib.h \
event.h \
ffile.h \
file.h \
fileconf.h \
hash.h \
intl.h \
list.h \
log.h \
longlong.h \
mimetype.h \
module.h \
object.h \
process.h \
setup.h \
strconv.h \
stream.h \
string.h \
textfile.h \
thread.h \
time.h \
timer.h \
tokenzr.h \
txtstrm.h \
utils.h \
variant.h \
version.h \
wx.h \
wxchar.h \
wxprec.h
WX_HEADERS = \ WX_HEADERS = \
accel.h \ accel.h \
app.h \ app.h \
@ -1389,6 +1426,7 @@ MSW_COMMONOBJS = \
mstream.o \ mstream.o \
object.o \ object.o \
objstrm.o \ objstrm.o \
odbc.o \
paper.o \ paper.o \
prntbase.o \ prntbase.o \
process.o \ process.o \
@ -1478,6 +1516,7 @@ MSW_COMMONDEPS = \
mstream.d \ mstream.d \
object.d \ object.d \
objstrm.d \ objstrm.d \
odbc.d \
paper.d \ paper.d \
prntbase.d \ prntbase.d \
process.d \ process.d \
@ -1687,6 +1726,74 @@ MSW_GUIDEPS = \
window.d \ window.d \
xpmhand.d xpmhand.d
BASE_OBJS = \
config.o \
date.o \
dynarray.o \
dynlib.o \
event.o \
extended.o \
ffile.o \
file.o \
fileconf.o \
filefn.o \
filesys.o \
hash.o \
init.o \
intl.o \
list.o \
log.o \
mimetype.o \
module.o \
object.o \
process.o \
strconv.o \
stream.o \
string.o \
textfile.o \
time.o \
timercmn.o \
tokenzr.o \
txtstrm.o \
utilscmn.o \
variant.o \
wxchar.o \
utilsunx.o
BASE_DEPS = \
config.d \
date.d \
dynarray.d \
dynlib.d \
event.d \
extended.d \
ffile.d \
file.d \
fileconf.d \
filefn.d \
filesys.d \
hash.d \
init.d \
intl.d \
list.d \
log.d \
mimetype.d \
module.d \
object.d \
process.d \
strconv.d \
stream.d \
string.d \
textfile.d \
time.d \
timercmn.d \
tokenzr.d \
txtstrm.d \
utilscmn.d \
variant.d \
wxchar.d \
utilsunx.d
HTMLOBJS = \ HTMLOBJS = \
helpctrl.o \ helpctrl.o \
helpdata.o \ helpdata.o \
@ -1727,13 +1834,13 @@ HTMLDEPS = \
search.d \ search.d \
winpars.d winpars.d
UNIXOBJS = \ UNIX_OBJS = \
dialup.o \ dialup.o \
gsocket.o \ gsocket.o \
threadpsx.o \ threadpsx.o \
utilsunx.o utilsunx.o
UNIXDEPS = \ UNIX_DEPS = \
dialup.d \ dialup.d \
gsocket.d \ gsocket.d \
threadpsx.d \ threadpsx.d \
@ -1821,16 +1928,23 @@ JPEGOBJS = \
jquant2.o \ jquant2.o \
jdmerge.o jdmerge.o
GUIOBJS = @GUIOBJS@
GUIDEPS = @GUIDEPS@
GUIHEADERS = @GUIHEADERS@
COMMONOBJS = @COMMONOBJS@
COMMONDEPS = @COMMONDEPS@
GENERICOBJS = @GENERICOBJS@
GENERICDEPS = @GENERICDEPS@
UNIXOBJS = @UNIXOBJS@
UNIXDEPS = @UNIXDEPS@
OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \ OBJECTS = @ALL_OBJECTS@
$(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
DEPFILES = $(@GUIDEPS@) $(@COMMONDEPS@) $(@GENERICDEPS@) $(UNIXDEPS) $(HTMLDEPS) DEPFILES = @ALL_DEPFILES@
HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \ HEADERS = @ALL_HEADERS@
$(GENERIC_HEADERS) $(WX_HEADERS)
all: $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@ all: @WX_CREATE_LINKS@
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS) @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
@$(INSTALL) -d ./lib @$(INSTALL) -d ./lib
@ -1841,7 +1955,7 @@ all: $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
@$(INSTALL) -d ./lib @$(INSTALL) -d ./lib
$(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS) $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
CREATE_LINKS@: @WX_TARGET_LIBRARY@ CREATE_LINKS: @WX_TARGET_LIBRARY@
@$(RM) ./lib/@WX_LIBRARY_LINK1@ @$(RM) ./lib/@WX_LIBRARY_LINK1@
@$(RM) ./lib/@WX_LIBRARY_LINK2@ @$(RM) ./lib/@WX_LIBRARY_LINK2@
@$(RM) ./lib/@WX_LIBRARY_LINK3@ @$(RM) ./lib/@WX_LIBRARY_LINK3@

View File

@ -1672,13 +1672,6 @@ if test "$wxUSE_MOTIF" = 1; then
GUIDIST=MOTIF_DIST GUIDIST=MOTIF_DIST
fi fi
dnl someone explicitly added -ldl to the list of libraries for these targets -
dnl I don't know why has this been done, but let's respect this - with the
dnl exception of the systems which don't have libdl at all (VZ)
if test "$wxUSE_GTK" = 1 || test "$wxUSE_MOTIF" = 1 || test "$wxUSE_WINE" = 1; then
AC_CHECK_LIB(dl, main, GUI_TK_LIBRARY="$GUI_TK_LIBRARY -ldl")
fi
dnl the name of the directory where the files for this toolkit live dnl the name of the directory where the files for this toolkit live
TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
@ -2406,15 +2399,31 @@ HAVE_DL_FUNCS=0
HAVE_SHL_FUNCS=0 HAVE_SHL_FUNCS=0
if test "$wxUSE_DYNLIB_CLASS" = "yes"; then if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
dnl the test is a bit complicated because we check for dlopen() both with dnl the test is a bit complicated because we check for dlopen() both with
dnl and without -ldl dnl and without -ldl and we also try to find shl_load() if there is no
dnl dlopen() on this system
AC_CHECK_FUNCS(dlopen, AC_CHECK_FUNCS(dlopen,
[AC_DEFINE(HAVE_DLOPEN) HAVE_DL_FUNCS=1], [
[AC_CHECK_LIB(dl, dlopen, AC_DEFINE(HAVE_DLOPEN)
[AC_DEFINE(HAVE_DLOPEN) HAVE_DL_FUNCS=1])]) HAVE_DL_FUNCS=1
AC_CHECK_FUNCS( shl_load, ],
[AC_DEFINE(HAVE_SHL_LOAD) HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1]) [
AC_CHECK_LIB(dl, dlopen,
[
AC_DEFINE(HAVE_DLOPEN)
HAVE_DL_FUNCS=1
LIBS="$LIBS -ldl"
],
[
AC_CHECK_FUNCS(shl_load,
[
AC_DEFINE(HAVE_SHL_LOAD)
HAVE_SHL_FUNCS=1
])
])
])
if test "$HAVE_DL_FUNCS" = 0; then if test "$HAVE_DL_FUNCS" = 0; then
if test "$HAVE_SHL_FUNCS" = 0; then
if test "$USE_UNIX" = 1; then if test "$USE_UNIX" = 1; then
AC_MSG_WARN("--with-dynlib and --with-odbc will be disabled due to missing shared library support") AC_MSG_WARN("--with-dynlib and --with-odbc will be disabled due to missing shared library support")
wxUSE_ODBC=no wxUSE_ODBC=no
@ -2423,6 +2432,7 @@ if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
AC_MSG_WARN("Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled.") AC_MSG_WARN("Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled.")
fi fi
fi fi
fi
fi fi
if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
@ -2787,7 +2797,7 @@ dnl ---------------------------------------------------------------------------
GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK"
dnl all additional libraries (except wxWindows itself) we link with dnl all additional libraries (except wxWindows itself) we link with
EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK" EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK"
if test "$wxUSE_GUI" = "yes"; then if test "$wxUSE_GUI" = "yes"; then
EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" EXTRA_LIBS="$EXTRA_LIBS $GUILIBS"
fi fi

View File

@ -29,6 +29,7 @@
# #
# Known flags: # Known flags:
# B makes part of the base library too # B makes part of the base library too
# BO only for the base library
# 16 a generic file implementing Win32 control for Win16 # 16 a generic file implementing Win32 control for Win16
# 32 only can be compiled under Win32 # 32 only can be compiled under Win32
# PS PostScript related file, normally not compiled under Windows # PS PostScript related file, normally not compiled under Windows
@ -104,7 +105,7 @@ docmdi.cpp C
docview.cpp C docview.cpp C
dynarray.cpp C B dynarray.cpp C B
dynlib.cpp C B dynlib.cpp C B
event.cpp C event.cpp C B
extended.c C B extended.c C B
ffile.cpp C B ffile.cpp C B
file.cpp C B file.cpp C B
@ -129,6 +130,7 @@ imagjpeg.cpp C 32
imagpcx.cpp C 32 imagpcx.cpp C 32
imagpng.cpp C 32 imagpng.cpp C 32
imagpnm.cpp C 32 imagpnm.cpp C 32
init.cpp C B,BO
intl.cpp C B intl.cpp C B
ipcbase.cpp C ipcbase.cpp C
layout.cpp C layout.cpp C
@ -153,7 +155,7 @@ sckstrm.cpp C S
serbase.cpp C serbase.cpp C
sizer.cpp C sizer.cpp C
socket.cpp C S socket.cpp C S
stream.cpp C stream.cpp C B
strconv.cpp C B strconv.cpp C B
string.cpp C B string.cpp C B
tbarbase.cpp C tbarbase.cpp C
@ -163,7 +165,7 @@ textfile.cpp C B
time.cpp C B time.cpp C B
timercmn.cpp C B timercmn.cpp C B
tokenzr.cpp C B tokenzr.cpp C B
txtstrm.cpp C txtstrm.cpp C B
unzip.c C unzip.c C
url.cpp C S url.cpp C S
utilscmn.cpp C B utilscmn.cpp C B
@ -276,7 +278,7 @@ gsocket.c M S
dialup.cpp U dialup.cpp U
threadpsx.cpp U threadpsx.cpp U
utilsunx.cpp U utilsunx.cpp U B
gsocket.c U gsocket.c U
gsockgtk.c R gsockgtk.c R
@ -413,7 +415,7 @@ search.cpp H
arrimpl.cpp W arrimpl.cpp W
listimpl.cpp W listimpl.cpp W
accel.h W accel.h W
app.h W app.h W B
bitmap.h W bitmap.h W
bmpbuttn.h W bmpbuttn.h W
brush.h W brush.h W
@ -435,7 +437,7 @@ config.h W
control.h W control.h W
cursor.h W cursor.h W
dataobj.h W dataobj.h W
date.h W date.h W B
datstrm.h W datstrm.h W
db.h W db.h W
dbtable.h W dbtable.h W
@ -446,21 +448,21 @@ dcprint.h W
dcps.h W dcps.h W
dcscreen.h W dcscreen.h W
dde.h W dde.h W
debug.h W debug.h W B
defs.h W defs.h W B
dialog.h W dialog.h W
dirdlg.h W dirdlg.h W
dnd.h W dnd.h W
docmdi.h W docmdi.h W
docview.h W docview.h W
dragimag.h W dragimag.h W
dynarray.h W dynarray.h W B
dynlib.h W dynlib.h W B
event.h W event.h W B
expr.h W expr.h W
ffile.h W ffile.h W B
file.h W file.h W B
fileconf.h W fileconf.h W B
filedlg.h W filedlg.h W
filefn.h W filefn.h W
filesys.h W filesys.h W
@ -475,7 +477,7 @@ gdiobj.h W
gifdecod.h W gifdecod.h W
grid.h W grid.h W
gsocket.h W gsocket.h W
hash.h W hash.h W B
help.h W help.h W
helpbase.h W helpbase.h W
helphtml.h W helphtml.h W
@ -484,30 +486,30 @@ helpxlp.h W
icon.h W icon.h W
image.h W image.h W
imaglist.h W imaglist.h W
intl.h W intl.h W B
ioswrap.h W ioswrap.h W
ipcbase.h W ipcbase.h W
joystick.h W joystick.h W
layout.h W layout.h W
laywin.h W laywin.h W
list.h W list.h W B
listbox.h W listbox.h W
listctrl.h W listctrl.h W
log.h W log.h W B
longlong.h W longlong.h W B
matrix.h W matrix.h W
mdi.h W mdi.h W
memory.h W memory.h W
menu.h W menu.h W
menuitem.h W menuitem.h W
metafile.h W metafile.h W
mimetype.h W mimetype.h W B
minifram.h W minifram.h W
module.h W module.h W B
msgdlg.h W msgdlg.h W
mstream.h W mstream.h W
notebook.h W notebook.h W
object.h W object.h W B
objstrm.h W objstrm.h W
odbc.h W odbc.h W
ownerdrw.h W ownerdrw.h W
@ -519,7 +521,7 @@ pnghand.h W
print.h W print.h W
printdlg.h W printdlg.h W
prntbase.h W prntbase.h W
process.h W process.h W B
progdlg.h W progdlg.h W
prop.h W prop.h W
propform.h W propform.h W
@ -536,7 +538,7 @@ scrolbar.h W
scrolwin.h W scrolwin.h W
serbase.h W serbase.h W
settings.h W settings.h W
setup.h W setup.h W B
sizer.h W sizer.h W
slider.h W slider.h W
socket.h W socket.h W
@ -547,9 +549,9 @@ statbox.h W
statline.h W statline.h W
stattext.h W stattext.h W
statusbr.h W statusbr.h W
strconv.h W strconv.h W B
stream.h W stream.h W B
string.h W string.h W B
tab.h W tab.h W
tabctrl.h W tabctrl.h W
taskbar.h W taskbar.h W
@ -559,35 +561,35 @@ tbarmsw.h W
tbarsmpl.h W tbarsmpl.h W
textctrl.h W textctrl.h W
textdlg.h W textdlg.h W
textfile.h W textfile.h W B
txtstrm.h W txtstrm.h W B
thread.h W thread.h W B
time.h W time.h W B
timer.h W timer.h W B
tipdlg.h W tipdlg.h W
tokenzr.h W tokenzr.h W B
toolbar.h W toolbar.h W
tooltip.h W tooltip.h W
treectrl.h W treectrl.h W
types.h W types.h W
url.h W url.h W
utils.h W utils.h W B
valgen.h W valgen.h W
validate.h W validate.h W
valtext.h W valtext.h W
variant.h W variant.h W B
version.h W version.h W B
wave.h W wave.h W
wfstream.h W wfstream.h W
window.h W window.h W
wx.h W wx.h W B
wx_cw.h W wx_cw.h W
wx_cw_cm.h W wx_cw_cm.h W
wx_cw_d.h W wx_cw_d.h W
wxchar.h W wxchar.h W B
wxexpr.h W wxexpr.h W
wxhtml.h W wxhtml.h W
wxprec.h W wxprec.h W B
xpmhand.h W xpmhand.h W
zipstrm.h W zipstrm.h W
zstream.h W zstream.h W

View File

@ -51,36 +51,32 @@
#! Common #! Common
foreach $file (sort keys %wxCommon) { foreach $file (sort keys %wxCommon) {
next if $wxCommon{$file} =~ /\bR\b/; ($fileobj = $file) =~ s/cp?p?$/\o/;
($filedep = $file) =~ s/cp?p?$/\d/;
$file2 = $file; #! 'B' flag means that the file makes part of wxBase too
$file =~ s/cp?p?$/\o/; if ( $wxCommon{$file} =~ /\bB\b/ ) {
$file2 =~ s/cp?p?$/\d/; $project{"BASE_OBJS"} .= $fileobj . " ";
$project{"WXGTK_COMMONOBJS"} .= $file . " "; $project{"BASE_DEPS"} .= $filedep . " ";
$project{"WXGTK_COMMONDEPS"} .= $file2 . " "
} }
foreach $file (sort keys %wxCommon) { #! if it's the wxBase-only file, nothing more to do with it
next if $wxCommon{$file} =~ /\bX\b/; next if $wxCommon{$file} =~ /\bBO\b/;
$file2 = $file; if ( $wxCommon{$file} !~ /\bR\b/ ) { #! unless not for GTK
$file =~ s/cp?p?$/\o/; $project{"WXGTK_COMMONOBJS"} .= $fileobj . " ";
$file2 =~ s/cp?p?$/\d/; $project{"WXGTK_COMMONDEPS"} .= $filedep . " "
$project{"WXMOTIF_COMMONOBJS"} .= $file . " "; }
$project{"WXMOTIF_COMMONDEPS"} .= $file2 . " " if ( $wxCommon{$file} !~ /\bX\b/ ) { #! unless not for Motif
$project{"WXMOTIF_COMMONOBJS"} .= $fileobj . " ";
$project{"WXMOTIF_COMMONDEPS"} .= $filedep . " "
} }
foreach $file (sort keys %wxCommon) { #! ODBC needs extra files (sql*.h) so not compiled by default.
next if $wxCommon{$file} =~ /\b(16)\b/; if ( (file !~ /^odbc\./) && ($wxCommon{$file} !~ /\b(16)\b/) ) {
$project{"WXMSW_COMMONOBJS"} .= $fileobj . " ";
#! needs extra files (sql*.h) so not compiled by default. $project{"WXMSW_COMMONDEPS"} .= $filedep . " "
next if $file =~ /^odbc\./; }
$file2 = $file;
$file =~ s/cp?p?$/\o/;
$file2 =~ s/cp?p?$/\d/;
$project{"WXMSW_COMMONOBJS"} .= $file . " ";
$project{"WXMSW_COMMONDEPS"} .= $file2 . " "
} }
#! GUI #! GUI
@ -127,17 +123,24 @@
} }
foreach $file (sort keys %wxUNIX) { foreach $file (sort keys %wxUNIX) {
$file2 = $file; ($fileobj = $file) =~ s/cp?p?$/\o/;
$file =~ s/cp?p?$/\o/; ($filedep = $file) =~ s/cp?p?$/\d/;
$file2 =~ s/cp?p?$/\d/;
$project{"WXUNIXOBJS"} .= $file . " "; #! 'B' flag means that the file makes part of wxBase too
$project{"WXUNIXDEPS"} .= $file2 . " " if ( $wxUNIX{$file} =~ /\bB\b/ ) {
$project{"BASE_OBJS"} .= $fileobj . " ";
$project{"BASE_DEPS"} .= $filedep . " "
}
$project{"WXUNIX_OBJS"} .= $fileobj . " ";
$project{"WXUNIX_DEPS"} .= $filedep . " "
} }
#! headers #! headers
foreach $file (sort keys %wxWXINCLUDE) { foreach $file (sort keys %wxWXINCLUDE) {
$project{"WX_HEADERS"} .= $file . " " $project{"WX_HEADERS"} .= $file . " ";
$project{"BASE_HEADERS"} .= $file . " " if $wxWXINCLUDE{$file} =~ /\bB\b/;
} }
foreach $file (sort keys %wxGENERICINCLUDE) { foreach $file (sort keys %wxGENERICINCLUDE) {
@ -295,6 +298,9 @@ DISTDIR = ./_dist_dir/wx$(TOOLKIT)
############################## Files ################################## ############################## Files ##################################
BASE_HEADERS = \
#$ ExpandList("BASE_HEADERS");
WX_HEADERS = \ WX_HEADERS = \
#$ ExpandList("WX_HEADERS"); #$ ExpandList("WX_HEADERS");
@ -381,17 +387,23 @@ MSW_GUIOBJS = \
MSW_GUIDEPS = \ MSW_GUIDEPS = \
#$ ExpandList("WXMSW_GUIDEPS"); #$ ExpandList("WXMSW_GUIDEPS");
BASE_OBJS = \
#$ ExpandList("BASE_OBJS");
BASE_DEPS = \
#$ ExpandList("BASE_DEPS");
HTMLOBJS = \ HTMLOBJS = \
#$ ExpandList("WXHTMLOBJS"); #$ ExpandList("WXHTMLOBJS");
HTMLDEPS = \ HTMLDEPS = \
#$ ExpandList("WXHTMLDEPS"); #$ ExpandList("WXHTMLDEPS");
UNIXOBJS = \ UNIX_OBJS = \
#$ ExpandList("WXUNIXOBJS"); #$ ExpandList("WXUNIX_OBJS");
UNIXDEPS = \ UNIX_DEPS = \
#$ ExpandList("WXUNIXDEPS"); #$ ExpandList("WXUNIX_DEPS");
ZLIBOBJS = \ ZLIBOBJS = \
adler32.o \ adler32.o \
@ -475,16 +487,23 @@ JPEGOBJS = \
jquant2.o \ jquant2.o \
jdmerge.o jdmerge.o
GUIOBJS = @GUIOBJS@
GUIDEPS = @GUIDEPS@
GUIHEADERS = @GUIHEADERS@
COMMONOBJS = @COMMONOBJS@
COMMONDEPS = @COMMONDEPS@
GENERICOBJS = @GENERICOBJS@
GENERICDEPS = @GENERICDEPS@
UNIXOBJS = @UNIXOBJS@
UNIXDEPS = @UNIXDEPS@
OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \ OBJECTS = @ALL_OBJECTS@
$(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
DEPFILES = $(@GUIDEPS@) $(@COMMONDEPS@) $(@GENERICDEPS@) $(UNIXDEPS) $(HTMLDEPS) DEPFILES = @ALL_DEPFILES@
HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \ HEADERS = @ALL_HEADERS@
$(GENERIC_HEADERS) $(WX_HEADERS)
all: $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@ all: @WX_CREATE_LINKS@
@WX_LIBRARY_NAME_STATIC@: $(OBJECTS) @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
@$(INSTALL) -d ./lib @$(INSTALL) -d ./lib
@ -495,7 +514,7 @@ all: $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
@$(INSTALL) -d ./lib @$(INSTALL) -d ./lib
$(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS) $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
CREATE_LINKS@: @WX_TARGET_LIBRARY@ CREATE_LINKS: @WX_TARGET_LIBRARY@
@$(RM) ./lib/@WX_LIBRARY_LINK1@ @$(RM) ./lib/@WX_LIBRARY_LINK1@
@$(RM) ./lib/@WX_LIBRARY_LINK2@ @$(RM) ./lib/@WX_LIBRARY_LINK2@
@$(RM) ./lib/@WX_LIBRARY_LINK3@ @$(RM) ./lib/@WX_LIBRARY_LINK3@

View File

@ -0,0 +1,31 @@
/////////////////////////////////////////////////////////////////////////////
// Name: samples/console/console.cpp
// Purpose: a sample console (as opposed to GUI) progam using wxWindows
// Author: Vadim Zeitlin
// Modified by:
// Created: 04.10.99
// RCS-ID: $Id$
// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <wx/string.h>
#include <wx/app.h>
int main()
{
if ( !wxInitialize() )
{
fprintf(stderr, "Failed to initialize the wxWindows library, aborting.");
}
wxString s("Hello, ");
wxLogMessage(s + "world!");
wxUninitialize();
return 0;
}