1 #!#############################################################################
3 #! Purpose: tmake template file from which wxWinDll.dsp is generated by running
4 #! tmake -t vc6dll wxwin.pro -o wxWinDll.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/;
22 next if $wxCommon{$file} =~ /\bBO\b/;
24 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
25 $project{$tag} .= $file . " "
28 foreach $file (sort keys %wxMSW) {
29 next if $wxMSW{$file} =~ /\b16\b/;
32 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
33 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
34 $project{$tag} .= $file . " "
37 foreach $file (sort keys %wxHTML) {
38 next if $wxHTML{$file} =~ /\b16\b/;
39 $project{"WXHTMLSRCS"} .= $file . " "
42 # Microsoft Developer Studio Project File - Name="wxWinDll" - Package Owner=<4>
43 # Microsoft Developer Studio Generated Build File, Format Version 6.00
46 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
48 CFG=wxWinDll - Win32 Debug
49 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
50 !MESSAGE use the Export Makefile command and run
52 !MESSAGE NMAKE /f "wxWinDll.mak".
54 !MESSAGE You can specify a configuration when running NMAKE
55 !MESSAGE by defining the macro CFG on the command line. For example:
57 !MESSAGE NMAKE /f "wxWinDll.mak" CFG="wxWinDll - Win32 Debug"
59 !MESSAGE Possible choices for configuration are:
61 !MESSAGE "wxWinDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
62 !MESSAGE "wxWinDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
66 # PROP AllowPerConfigDependencies 0
67 # PROP Scc_ProjName ""
68 # PROP Scc_LocalPath ""
73 !IF "$(CFG)" == "wxWinDll - Win32 Release"
76 # PROP BASE Use_Debug_Libraries 0
77 # PROP BASE Output_Dir "Release"
78 # PROP BASE Intermediate_Dir "Release"
79 # PROP BASE Target_Dir ""
81 # PROP Use_Debug_Libraries 0
82 # PROP Output_Dir "ReleaseDLL"
83 # PROP Intermediate_Dir "ReleaseDLL"
84 # PROP Ignore_Export_Lib 0
86 # ADD BASE CPP /nologo /MT /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c
87 # ADD CPP /nologo /MT /W4 /GX /O2 /I "$(wx)\include" /I "$(wx)\src\zlib" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /D "__WXMSW__" /D "__WIN95__" /D "__WINDOWS__" /D "__WIN32__" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /c
88 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
89 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
90 # ADD BASE RSC /l 0x409 /d "NDEBUG"
91 # ADD RSC /l 0x409 /d "NDEBUG"
93 # ADD BASE BSC32 /nologo
96 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /machine:I386
97 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib winmm.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /machine:I386
99 !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
101 # PROP BASE Use_MFC 0
102 # PROP BASE Use_Debug_Libraries 1
103 # PROP BASE Output_Dir "Debug"
104 # PROP BASE Intermediate_Dir "Debug"
105 # PROP BASE Target_Dir ""
107 # PROP Use_Debug_Libraries 1
108 # PROP Output_Dir "DebugDLL"
109 # PROP Intermediate_Dir "DebugDLL"
110 # PROP Ignore_Export_Lib 0
112 # ADD BASE CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /GZ /c
113 # ADD CPP /nologo /MTd /W4 /Gm /ZI /Od /I "$(wx)\include" /I "$(wx)\src\zlib" /D "_DEBUG" /D "__WXDEBUG__" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /D "__WXMSW__" /D "__WIN95__" /D "__WINDOWS__" /D "__WIN32__" /D "WXMAKINGDLL" /Yu"wx/wxprec.h" /FD /GZ /c
114 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
115 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
116 # ADD BASE RSC /l 0x409 /d "_DEBUG"
117 # ADD RSC /l 0x409 /d "_DEBUG"
119 # ADD BASE BSC32 /nologo
122 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib lib\png.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /dll /debug /machine:I386 /pdbtype:sept
123 # ADD LINK32 kernel32.lib user32.lib gdi32.lib advapi32.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib odbc32.lib uuid.lib rpcrt4.lib comctl32.lib wsock32.lib winmm.lib src\png\png.lib src\xpm\xpm.lib src\zlib\zlib.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
129 # Name "wxWinDll - Win32 Release"
130 # Name "wxWinDll - Win32 Debug"
132 # PROP Default_Filter ""
135 SOURCE=.\src\msw\dummydll.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\\common\\", "\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)" == "wxWinDll - Win32 Release"
152 # SUBTRACT CPP /YX /Yc /Yu
154 !ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
157 # SUBTRACT CPP /YX /Yc /Yu