]> git.saurik.com Git - wxWidgets.git/commitdiff
Some VC++ makefile fixes; minor comment mods to setup0.h
authorJulian Smart <julian@anthemion.co.uk>
Sun, 19 Mar 2000 14:47:13 +0000 (14:47 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 19 Mar 2000 14:47:13 +0000 (14:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 files changed:
distrib/msw/msw.rsp
distrib/msw/tmake/vc.t
docs/msw/install.txt
include/wx/msw/setup0.h
samples/minimal/makefile.vc
src/makeprog.vc
src/msw/app.cpp
src/msw/dummy.cpp
src/msw/font.cpp
src/msw/makefile.vc
src/png/makefile.vc
src/zlib/makefile.vc

index 76762073767d3e1b1cb8eb18c274a373cb8a0569..97d6d40d5f56d71e24aa54833b12592cfeb5dbdc 100644 (file)
@@ -1,5 +1,7 @@
 Mingw32-gcc295.patches
 
+lib/dummy
+lib/wx*.def
 lib/watcom/*.txt
 lib/watcom/*.lib
 lib/watcom/*.bat
@@ -85,8 +87,6 @@ include/wx/msw/*.cur
 include/wx/msw/*.ico
 include/wx/msw/*.bmp
 
-lib/dummy
-
 samples/ownerdrw/*.cpp
 samples/ownerdrw/*.h
 samples/ownerdrw/makefile.*
index 3f0cb99c901daaf2d8f323f6ee1e1950ed263173..97f19d896b7f820881c8eda1b4650eb2e73cd01c 100644 (file)
@@ -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
 
 
-test:   $(MSWDIR)\$D\wave.obj
-test2:  ..\common\Debug\config.obj
-
 $D:
     mkdir $D
 
@@ -221,7 +218,7 @@ $(WXDIR)\lib\$(WXLIBNAME).lib:      $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
        $(implib) @<<
 -out:$@
 -machine:$(CPU)
-$(OBJECTS) $(PERIPH_LIBS)
+$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
 <<
 
 !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
-# 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:
        cl @<<
 $(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\*.pdb
         -erase $(COMMDIR)\$D\*.sbr
-        -erase $(COMMDIR)\\y_tab.c
+        -erase $(COMMDIR)\y_tab.c
         -erase $(COMMDIR)\lex_yy.c
         -erase $(MSWDIR)\$D\*.obj
         -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
         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
 touchmanual:
     -touch $(WXDIR)\docs\latex\wx\manual.tex
index 04311b7ad88afd375888c87fb940617fb607bb02..50fd12e2c217b1f7e5ce047e1e452bc0dd814690 100644 (file)
@@ -112,8 +112,9 @@ Using makefiles:
   'nmake -f makefile.vc'
 
    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'
 
    to make the wxWindows core library without debug information
@@ -123,17 +124,22 @@ Using makefiles:
 
 Makefile notes:
 
-  Use the 'clean' target to clean all objects, libraries and
+  Use the 'cleanall' target to clean all objects, libraries and
   executables.
 
   To build the release version using makefiles, add FINAL=1 to your
   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
   and release libraries available simultaneously, by compiling the
   objects in different subdirectories, whereas samples must be
-  cleaned and re-made to build a different configuration. This
-  may be changed in later versions of wxWindows.
+  cleaned and re-made to build a different configuration.
 
 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
 
 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
 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
 (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:
 
 1. Load src\bc32.ide (Release settings)
index a9d81afe453a1a08dbe873dccd98924cbac214d8..d2b150d44956f89d74c2ca831e3c8adea114635f 100644 (file)
                                 // support instead.
 #define wxUSE_BITMAP_MESSAGE         1
                                 // 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 1 for font size to be backward compatible
                                 // to 1.63 and earlier. 1.64 and later define point
                                 // sizes to be compatible with Windows.
-#define wxUSE_PENWINDOWS 0
+#define wxUSE_PENWINDOWS             0
                                 // Set to 1 to use PenWindows
 
 #define wxUSE_OWNER_DRAWN             1
 
 #undef  wxUSE_DEBUG_NEW_ALWAYS
 #define wxUSE_DEBUG_NEW_ALWAYS          0
-
-#ifndef _MBCS
-// #define _MBCS
-#endif
 #endif // wxUSE_MFC
 
 #if (!defined(WIN32) && !defined(__WIN32__)) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
index 35aefc474cb7662381652fffd68f208420c36e43..d4dc595b73da2f3904548b272a441270477cd357 100644 (file)
@@ -16,3 +16,9 @@ OBJECTS = $(PROGRAM).obj
 
 !include $(WXDIR)\src\makeprog.vc
 
+# For broken VC++ 4
+noopt:
+       cl @<<
+$(CPPFLAGS2) /Od /c /Tp $(PROGRAM).cpp
+<<
+
index a2f9cd52dc54877c1d1581dcab94edb12c2e95e0..1db976b6d5d2cf3cc9d5d820045b283d1fbe59c1 100644 (file)
@@ -29,11 +29,11 @@ wxclean:
         nmake -f makefile.vc clean
 #        cd $(THISDIR)
 
-$(PROGRAM).exe:      $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
+$(PROGRAM).exe:      $(WXLIB) $(OBJECTS) $(PROGRAM).res
        $(link) @<<
 -out:$(PROGRAM).exe
 $(LINKFLAGS)
-$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
+$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
 $(LIBS)
 <<
 
index a564b6033fd2a3c048bbed94a1d25fd72cd2fbd7..7d642fc7e2d082b7b3ae521c2e580f80561a2588 100644 (file)
@@ -266,7 +266,7 @@ bool wxApp::Initialize()
 
     // This is to foil optimizations in Visual C++ that throw out dummy.obj.
     // PLEASE DO NOT ALTER THIS.
-#if defined(__VISUALC__) && !defined(WXMAKINGDLL)
+#if defined(__VISUALC__) && defined(__WIN16__) && !defined(WXMAKINGDLL)
     extern char wxDummyChar;
     if (wxDummyChar) wxDummyChar++;
 #endif
index ae232c15c761ab64b7770f33c04bd126e8324059..4829376c7c7f75dfe6ab8afaba18a12c7af15f45 100644 (file)
@@ -30,7 +30,7 @@
 
 // Foils optimizations in Visual C++ (see also app.cpp). Without it,
 // dummy.obj isn't linked and we get a linker error.
-#if defined(__VISUALC__)
+#if defined(__VISUALC__) && defined(__WIN16__)
     char wxDummyChar = 0;
 #endif
 
index 54ef9aced840e1700b153be9ca7939e08dfd581a..e02b116efa1889b138af052d858e154c605c41ef 100644 (file)
 
 #include "wx/msw/private.h"
 
-    IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
-
-    #if wxUSE_PORTABLE_FONTS_IN_MSW
-        IMPLEMENT_DYNAMIC_CLASS(wxFontNameDirectory, wxObject)
-    #endif
+IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
 
 // ----------------------------------------------------------------------------
 // wxFontRefData - the internal description of the font
index 426713874310f4e9a81311a86434465acaa179b3..6eadac61766bb4d37b6b730f88a995686631ebb6 100644 (file)
@@ -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
 
 
-test:   $(MSWDIR)\$D\wave.obj
-test2:  ..\common\Debug\config.obj
-
 $D:
     mkdir $D
 
@@ -426,7 +423,7 @@ $(WXDIR)\lib\$(WXLIBNAME).lib:      $D\dummy.obj $(OBJECTS) $(PERIPH_LIBS)
        $(implib) @<<
 -out:$@
 -machine:$(CPU)
-$(OBJECTS) $(PERIPH_LIBS)
+$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS)
 <<
 
 !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
 # compiler crash for buggy versions of VC++, e.g. 4.0)
+# Don't forget to put FINAL=1 on the command line.
 noopt:
        cl @<<
 $(CPPFLAGS2) /Od /Fo$(COMMDIR)\$D\datetime.obj /c /Tp $(COMMDIR)\datetime.cpp
@@ -616,7 +614,7 @@ rcparser:
     nmake -f makefile.vc FINAL=$(FINAL)
     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).lib
         -erase ..\..\lib\wx$(WXVERSION)$(LIBEXT).exp
@@ -636,7 +634,7 @@ clean: $(PERIPH_CLEAN_TARGET)
         -erase $(COMMDIR)\$D\*.obj
         -erase $(COMMDIR)\$D\*.pdb
         -erase $(COMMDIR)\$D\*.sbr
-        -erase $(COMMDIR)\\y_tab.c
+        -erase $(COMMDIR)\y_tab.c
         -erase $(COMMDIR)\lex_yy.c
         -erase $(MSWDIR)\$D\*.obj
         -erase $(MSWDIR)\$D\*.sbr
index 94244472b839d2b3b617d450424ada06e04c91e0..61b7be06a5e0b0e3f88c7c31a34ac189a4991933 100644 (file)
@@ -59,7 +59,7 @@ OBJECTS = png.obj pngread.obj pngrtran.obj pngrutil.obj \
 all:    $(WINPNGLIB)
 
 $(WINPNGLIB):      $(OBJECTS)
-        -del $(WINPNGLIB)
+        -erase $(WINPNGLIB)
         lib @<<
 -out:$(WINPNGLIB)
 $(OBJECTS)
@@ -71,6 +71,6 @@ $(OBJECTS)
 clean:
         -erase *.obj
         -erase *.exe
-        -erase *.lib
+        -erase $(WINPNGLIB)
 
 cleanall:      clean
index 5c195c82b420d7fe565905740b946c1111a14eb2..fdcbbb97c7f0c6bf2e395d2c3bfdaf05e3a601fe 100644 (file)
@@ -95,7 +95,7 @@ zutil.obj: zutil.c zutil.h zlib.h zconf.h
 LIBOBJECTS = $(OBJ1) $(OBJ2)
 
 $(LIBTARGET): $(LIBOBJECTS)
-        -del $(LIBTARGET)
+        -erase $(LIBTARGET)
         lib @<<
 -out:$(LIBTARGET)
 $(LIBOBJECTS)