]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.vc
Updated makefiles etc. for 2.5.1
[wxWidgets.git] / samples / opengl / penguin / makefile.vc
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
15 OBJS = \
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 PENGUIN_CFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
18 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_2_p) \
19 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
20 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
21 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples \
22 $(CFLAGS)
23 PENGUIN_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
24 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\penguin.pdb $(____DEBUGRUNTIME_2_p) \
25 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
27 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples \
28 $(CXXFLAGS) /GR /GX
29 PENGUIN_OBJECTS = \
30 $(OBJS)\penguin_penguin.obj \
31 $(OBJS)\penguin_lw.obj \
32 $(OBJS)\penguin_trackball.obj \
33 $(OBJS)\penguin_penguin.res
34 SETUPHDIR = \
35 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
36
37 ### Conditionally set variables: ###
38
39 !if "$(SHARED)" == "0"
40 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
41 !endif
42 !if "$(SHARED)" == "1"
43 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
44 !endif
45 !if "$(USE_GUI)" == "0"
46 PORTNAME = base
47 !endif
48 !if "$(USE_GUI)" == "1"
49 PORTNAME = msw
50 !endif
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(DEBUG_FLAG)" == "1"
55 WXDEBUGFLAG = d
56 !endif
57 !if "$(SHARED)" == "1"
58 WXDLLFLAG = dll
59 !endif
60 !if "$(UNICODE)" == "1"
61 WXUNICODEFLAG = u
62 !endif
63 !if "$(WXUNIV)" == "1"
64 WXUNIVNAME = univ
65 !endif
66 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
67 __DEBUGINFO_0 = /Zi
68 !endif
69 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
70 __DEBUGINFO_0 =
71 !endif
72 !if "$(DEBUG_INFO)" == "0"
73 __DEBUGINFO_0 =
74 !endif
75 !if "$(DEBUG_INFO)" == "1"
76 __DEBUGINFO_0 = /Zi
77 !endif
78 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
79 __DEBUGINFO_1 = /DEBUG
80 !endif
81 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
82 __DEBUGINFO_1 =
83 !endif
84 !if "$(DEBUG_INFO)" == "0"
85 __DEBUGINFO_1 =
86 !endif
87 !if "$(DEBUG_INFO)" == "1"
88 __DEBUGINFO_1 = /DEBUG
89 !endif
90 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
91 __DEBUGINFO_3 = d
92 !endif
93 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
94 __DEBUGINFO_3 =
95 !endif
96 !if "$(DEBUG_INFO)" == "0"
97 __DEBUGINFO_3 =
98 !endif
99 !if "$(DEBUG_INFO)" == "1"
100 __DEBUGINFO_3 = d
101 !endif
102 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
103 __DEBUGRUNTIME_3 =
104 !endif
105 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
106 __DEBUGRUNTIME_3 = d
107 !endif
108 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
109 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
110 !endif
111 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
112 __DEBUG_DEFINE_p = /D__WXDEBUG__
113 !endif
114 !if "$(DEBUG_FLAG)" == "1"
115 __DEBUG_DEFINE_p = /D__WXDEBUG__
116 !endif
117 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
118 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
119 !endif
120 !if "$(DEBUG_FLAG)" == "1"
121 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
122 !endif
123 !if "$(SHARED)" == "1"
124 __DLLFLAG_p = /DWXUSINGDLL
125 !endif
126 !if "$(SHARED)" == "1"
127 __DLLFLAG_p_1 = /d WXUSINGDLL
128 !endif
129 !if "$(USE_GUI)" == "1"
130 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
131 !endif
132 !if "$(USE_GUI)" == "1"
133 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
134 !endif
135 !if "$(USE_GUI)" == "1"
136 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
137 !endif
138 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
139 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
140 !endif
141 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
142 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
143 !endif
144 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
145 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
146 !endif
147 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
148 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
149 !endif
150 !if "$(BUILD)" == "debug"
151 __OPTIMIZEFLAG_4 = /Od
152 !endif
153 !if "$(BUILD)" == "release"
154 __OPTIMIZEFLAG_4 = /O2
155 !endif
156 !if "$(RUNTIME_LIBS)" == "dynamic"
157 __RUNTIME_LIBS_7 = D
158 !endif
159 !if "$(RUNTIME_LIBS)" == "static"
160 __RUNTIME_LIBS_7 = T
161 !endif
162 !if "$(UNICODE)" == "1"
163 __UNICODE_DEFINE_p = /D_UNICODE
164 !endif
165 !if "$(UNICODE)" == "1"
166 __UNICODE_DEFINE_p_1 = /d _UNICODE
167 !endif
168 !if "$(MSLU)" == "1"
169 __UNICOWS_LIB_p = unicows.lib
170 !endif
171 !if "$(MONOLITHIC)" == "0"
172 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
173 !endif
174 !if "$(MONOLITHIC)" == "0"
175 __WXLIB_CORE_p = \
176 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
177 !endif
178 !if "$(MONOLITHIC)" == "1"
179 __WXLIB_MONO_p = \
180 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
181 !endif
182 !if "$(WXUNIV)" == "1"
183 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
184 !endif
185 !if "$(WXUNIV)" == "1"
186 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
187 !endif
188 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
189 ____DEBUGINFO_2_p = /D_DEBUG
190 !endif
191 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
192 ____DEBUGINFO_2_p =
193 !endif
194 !if "$(DEBUG_INFO)" == "0"
195 ____DEBUGINFO_2_p =
196 !endif
197 !if "$(DEBUG_INFO)" == "1"
198 ____DEBUGINFO_2_p = /D_DEBUG
199 !endif
200 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
201 ____DEBUGINFO_2_p_1 = /d _DEBUG
202 !endif
203 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
204 ____DEBUGINFO_2_p_1 =
205 !endif
206 !if "$(DEBUG_INFO)" == "0"
207 ____DEBUGINFO_2_p_1 =
208 !endif
209 !if "$(DEBUG_INFO)" == "1"
210 ____DEBUGINFO_2_p_1 = /d _DEBUG
211 !endif
212 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
213 ____DEBUGRUNTIME_2_p =
214 !endif
215 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
216 ____DEBUGRUNTIME_2_p = /D_DEBUG
217 !endif
218 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
219 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
220 !endif
221 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
222 ____DEBUGRUNTIME_2_p_1 =
223 !endif
224 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
225 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
226 !endif
227 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
228 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
229 !endif
230
231
232 all: $(OBJS)
233 $(OBJS):
234 -if not exist $(OBJS) mkdir $(OBJS)
235
236 ### Targets: ###
237
238 all: $(OBJS)\penguin.exe data
239
240 $(OBJS)\penguin_lw.obj: .\lw.cpp
241 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) $**
242
243 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
244 $(CXX) /c /nologo /TP /Fo$@ $(PENGUIN_CXXFLAGS) $**
245
246 $(OBJS)\penguin_penguin.res: .\penguin.rc
247 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\samples $**
248
249 $(OBJS)\penguin_trackball.obj: .\trackball.c
250 $(CC) /c /nologo /TC /Fo$@ $(PENGUIN_CFLAGS) $**
251
252 clean:
253 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
254 -if exist $(OBJS)\*.res del $(OBJS)\*.res
255 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
256 -if exist $(OBJS)\penguin.ilk del $(OBJS)\penguin.ilk
257 -if exist $(OBJS)\penguin.pdb del $(OBJS)\penguin.pdb
258
259 data:
260 if not exist $(OBJS) mkdir $(OBJS)
261 for %f in (penguin.lwo) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
262
263 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
264 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
265 $(PENGUIN_OBJECTS) wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gl.lib opengl32.lib glu32.lib $(__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 $(__UNICOWS_LIB_p) 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 oleacc.lib
266 <<