Some VC++ makefile fixes; minor comment mods to setup0.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
Mingw32-gcc295.patches
|
Mingw32-gcc295.patches
|
||||||
|
|
||||||
|
lib/dummy
|
||||||
|
lib/wx*.def
|
||||||
lib/watcom/*.txt
|
lib/watcom/*.txt
|
||||||
lib/watcom/*.lib
|
lib/watcom/*.lib
|
||||||
lib/watcom/*.bat
|
lib/watcom/*.bat
|
||||||
@@ -85,8 +87,6 @@ include/wx/msw/*.cur
|
|||||||
include/wx/msw/*.ico
|
include/wx/msw/*.ico
|
||||||
include/wx/msw/*.bmp
|
include/wx/msw/*.bmp
|
||||||
|
|
||||||
lib/dummy
|
|
||||||
|
|
||||||
samples/ownerdrw/*.cpp
|
samples/ownerdrw/*.cpp
|
||||||
samples/ownerdrw/*.h
|
samples/ownerdrw/*.h
|
||||||
samples/ownerdrw/makefile.*
|
samples/ownerdrw/makefile.*
|
||||||
|
@@ -160,9 +160,6 @@ all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LI
|
|||||||
dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
|
dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
|
||||||
|
|
||||||
|
|
||||||
test: $(MSWDIR)\$D\wave.obj
|
|
||||||
test2: ..\common\Debug\config.obj
|
|
||||||
|
|
||||||
$D:
|
$D:
|
||||||
mkdir $D
|
mkdir $D
|
||||||
|
|
||||||
@@ -221,7 +218,7 @@ $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
|
|||||||
$(implib) @<<
|
$(implib) @<<
|
||||||
-out:$@
|
-out:$@
|
||||||
-machine:$(CPU)
|
-machine:$(CPU)
|
||||||
$(OBJECTS) $(PERIPH_LIBS)
|
$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
!else
|
!else
|
||||||
@@ -263,7 +260,8 @@ $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
|
|||||||
<<
|
<<
|
||||||
|
|
||||||
# Compile certain files with no optimization (some files cause a
|
# Compile certain files with no optimization (some files cause a
|
||||||
# compiler crash for buggy versions of VC++, e.g. 4.0)
|
# compiler crash for buggy versions of VC++, e.g. 4.0).
|
||||||
|
# Don't forget to put FINAL=1 on the command line.
|
||||||
noopt:
|
noopt:
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
|
$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
|
||||||
@@ -431,7 +429,7 @@ clean: $(PERIPH_CLEAN_TARGET)
|
|||||||
-erase $(COMMDIR)\$D\*.obj
|
-erase $(COMMDIR)\$D\*.obj
|
||||||
-erase $(COMMDIR)\$D\*.pdb
|
-erase $(COMMDIR)\$D\*.pdb
|
||||||
-erase $(COMMDIR)\$D\*.sbr
|
-erase $(COMMDIR)\$D\*.sbr
|
||||||
-erase $(COMMDIR)\\y_tab.c
|
-erase $(COMMDIR)\y_tab.c
|
||||||
-erase $(COMMDIR)\lex_yy.c
|
-erase $(COMMDIR)\lex_yy.c
|
||||||
-erase $(MSWDIR)\$D\*.obj
|
-erase $(MSWDIR)\$D\*.obj
|
||||||
-erase $(MSWDIR)\$D\*.sbr
|
-erase $(MSWDIR)\$D\*.sbr
|
||||||
@@ -615,6 +613,17 @@ $(WXDIR)\docs\ps\referenc.ps: $(WXDIR)\docs\latex\wx\referenc.dvi
|
|||||||
move referenc.ps $(WXDIR)\docs\ps\referenc.ps
|
move referenc.ps $(WXDIR)\docs\ps\referenc.ps
|
||||||
cd $(THISDIR)
|
cd $(THISDIR)
|
||||||
|
|
||||||
|
# An htb file is a zip file containing the .htm, .gif, .hhp, .hhc and .hhk
|
||||||
|
# files, renamed to htb.
|
||||||
|
# This can then be used with e.g. helpview.
|
||||||
|
# Optionally, a cached version of the .hhp file can be generated with hhp2cached.
|
||||||
|
htb:
|
||||||
|
cd $(WXDIR)\docs\html\wx
|
||||||
|
-erase /Y wx.zip wx.htb
|
||||||
|
zip32 wx.zip *.htm *.gif *.hhp *.hhc *.hhk
|
||||||
|
ren wx.zip wx.htb
|
||||||
|
cd $(THISDIR)
|
||||||
|
|
||||||
# In order to force document reprocessing
|
# In order to force document reprocessing
|
||||||
touchmanual:
|
touchmanual:
|
||||||
-touch $(WXDIR)\docs\latex\wx\manual.tex
|
-touch $(WXDIR)\docs\latex\wx\manual.tex
|
||||||
|
@@ -112,8 +112,9 @@ Using makefiles:
|
|||||||
'nmake -f makefile.vc'
|
'nmake -f makefile.vc'
|
||||||
|
|
||||||
to make the wxWindows core library with debug information
|
to make the wxWindows core library with debug information
|
||||||
(wx\lib\wx_d.lib), or
|
(wx\lib\wxd.lib), then
|
||||||
|
|
||||||
|
'nmake -f makefile.vc cleanall FINAL=1'
|
||||||
'nmake -f makefile.vc FINAL=1'
|
'nmake -f makefile.vc FINAL=1'
|
||||||
|
|
||||||
to make the wxWindows core library without debug information
|
to make the wxWindows core library without debug information
|
||||||
@@ -123,17 +124,22 @@ Using makefiles:
|
|||||||
|
|
||||||
Makefile notes:
|
Makefile notes:
|
||||||
|
|
||||||
Use the 'clean' target to clean all objects, libraries and
|
Use the 'cleanall' target to clean all objects, libraries and
|
||||||
executables.
|
executables.
|
||||||
|
|
||||||
To build the release version using makefiles, add FINAL=1 to your
|
To build the release version using makefiles, add FINAL=1 to your
|
||||||
nmake invocation, both when building the library and for samples.
|
nmake invocation, both when building the library and for samples.
|
||||||
|
You MUST use the 'cleanall' target (with FINAL=1 or FINAL=0)
|
||||||
|
before making a different configuration, because otherwise
|
||||||
|
object files used to build the previous configuration may be
|
||||||
|
used accidentally for the current configuation. You might see
|
||||||
|
this manifested in unexpected link errors or warnings. This problem
|
||||||
|
doesn't occur when using project files to build wxWindows.
|
||||||
|
|
||||||
Note that the wxWindows core library allows you to have debug
|
Note that the wxWindows core library allows you to have debug
|
||||||
and release libraries available simultaneously, by compiling the
|
and release libraries available simultaneously, by compiling the
|
||||||
objects in different subdirectories, whereas samples must be
|
objects in different subdirectories, whereas samples must be
|
||||||
cleaned and re-made to build a different configuration. This
|
cleaned and re-made to build a different configuration.
|
||||||
may be changed in later versions of wxWindows.
|
|
||||||
|
|
||||||
To build the DLL version using makefiles:
|
To build the DLL version using makefiles:
|
||||||
|
|
||||||
@@ -179,7 +185,10 @@ trying build a release version of the library. Or, type:
|
|||||||
nmake -f makefile.vc noopt FINAL=1
|
nmake -f makefile.vc noopt FINAL=1
|
||||||
|
|
||||||
and then resume compilation in the normal way. This will build
|
and then resume compilation in the normal way. This will build
|
||||||
troublesome files with no optimization.
|
troublesome files with no optimization. However, there now seems to be
|
||||||
|
an internal linker error using VC++ 4, in addition to internal
|
||||||
|
compiler errors for most of the samples, so this version of the compiler
|
||||||
|
cannot be recommended!
|
||||||
|
|
||||||
Note (4): some crash problems can be due to inconsistent compiler
|
Note (4): some crash problems can be due to inconsistent compiler
|
||||||
options. If strange/weird/impossible things start to happen please
|
options. If strange/weird/impossible things start to happen please
|
||||||
@@ -255,6 +264,10 @@ LINK=ilink32 in src\makeb32.env. You may also need to disable
|
|||||||
wxUSE_LIBJPEG because there is a conflict in the BC++ headers
|
wxUSE_LIBJPEG because there is a conflict in the BC++ headers
|
||||||
(actually this problem seems to have gone away with 5.5 and SP1).
|
(actually this problem seems to have gone away with 5.5 and SP1).
|
||||||
|
|
||||||
|
Note (7): If you wish debug messages to be sent to the console in
|
||||||
|
debug mode, edit src\makeb32.env and change /aa to /Tpe in
|
||||||
|
LINK_FLAGS.
|
||||||
|
|
||||||
Compiling using the IDE files:
|
Compiling using the IDE files:
|
||||||
|
|
||||||
1. Load src\bc32.ide (Release settings)
|
1. Load src\bc32.ide (Release settings)
|
||||||
|
@@ -576,14 +576,11 @@
|
|||||||
// support instead.
|
// support instead.
|
||||||
#define wxUSE_BITMAP_MESSAGE 1
|
#define wxUSE_BITMAP_MESSAGE 1
|
||||||
// Define 1 to use bitmap messages.
|
// Define 1 to use bitmap messages.
|
||||||
#define wxUSE_PORTABLE_FONTS_IN_MSW 0
|
|
||||||
// Define 1 to use new portable font scheme in Windows
|
|
||||||
// (used by default under X)
|
|
||||||
#define wxFONT_SIZE_COMPATIBILITY 0
|
#define wxFONT_SIZE_COMPATIBILITY 0
|
||||||
// Define 1 for font size to be backward compatible
|
// Define 1 for font size to be backward compatible
|
||||||
// to 1.63 and earlier. 1.64 and later define point
|
// to 1.63 and earlier. 1.64 and later define point
|
||||||
// sizes to be compatible with Windows.
|
// sizes to be compatible with Windows.
|
||||||
#define wxUSE_PENWINDOWS 0
|
#define wxUSE_PENWINDOWS 0
|
||||||
// Set to 1 to use PenWindows
|
// Set to 1 to use PenWindows
|
||||||
|
|
||||||
#define wxUSE_OWNER_DRAWN 1
|
#define wxUSE_OWNER_DRAWN 1
|
||||||
@@ -618,10 +615,6 @@
|
|||||||
|
|
||||||
#undef wxUSE_DEBUG_NEW_ALWAYS
|
#undef wxUSE_DEBUG_NEW_ALWAYS
|
||||||
#define wxUSE_DEBUG_NEW_ALWAYS 0
|
#define wxUSE_DEBUG_NEW_ALWAYS 0
|
||||||
|
|
||||||
#ifndef _MBCS
|
|
||||||
// #define _MBCS
|
|
||||||
#endif
|
|
||||||
#endif // wxUSE_MFC
|
#endif // wxUSE_MFC
|
||||||
|
|
||||||
#if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
|
#if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
|
||||||
|
@@ -16,3 +16,9 @@ OBJECTS = $(PROGRAM).obj
|
|||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.vc
|
!include $(WXDIR)\src\makeprog.vc
|
||||||
|
|
||||||
|
# For broken VC++ 4
|
||||||
|
noopt:
|
||||||
|
cl @<<
|
||||||
|
$(CPPFLAGS2) /Od /c /Tp $(PROGRAM).cpp
|
||||||
|
<<
|
||||||
|
|
||||||
|
@@ -29,11 +29,11 @@ wxclean:
|
|||||||
nmake -f makefile.vc clean
|
nmake -f makefile.vc clean
|
||||||
# cd $(THISDIR)
|
# cd $(THISDIR)
|
||||||
|
|
||||||
$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
$(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
||||||
$(link) @<<
|
$(link) @<<
|
||||||
-out:$(PROGRAM).exe
|
-out:$(PROGRAM).exe
|
||||||
$(LINKFLAGS)
|
$(LINKFLAGS)
|
||||||
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
|
$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
|
||||||
$(LIBS)
|
$(LIBS)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
|
@@ -266,7 +266,7 @@ bool wxApp::Initialize()
|
|||||||
|
|
||||||
// This is to foil optimizations in Visual C++ that throw out dummy.obj.
|
// This is to foil optimizations in Visual C++ that throw out dummy.obj.
|
||||||
// PLEASE DO NOT ALTER THIS.
|
// PLEASE DO NOT ALTER THIS.
|
||||||
#if defined(__VISUALC__) && !defined(WXMAKINGDLL)
|
#if defined(__VISUALC__) && defined(__WIN16__) && !defined(WXMAKINGDLL)
|
||||||
extern char wxDummyChar;
|
extern char wxDummyChar;
|
||||||
if (wxDummyChar) wxDummyChar++;
|
if (wxDummyChar) wxDummyChar++;
|
||||||
#endif
|
#endif
|
||||||
|
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
// Foils optimizations in Visual C++ (see also app.cpp). Without it,
|
// Foils optimizations in Visual C++ (see also app.cpp). Without it,
|
||||||
// dummy.obj isn't linked and we get a linker error.
|
// dummy.obj isn't linked and we get a linker error.
|
||||||
#if defined(__VISUALC__)
|
#if defined(__VISUALC__) && defined(__WIN16__)
|
||||||
char wxDummyChar = 0;
|
char wxDummyChar = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -39,11 +39,7 @@
|
|||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
|
IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
|
||||||
|
|
||||||
#if wxUSE_PORTABLE_FONTS_IN_MSW
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxFontRefData - the internal description of the font
|
// wxFontRefData - the internal description of the font
|
||||||
|
@@ -365,9 +365,6 @@ all: dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LI
|
|||||||
dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
|
dirs: $(MSWDIR)\$D $(COMMDIR)\$D $(GENDIR)\$D $(OLEDIR)\$D $(HTMLDIR)\$D
|
||||||
|
|
||||||
|
|
||||||
test: $(MSWDIR)\$D\wave.obj
|
|
||||||
test2: ..\common\Debug\config.obj
|
|
||||||
|
|
||||||
$D:
|
$D:
|
||||||
mkdir $D
|
mkdir $D
|
||||||
|
|
||||||
@@ -426,7 +423,7 @@ $(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
|
|||||||
$(implib) @<<
|
$(implib) @<<
|
||||||
-out:$@
|
-out:$@
|
||||||
-machine:$(CPU)
|
-machine:$(CPU)
|
||||||
$(OBJECTS) $(PERIPH_LIBS)
|
$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
!else
|
!else
|
||||||
@@ -469,6 +466,7 @@ $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummydll.obj /c /Tp dummydll.cpp
|
|||||||
|
|
||||||
# Compile certain files with no optimization (some files cause a
|
# Compile certain files with no optimization (some files cause a
|
||||||
# compiler crash for buggy versions of VC++, e.g. 4.0)
|
# compiler crash for buggy versions of VC++, e.g. 4.0)
|
||||||
|
# Don't forget to put FINAL=1 on the command line.
|
||||||
noopt:
|
noopt:
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
|
$(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
|
||||||
@@ -616,7 +614,7 @@ rcparser:
|
|||||||
nmake -f makefile.vc FINAL=$(FINAL)
|
nmake -f makefile.vc FINAL=$(FINAL)
|
||||||
cd $(WXDIR)\src\msw
|
cd $(WXDIR)\src\msw
|
||||||
|
|
||||||
cleanall: clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
|
cleanall: clean clean_png clean_zlib clean_xpm clean_jpeg clean_tiff
|
||||||
-erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
|
-erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).dll
|
||||||
-erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
|
-erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).lib
|
||||||
-erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
|
-erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
|
||||||
@@ -636,7 +634,7 @@ clean: $(PERIPH_CLEAN_TARGET)
|
|||||||
-erase $(COMMDIR)\$D\*.obj
|
-erase $(COMMDIR)\$D\*.obj
|
||||||
-erase $(COMMDIR)\$D\*.pdb
|
-erase $(COMMDIR)\$D\*.pdb
|
||||||
-erase $(COMMDIR)\$D\*.sbr
|
-erase $(COMMDIR)\$D\*.sbr
|
||||||
-erase $(COMMDIR)\\y_tab.c
|
-erase $(COMMDIR)\y_tab.c
|
||||||
-erase $(COMMDIR)\lex_yy.c
|
-erase $(COMMDIR)\lex_yy.c
|
||||||
-erase $(MSWDIR)\$D\*.obj
|
-erase $(MSWDIR)\$D\*.obj
|
||||||
-erase $(MSWDIR)\$D\*.sbr
|
-erase $(MSWDIR)\$D\*.sbr
|
||||||
|
@@ -59,7 +59,7 @@ OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
|
|||||||
all: $(WINPNGLIB)
|
all: $(WINPNGLIB)
|
||||||
|
|
||||||
$(WINPNGLIB): $(OBJECTS)
|
$(WINPNGLIB): $(OBJECTS)
|
||||||
-del $(WINPNGLIB)
|
-erase $(WINPNGLIB)
|
||||||
lib @<<
|
lib @<<
|
||||||
-out:$(WINPNGLIB)
|
-out:$(WINPNGLIB)
|
||||||
$(OBJECTS)
|
$(OBJECTS)
|
||||||
@@ -71,6 +71,6 @@ $(OBJECTS)
|
|||||||
clean:
|
clean:
|
||||||
-erase *.obj
|
-erase *.obj
|
||||||
-erase *.exe
|
-erase *.exe
|
||||||
-erase *.lib
|
-erase $(WINPNGLIB)
|
||||||
|
|
||||||
cleanall: clean
|
cleanall: clean
|
||||||
|
@@ -95,7 +95,7 @@ zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
|||||||
LIBOBJECTS = $(OBJ1) $(OBJ2)
|
LIBOBJECTS = $(OBJ1) $(OBJ2)
|
||||||
|
|
||||||
$(LIBTARGET): $(LIBOBJECTS)
|
$(LIBTARGET): $(LIBOBJECTS)
|
||||||
-del $(LIBTARGET)
|
-erase $(LIBTARGET)
|
||||||
lib @<<
|
lib @<<
|
||||||
-out:$(LIBTARGET)
|
-out:$(LIBTARGET)
|
||||||
$(LIBOBJECTS)
|
$(LIBOBJECTS)
|
||||||
|
Reference in New Issue
Block a user