]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.vc
compilation fix
[wxWidgets.git] / samples / render / makefile.vc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include <../../build/msw/config.vc>
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15LIBDIRNAME = \
16 .\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OBJS = \
18 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19RENDDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_13) /DWIN32 \
20 $(__DEBUGINFO) \
21 /Fd$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)250.pdb \
22 $(____DEBUGRUNTIME_12_p) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) \
24 /I.\..\..\src\tiff /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib \
25 /I.\..\..\src\regex /I.\..\..\src\expat\lib /DWXUSINGDLL $(CXXFLAGS)
26RENDDLL_OBJECTS = \
27 $(OBJS)\renddll_renddll.obj
28RENDER_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGRUNTIME_3) /DWIN32 \
29 $(__DEBUGINFO) /Fd$(OBJS)\render.pdb $(____DEBUGRUNTIME_2_p) \
30 $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(LIBDIRNAME) /I.\..\..\src\tiff \
32 /I.\..\..\src\jpeg /I.\..\..\src\png /I.\..\..\src\zlib /I.\..\..\src\regex \
33 /I.\..\..\src\expat\lib /I. $(__DLLFLAG_p) /D_WINDOWS $(CXXFLAGS)
34RENDER_OBJECTS = \
35 $(OBJS)\render_sample.res \
36 $(OBJS)\render_render.obj
37
38### Conditionally set variables: ###
39
40!if "$(USE_GUI)" == "0"
41PORTNAME = base
42!endif
43!if "$(USE_GUI)" == "1"
44PORTNAME = msw
45!endif
46!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
47WXDEBUGFLAG = d
48!endif
49!if "$(DEBUG_FLAG)" == "1"
50WXDEBUGFLAG = d
51!endif
52!if "$(SHARED)" == "1"
53WXDLLFLAG = dll
54!endif
55!if "$(UNICODE)" == "1"
56WXUNICODEFLAG = u
57!endif
58!if "$(WXUNIV)" == "1"
59WXUNIVNAME = univ
60!endif
61!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
62__DEBUGINFO = /Zi
63!endif
64!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
65__DEBUGINFO =
66!endif
67!if "$(DEBUG_INFO)" == "0"
68__DEBUGINFO =
69!endif
70!if "$(DEBUG_INFO)" == "1"
71__DEBUGINFO = /Zi
72!endif
73!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
74__DEBUGINFO_1 = /DEBUG
75!endif
76!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
77__DEBUGINFO_1 =
78!endif
79!if "$(DEBUG_INFO)" == "0"
80__DEBUGINFO_1 =
81!endif
82!if "$(DEBUG_INFO)" == "1"
83__DEBUGINFO_1 = /DEBUG
84!endif
85!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
86__DEBUGINFO_2 = d
87!endif
88!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
89__DEBUGINFO_2 =
90!endif
91!if "$(DEBUG_INFO)" == "0"
92__DEBUGINFO_2 =
93!endif
94!if "$(DEBUG_INFO)" == "1"
95__DEBUGINFO_2 = d
96!endif
97!if "$(DEBUG_RUNTIME_LIBS)" == "0"
98__DEBUGRUNTIME_13 =
99!endif
100!if "$(DEBUG_RUNTIME_LIBS)" == "1"
101__DEBUGRUNTIME_13 = d
102!endif
103!if "$(DEBUG_RUNTIME_LIBS)" == "default"
104__DEBUGRUNTIME_13 = $(__DEBUGINFO_2)
105!endif
106!if "$(DEBUG_RUNTIME_LIBS)" == "0"
107__DEBUGRUNTIME_3 =
108!endif
109!if "$(DEBUG_RUNTIME_LIBS)" == "1"
110__DEBUGRUNTIME_3 = d
111!endif
112!if "$(DEBUG_RUNTIME_LIBS)" == "default"
113__DEBUGRUNTIME_3 = $(__DEBUGINFO_2)
114!endif
115!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
116__DEBUG_DEFINE_p = /D__WXDEBUG__
117!endif
118!if "$(DEBUG_FLAG)" == "1"
119__DEBUG_DEFINE_p = /D__WXDEBUG__
120!endif
121!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
122__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
123!endif
124!if "$(DEBUG_FLAG)" == "1"
125__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
126!endif
127!if "$(SHARED)" == "1"
128__DLLFLAG_p = /DWXUSINGDLL
129!endif
130!if "$(SHARED)" == "1"
131__DLLFLAG_p_1 = /d WXUSINGDLL
132!endif
133!if "$(USE_GUI)" == "1"
134__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
135!endif
136!if "$(USE_GUI)" == "1"
137__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
138!endif
139!if "$(USE_GUI)" == "1"
140__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
141!endif
142!if "$(BUILD)" == "debug"
143__OPTIMIZEFLAG = /Od
144!endif
145!if "$(BUILD)" == "release"
146__OPTIMIZEFLAG = /O2
147!endif
148!if "$(RUNTIME_LIBS)" == "dynamic"
149__RUNTIME_LIBS = D
150!endif
151!if "$(RUNTIME_LIBS)" == "static"
152__RUNTIME_LIBS = T
153!endif
154!if "$(UNICODE)" == "1"
155__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
156!endif
157!if "$(UNICODE)" == "1"
158__UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=1
159!endif
160!if "$(MONOLITHIC)" == "0"
161__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
162!endif
163!if "$(MONOLITHIC)" == "0"
164__WXLIB_CORE_p = \
165 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
166!endif
167!if "$(MONOLITHIC)" == "1"
168__WXLIB_MONO_p = \
169 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
170!endif
171!if "$(WXUNIV)" == "1"
172__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
173!endif
174!if "$(WXUNIV)" == "1"
175__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
176!endif
177!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
178____DEBUGINFO = /D_DEBUG
179!endif
180!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
181____DEBUGINFO =
182!endif
183!if "$(DEBUG_INFO)" == "0"
184____DEBUGINFO =
185!endif
186!if "$(DEBUG_INFO)" == "1"
187____DEBUGINFO = /D_DEBUG
188!endif
189!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
190____DEBUGINFO_2_p_1 = /d _DEBUG
191!endif
192!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193____DEBUGINFO_2_p_1 =
194!endif
195!if "$(DEBUG_INFO)" == "0"
196____DEBUGINFO_2_p_1 =
197!endif
198!if "$(DEBUG_INFO)" == "1"
199____DEBUGINFO_2_p_1 = /d _DEBUG
200!endif
201!if "$(DEBUG_RUNTIME_LIBS)" == "0"
202____DEBUGRUNTIME_12_p =
203!endif
204!if "$(DEBUG_RUNTIME_LIBS)" == "1"
205____DEBUGRUNTIME_12_p = /D_DEBUG
206!endif
207!if "$(DEBUG_RUNTIME_LIBS)" == "default"
208____DEBUGRUNTIME_12_p = $(____DEBUGINFO)
209!endif
210!if "$(DEBUG_RUNTIME_LIBS)" == "0"
211____DEBUGRUNTIME_2_p =
212!endif
213!if "$(DEBUG_RUNTIME_LIBS)" == "1"
214____DEBUGRUNTIME_2_p = /D_DEBUG
215!endif
216!if "$(DEBUG_RUNTIME_LIBS)" == "default"
217____DEBUGRUNTIME_2_p = $(____DEBUGINFO)
218!endif
219!if "$(DEBUG_RUNTIME_LIBS)" == "0"
220____DEBUGRUNTIME_2_p_1 =
221!endif
222!if "$(DEBUG_RUNTIME_LIBS)" == "1"
223____DEBUGRUNTIME_2_p_1 = /d _DEBUG
224!endif
225!if "$(DEBUG_RUNTIME_LIBS)" == "default"
226____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
227!endif
228!if "$(SHARED)" == "1"
229__renddll___depname = \
230 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)250.dll
231!endif
232
233
234all: $(OBJS)
235$(OBJS):
236 -if not exist $(OBJS) mkdir $(OBJS)
237
238### Targets: ###
239
240all: $(OBJS)\render.exe $(__renddll___depname)
241
242$(OBJS)\renddll_renddll.obj: .\renddll.cpp
243 $(CXX) /c /nologo /TP /Fo$@ $(RENDDLL_CXXFLAGS) $**
244
245$(OBJS)\render_render.obj: .\render.cpp
246 $(CXX) /c /nologo /TP /Fo$@ $(RENDER_CXXFLAGS) $**
247
248$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
249 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(LIBDIRNAME) /i .\..\..\src\tiff /i .\..\..\src\jpeg /i .\..\..\src\png /i .\..\..\src\zlib /i .\..\..\src\regex /i .\..\..\src\expat\lib /i . $(__DLLFLAG_p_1) /d _WINDOWS $**
250
251clean:
252 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
253 -if exist $(OBJS)\*.res del $(OBJS)\*.res
254 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
255 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)250.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)250.dll
256
257!if "$(SHARED)" == "1"
258$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)250.dll: $(RENDDLL_OBJECTS)
259 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) @<<
260 $(RENDDLL_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
261<<
262!endif
263
264$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
265 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
266 $(RENDER_OBJECTS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
267<<