1 #!#############################################################################
3 #! Purpose: tmake template file from which wxWindows.dsp is generated by running
4 #! tmake -t vc6 wxwin.pro -o wxWindows.dsp
5 #! Author: Vadim Zeitlin
8 #!#############################################################################
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/;
17 $project{"WXGENERICSRCS"} .= $file . " "
20 foreach $file (sort keys %wxCommon) {
21 next if $wxCommon{$file} =~ /\b16\b/;
23 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
24 $project{$tag} .= $file . " "
27 foreach $file (sort keys %wxMSW) {
28 next if $wxMSW{$file} =~ /\b16\b/;
31 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
32 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
33 $project{$tag} .= $file . " "
36 foreach $file (sort keys %wxHTML) {
37 next if $wxHTML{$file} =~ /\b16\b/;
38 $project{"WXHTMLSRCS"} .= $file . " "
41 if ( Config("wxnodir") ) {
45 if ( $ENV{'wx'} ) { $WXDIR = "\$(wx)"; }
46 else { $WXDIR = "\$(WXWIN)"; }
49 # Microsoft Developer Studio Project File - Name="wxWindows" - Package Owner=<4>
50 # Microsoft Developer Studio Generated Build File, Format Version 6.00
53 # TARGTYPE "Win32 (x86) Static Library" 0x0104
55 CFG=wxWindows - Win32 Debug
56 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
57 !MESSAGE use the Export Makefile command and run
59 !MESSAGE NMAKE /f "wxWindows.mak".
61 !MESSAGE You can specify a configuration when running NMAKE
62 !MESSAGE by defining the macro CFG on the command line. For example:
64 !MESSAGE NMAKE /f "wxWindows.mak" CFG="wxWindows - Win32 Debug"
66 !MESSAGE Possible choices for configuration are:
68 !MESSAGE "wxWindows - Win32 Release" (based on "Win32 (x86) Static Library")
69 !MESSAGE "wxWindows - Win32 Debug" (based on "Win32 (x86) Static Library")
73 # PROP AllowPerConfigDependencies 0
74 # PROP Scc_ProjName ""
75 # PROP Scc_LocalPath ""
79 !IF "$(CFG)" == "wxWindows - Win32 Release"
82 # PROP BASE Use_Debug_Libraries 0
83 # PROP BASE Output_Dir "Release"
84 # PROP BASE Intermediate_Dir "Release"
85 # PROP BASE Target_Dir ""
87 # PROP Use_Debug_Libraries 0
88 # PROP Output_Dir "Release"
89 # PROP Intermediate_Dir "Release"
91 # ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MT" /YX /FD /c
92 # ADD CPP /nologo /MD /W4 /Zi /O2 /I #$ $text = "\"$WXDIR\\include\" /I \"$WXDIR\\src\\zlib\" /I \"$WXDIR\\src\\jpeg\" /I \"$WXDIR\\src\\png\" /I \"$WXDIR\\src\\tiff\" /D \"NDEBUG\" /D wxUSE_GUI=1 /D WIN95=1 /D \"__WIN95__\" /D \"WIN32\" /D \"_WIN32\" /D WINVER=0x400 /D \"__WINDOWS__\" /D \"__WXMSW__\" /D \"__WIN32__\" /D \"_MT\" /Yu\"wx/wxprec.h\" /FD /c"
93 # ADD BASE RSC /l 0x409
96 # ADD BASE BSC32 /nologo
99 # ADD BASE LIB32 /nologo
102 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug"
104 # PROP BASE Use_MFC 0
105 # PROP BASE Use_Debug_Libraries 1
106 # PROP BASE Output_Dir "Debug"
107 # PROP BASE Intermediate_Dir "Debug"
108 # PROP BASE Target_Dir ""
110 # PROP Use_Debug_Libraries 1
111 # PROP Output_Dir "Debug"
112 # PROP Intermediate_Dir "Debug"
114 # ADD BASE CPP /nologo /MDd /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" -D "_MT" /YX /FD /c
115 # ADD CPP /nologo /MDd /W4 /Zi /Od /I #$ $text = "\"$WXDIR\\include\" /I \"$WXDIR\\src\\zlib\" /I \"$WXDIR\\src\\jpeg\" /I \"$WXDIR\\src\\png\" /I \"$WXDIR\\src\\tiff\" /D \"_DEBUG\" /D DEBUG=1 /D WXDEBUG=1 /D \"__WXDEBUG__\" /D wxUSE_GUI=1 /D \"__WIN95__\" /D \"WIN32\" /D \"_WIN32\" /D WINVER=0x400 /D \"__WINDOWS__\" /D \"__WIN32__\" /D \"__WXMSW__\" /Fr /D \"_MT\" /Yu\"wx/wxprec.h\" /FD /c"
116 # ADD BASE RSC /l 0x409
119 # ADD BASE BSC32 /nologo
120 # ADD BSC32 /nologo /o"lib/wxWindows.bsc"
122 # ADD BASE LIB32 /nologo
129 # Name "wxWindows - Win32 Release"
130 # Name "wxWindows - Win32 Debug"
132 # PROP Default_Filter ""
135 SOURCE=.\src\msw\dummy.cpp
136 # ADD CPP /Yc"wx/wxprec.h"
138 #$ ExpandGlue("WXMSWSRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# End Source File\n");
139 #$ ExpandGlue("WXOLESRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\ole\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\msw\\ole\\", "\n# End Source File\n");
140 #$ ExpandGlue("WXGENERICSRCS", "# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\generic\\", "\n# End Source File\n");
141 #$ ExpandGlue("WXCOMMONSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# End Source File\n");
142 #$ ExpandGlue("WXCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\common\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
143 #$ ExpandGlue("WXMSWCSRCS", "# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\msw\\", "\n# SUBTRACT CPP /YX /Yc /Yu\n# End Source File\n");
144 #$ ExpandGlue("WXHTMLSRCS", "# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n# Begin Source File\n\nSOURCE=.\\src\\html\\", "\n# End Source File\n");
148 SOURCE=.\src\common\y_tab.c
150 !IF "$(CFG)" == "wxWindows - Win32 Release"
152 # ADD CPP /W1 /D "USE_DEFINE"
153 # SUBTRACT CPP /YX /Yc /Yu
155 !ELSEIF "$(CFG)" == "wxWindows - Win32 Debug"
157 # ADD CPP /W1 /D "USE_DEFINE"
158 # SUBTRACT CPP /YX /Yc /Yu