]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/vc6dll.t
added wxWindows shared library to link of OpenGL wxWindows shared library
[wxWidgets.git] / distrib / msw / tmake / vc6dll.t
CommitLineData
755c41bf
VZ
1#!#############################################################################
2#! File: vc6dll.t
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
6#! Created: 13.10.99
7#! Version: $Id$
8#!#############################################################################
9#${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
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 . " "
18 }
19
20 foreach $file (sort keys %wxCommon) {
21 next if $wxCommon{$file} =~ /\b16\b/;
755c41bf
VZ
22
23 my $tag = $file =~ /\.c$/ ? "WXCSRCS" : "WXCOMMONSRCS";
24 $project{$tag} .= $file . " "
25 }
26
27 foreach $file (sort keys %wxMSW) {
28 next if $wxMSW{$file} =~ /\b16\b/;
29
30 my $tag;
31 if ( $wxMSW{$file} =~ /\bO\b/ ) { $tag = "WXOLESRCS" }
32 else { $tag = $file =~ /\.c$/ ? "WXMSWCSRCS" : "WXMSWSRCS" }
33 $project{$tag} .= $file . " "
34 }
35
36 foreach $file (sort keys %wxHTML) {
37 next if $wxHTML{$file} =~ /\b16\b/;
38 $project{"WXHTMLSRCS"} .= $file . " "
39 }
40#$}
41# Microsoft Developer Studio Project File - Name="wxWinDll" - Package Owner=<4>
42# Microsoft Developer Studio Generated Build File, Format Version 6.00
43# ** DO NOT EDIT **
44
45# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
46
47CFG=wxWinDll - Win32 Debug
48!MESSAGE This is not a valid makefile. To build this project using NMAKE,
49!MESSAGE use the Export Makefile command and run
50!MESSAGE
51!MESSAGE NMAKE /f "wxWinDll.mak".
52!MESSAGE
53!MESSAGE You can specify a configuration when running NMAKE
54!MESSAGE by defining the macro CFG on the command line. For example:
55!MESSAGE
56!MESSAGE NMAKE /f "wxWinDll.mak" CFG="wxWinDll - Win32 Debug"
57!MESSAGE
58!MESSAGE Possible choices for configuration are:
59!MESSAGE
60!MESSAGE "wxWinDll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
61!MESSAGE "wxWinDll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
62!MESSAGE
63
64# Begin Project
65# PROP AllowPerConfigDependencies 0
66# PROP Scc_ProjName ""
67# PROP Scc_LocalPath ""
68CPP=cl.exe
69MTL=midl.exe
70RSC=rc.exe
71
72!IF "$(CFG)" == "wxWinDll - Win32 Release"
73
74# PROP BASE Use_MFC 0
75# PROP BASE Use_Debug_Libraries 0
76# PROP BASE Output_Dir "Release"
77# PROP BASE Intermediate_Dir "Release"
78# PROP BASE Target_Dir ""
79# PROP Use_MFC 0
80# PROP Use_Debug_Libraries 0
81# PROP Output_Dir "ReleaseDLL"
82# PROP Intermediate_Dir "ReleaseDLL"
83# PROP Ignore_Export_Lib 0
84# PROP Target_Dir ""
f6bcfd97 85# ADD BASE CPP /nologo /MD /W4 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /c
2bb1aac7 86# ADD CPP /nologo /MD /W4 /GX /O2 /I "$(wx)\include" /I "$(wx)\src\regex" /I "$(wx)\src\zlib" /I "$(wx)\src\jpeg" /I "$(wx)\src\png" /I "$(wx)\src\tiff" /D "NDEBUG" /D wxUSE_GUI=1 /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
755c41bf
VZ
87# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
88# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
89# ADD BASE RSC /l 0x409 /d "NDEBUG"
3ca6a5f0 90# ADD RSC /l 0x409 /i "$(wx)\include" /d "NDEBUG"
755c41bf
VZ
91BSC32=bscmake.exe
92# ADD BASE BSC32 /nologo
93# ADD BSC32 /nologo
94LINK32=link.exe
2bb1aac7
VZ
95# 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\jpeg\Release\jpeg.lib src\tiff\Release\tiff.lib src\png\Release\png.lib src\regex\Release\regex.lib src\zlib\Release\zlib.lib /nologo /dll /machine:I386 /out:"ReleaseDll/wxmsw221.dll"
96# 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\jpeg\Release\jpeg.lib src\tiff\Release\tiff.lib src\png\Release\png.lib src\regex\Release\regex.lib src\zlib\Release\zlib.lib /nologo /dll /machine:I386 /out:"ReleaseDll/wxmsw221.dll"
755c41bf
VZ
97
98!ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
99
100# PROP BASE Use_MFC 0
101# PROP BASE Use_Debug_Libraries 1
102# PROP BASE Output_Dir "Debug"
103# PROP BASE Intermediate_Dir "Debug"
104# PROP BASE Target_Dir ""
105# PROP Use_MFC 0
106# PROP Use_Debug_Libraries 1
107# PROP Output_Dir "DebugDLL"
108# PROP Intermediate_Dir "DebugDLL"
109# PROP Ignore_Export_Lib 0
110# PROP Target_Dir ""
3ca6a5f0 111# ADD BASE CPP /nologo /MDd /W4 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WXWINDLL_EXPORTS" /YX /FD /GZ /c
2bb1aac7 112# ADD CPP /nologo /MDd /W4 /Gm /Zi /Od /I "$(wx)\include" /I "$(wx)\src\regex" /I "$(wx)\src\zlib" /I "$(wx)\src\jpeg" /I "$(wx)\src\png" /I "$(wx)\src\tiff" /D "_DEBUG" /D "__WXDEBUG__" /D wxUSE_GUI=1 /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
755c41bf
VZ
113# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
114# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
115# ADD BASE RSC /l 0x409 /d "_DEBUG"
3ca6a5f0 116# ADD RSC /l 0x409 /i "$(wx)\include" /d "_DEBUG"
755c41bf
VZ
117BSC32=bscmake.exe
118# ADD BASE BSC32 /nologo
119# ADD BSC32 /nologo
120LINK32=link.exe
2bb1aac7
VZ
121# 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\jpeg\Debug\jpeg.lib src\tiff\Debug\tiff.lib src\png\Debug\png.lib src\regex\Debug\regex.lib src\zlib\Debug\zlib.lib /dll /debug /machine:I386 /pdbtype:sept /out:"DebugDll/wxmsw221d.dll"
122# 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\jpeg\Debug\jpeg.lib src\tiff\Debug\tiff.lib src\png\Debug\png.lib src\regex\Debug\regex.lib src\zlib\Debug\zlib.lib /nologo /dll /debug /machine:I386 /pdbtype:sept /out:"DebugDll/wxmsw221d.dll"
755c41bf
VZ
123
124!ENDIF
125
126# Begin Target
127
128# Name "wxWinDll - Win32 Release"
129# Name "wxWinDll - Win32 Debug"
130
131# PROP Default_Filter ""
132# Begin Source File
133
134SOURCE=.\src\msw\dummydll.cpp
135# ADD CPP /Yc"wx/wxprec.h"
136# End Source File
137#$ 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");
138#$ 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");
139#$ 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");
140#$ 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");
141#$ 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");
3b415ba4 142#$ 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");
755c41bf
VZ
143#$ 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");
144
145# Begin Source File
146
3ca6a5f0
BP
147SOURCE=.\src\msw\version.rc
148# End Source File
149# Begin Source File
150
755c41bf
VZ
151SOURCE=.\src\common\y_tab.c
152
153!IF "$(CFG)" == "wxWinDll - Win32 Release"
154
3ca6a5f0 155# ADD CPP /W1
755c41bf
VZ
156# SUBTRACT CPP /YX /Yc /Yu
157
158!ELSEIF "$(CFG)" == "wxWinDll - Win32 Debug"
159
160# ADD CPP /W1
161# SUBTRACT CPP /YX /Yc /Yu
162
163!ENDIF
164
165# End Source File
166# End Target
167# End Project