]>
Commit | Line | Data |
---|---|---|
f82b7036 KO |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
00eef16d | 3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r |
f82b7036 KO |
4 | # Do not modify, all changes will be overwritten!\r |
5 | # =========================================================================\r | |
6 | \r | |
7 | !include ../../../build/msw/config.wat\r | |
8 | \r | |
9 | # -------------------------------------------------------------------------\r | |
10 | # Do not modify the rest of this file!\r | |
11 | # -------------------------------------------------------------------------\r | |
12 | \r | |
13 | # Speed up compilation a bit:\r | |
14 | !ifdef __LOADDLL__\r | |
15 | ! loaddll wcc wccd\r | |
16 | ! loaddll wccaxp wccdaxp\r | |
17 | ! loaddll wcc386 wccd386\r | |
18 | ! loaddll wpp wppdi86\r | |
19 | ! loaddll wppaxp wppdaxp\r | |
20 | ! loaddll wpp386 wppd386\r | |
21 | ! if $(__VERSION__) >= 1280\r | |
22 | ! loaddll wlink wlinkd\r | |
23 | ! else\r | |
24 | ! loaddll wlink wlink\r | |
25 | ! endif\r | |
26 | ! loaddll wlib wlibd\r | |
27 | !endif\r | |
28 | \r | |
29 | # We need these variables in some bakefile-made rules:\r | |
30 | WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r | |
31 | \r | |
32 | ### Conditionally set variables: ###\r | |
33 | \r | |
22a3b6e4 VZ |
34 | WIN32_TOOLKIT_LOWERCASE = |
35 | !ifeq TOOLKIT GTK | |
36 | WIN32_TOOLKIT_LOWERCASE = gtk | |
37 | !endif | |
38 | !ifeq TOOLKIT MSW | |
39 | WIN32_TOOLKIT_LOWERCASE = msw | |
40 | !endif | |
41 | EXTRALIBS_OPENGL = | |
42 | !ifeq TOOLKIT MSW | |
43 | EXTRALIBS_OPENGL = opengl32.lib glu32.lib | |
44 | !endif | |
f82b7036 KO |
45 | PORTNAME =\r |
46 | !ifeq USE_GUI 0\r | |
47 | PORTNAME = base\r | |
48 | !endif\r | |
49 | !ifeq USE_GUI 1\r | |
22a3b6e4 VZ |
50 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) |
51 | !endif | |
52 | WXBASEPORT = | |
53 | !ifeq TOOLKIT MAC | |
54 | WXBASEPORT = _carbon | |
55 | !endif | |
14b682f7 VZ |
56 | COMPILER_VERSION = |
57 | !ifeq OFFICIAL_BUILD 1 | |
58 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD | |
22a3b6e4 | 59 | !endif\r |
f82b7036 KO |
60 | WXDEBUGFLAG =\r |
61 | !ifeq BUILD debug\r | |
62 | WXDEBUGFLAG = d\r | |
63 | !endif\r | |
64 | WXUNICODEFLAG =\r | |
65 | !ifeq UNICODE 1\r | |
66 | WXUNICODEFLAG = u\r | |
67 | !endif\r | |
68 | WXUNIVNAME =\r | |
69 | !ifeq WXUNIV 1\r | |
70 | WXUNIVNAME = univ\r | |
71 | !endif\r | |
72 | WXDLLFLAG =\r | |
73 | !ifeq SHARED 1\r | |
74 | WXDLLFLAG = dll\r | |
75 | !endif\r | |
76 | LIBTYPE_SUFFIX =\r | |
77 | !ifeq SHARED 0\r | |
78 | LIBTYPE_SUFFIX = lib\r | |
79 | !endif\r | |
80 | !ifeq SHARED 1\r | |
81 | LIBTYPE_SUFFIX = dll\r | |
82 | !endif\r | |
83 | EXTRALIBS_FOR_BASE =\r | |
84 | !ifeq MONOLITHIC 0\r | |
85 | EXTRALIBS_FOR_BASE = \r | |
86 | !endif\r | |
87 | !ifeq MONOLITHIC 1\r | |
51ec29ea | 88 | EXTRALIBS_FOR_BASE = \r |
f82b7036 | 89 | !endif\r |
22a3b6e4 VZ |
90 | LIB_GTK = |
91 | !ifeq TOOLKIT GTK | |
92 | !ifeq TOOLKIT_VERSION 2 | |
93 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib & | |
94 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib & | |
95 | glib-2.0.lib | |
96 | !endif | |
97 | !endif | |
f82b7036 KO |
98 | __penguin___depname =\r |
99 | !ifeq USE_OPENGL 1\r | |
100 | __penguin___depname = $(OBJS)\penguin.exe\r | |
101 | !endif\r | |
102 | __DEBUGINFO_0 =\r | |
103 | !ifeq BUILD debug\r | |
104 | !ifeq DEBUG_INFO default\r | |
105 | __DEBUGINFO_0 = -d2\r | |
106 | !endif\r | |
107 | !endif\r | |
108 | !ifeq BUILD release\r | |
109 | !ifeq DEBUG_INFO default\r | |
110 | __DEBUGINFO_0 = -d0\r | |
111 | !endif\r | |
112 | !endif\r | |
113 | !ifeq DEBUG_INFO 0\r | |
114 | __DEBUGINFO_0 = -d0\r | |
115 | !endif\r | |
116 | !ifeq DEBUG_INFO 1\r | |
117 | __DEBUGINFO_0 = -d2\r | |
118 | !endif\r | |
119 | __DEBUGINFO_1 =\r | |
120 | !ifeq BUILD debug\r | |
121 | !ifeq DEBUG_INFO default\r | |
122 | __DEBUGINFO_1 = debug all\r | |
123 | !endif\r | |
124 | !endif\r | |
125 | !ifeq BUILD release\r | |
126 | !ifeq DEBUG_INFO default\r | |
127 | __DEBUGINFO_1 = \r | |
128 | !endif\r | |
129 | !endif\r | |
130 | !ifeq DEBUG_INFO 0\r | |
131 | __DEBUGINFO_1 = \r | |
132 | !endif\r | |
133 | !ifeq DEBUG_INFO 1\r | |
134 | __DEBUGINFO_1 = debug all\r | |
135 | !endif\r | |
136 | __OPTIMIZEFLAG_2 =\r | |
137 | !ifeq BUILD debug\r | |
138 | __OPTIMIZEFLAG_2 = -od\r | |
139 | !endif\r | |
140 | !ifeq BUILD release\r | |
141 | __OPTIMIZEFLAG_2 = -ot -ox\r | |
142 | !endif\r | |
143 | __THREADSFLAG_5 =\r | |
144 | !ifeq USE_THREADS 0\r | |
145 | __THREADSFLAG_5 = \r | |
146 | !endif\r | |
147 | !ifeq USE_THREADS 1\r | |
148 | __THREADSFLAG_5 = -bm\r | |
149 | !endif\r | |
150 | __RUNTIME_LIBS_6 =\r | |
151 | !ifeq RUNTIME_LIBS dynamic\r | |
152 | __RUNTIME_LIBS_6 = -br\r | |
153 | !endif\r | |
154 | !ifeq RUNTIME_LIBS static\r | |
155 | __RUNTIME_LIBS_6 = \r | |
156 | !endif\r | |
157 | __RTTIFLAG_7 =\r | |
158 | !ifeq USE_RTTI 0\r | |
159 | __RTTIFLAG_7 = \r | |
160 | !endif\r | |
161 | !ifeq USE_RTTI 1\r | |
162 | __RTTIFLAG_7 = -xr\r | |
163 | !endif\r | |
164 | __EXCEPTIONSFLAG_8 =\r | |
165 | !ifeq USE_EXCEPTIONS 0\r | |
166 | __EXCEPTIONSFLAG_8 = \r | |
167 | !endif\r | |
168 | !ifeq USE_EXCEPTIONS 1\r | |
169 | __EXCEPTIONSFLAG_8 = -xs\r | |
170 | !endif\r | |
171 | __WXLIB_CORE_p =\r | |
172 | !ifeq MONOLITHIC 0\r | |
173 | __WXLIB_CORE_p = &\r | |
174 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r | |
175 | !endif\r | |
176 | __WXLIB_BASE_p =\r | |
177 | !ifeq MONOLITHIC 0\r | |
178 | __WXLIB_BASE_p = &\r | |
22a3b6e4 | 179 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
f82b7036 KO |
180 | !endif\r |
181 | __WXLIB_MONO_p =\r | |
182 | !ifeq MONOLITHIC 1\r | |
183 | __WXLIB_MONO_p = &\r | |
184 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
185 | !endif\r | |
186 | __LIB_TIFF_p =\r | |
187 | !ifeq USE_GUI 1\r | |
188 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r | |
189 | !endif\r | |
190 | __LIB_JPEG_p =\r | |
191 | !ifeq USE_GUI 1\r | |
192 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r | |
193 | !endif\r | |
194 | __LIB_PNG_p =\r | |
195 | !ifeq USE_GUI 1\r | |
196 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r | |
197 | !endif\r | |
f82b7036 KO |
198 | __CAIRO_LIB_p =\r |
199 | !ifeq USE_CAIRO 1\r | |
200 | __CAIRO_LIB_p = cairo.lib\r | |
201 | !endif\r | |
202 | ____CAIRO_LIBDIR_FILENAMES_p =\r | |
203 | !ifeq USE_CAIRO 1\r | |
204 | ____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib\r | |
205 | !endif\r | |
206 | __WXUNIV_DEFINE_p =\r | |
207 | !ifeq WXUNIV 1\r | |
208 | __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r | |
209 | !endif\r | |
210 | __DEBUG_DEFINE_p =\r | |
211 | !ifeq DEBUG_FLAG 0\r | |
212 | __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r | |
213 | !endif\r | |
00fb97de KO |
214 | __NDEBUG_DEFINE_p =\r |
215 | !ifeq BUILD release\r | |
216 | __NDEBUG_DEFINE_p = -dNDEBUG\r | |
217 | !endif\r | |
f82b7036 KO |
218 | __EXCEPTIONS_DEFINE_p =\r |
219 | !ifeq USE_EXCEPTIONS 0\r | |
220 | __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r | |
221 | !endif\r | |
222 | __RTTI_DEFINE_p =\r | |
223 | !ifeq USE_RTTI 0\r | |
224 | __RTTI_DEFINE_p = -dwxNO_RTTI\r | |
225 | !endif\r | |
226 | __THREAD_DEFINE_p =\r | |
227 | !ifeq USE_THREADS 0\r | |
228 | __THREAD_DEFINE_p = -dwxNO_THREADS\r | |
229 | !endif\r | |
230 | __UNICODE_DEFINE_p =\r | |
231 | !ifeq UNICODE 0\r | |
232 | __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r | |
233 | !endif\r | |
234 | !ifeq UNICODE 1\r | |
235 | __UNICODE_DEFINE_p = -d_UNICODE\r | |
236 | !endif\r | |
f82b7036 KO |
237 | ____CAIRO_INCLUDEDIR_FILENAMES =\r |
238 | !ifeq USE_CAIRO 1\r | |
239 | ____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo\r | |
240 | !endif\r | |
241 | __DLLFLAG_p =\r | |
242 | !ifeq SHARED 1\r | |
243 | __DLLFLAG_p = -dWXUSINGDLL\r | |
244 | !endif\r | |
245 | \r | |
246 | ### Variables: ###\r | |
247 | \r | |
248 | WX_RELEASE_NODOT = 29\r | |
249 | COMPILER_PREFIX = wat\r | |
250 | OBJS = &\r | |
14b682f7 VZ |
251 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
252 | LIBDIRNAME = & | |
253 | .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG) | |
f82b7036 KO |
254 | SETUPHDIR = &\r |
255 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
256 | PENGUIN_CFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r | |
22a3b6e4 VZ |
257 | $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) & |
258 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) & | |
259 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
260 | -i=$(SETUPHDIR) -i=.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx & | |
261 | -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples & | |
262 | -dNOPCH $(CPPFLAGS) $(CFLAGS) | |
f82b7036 | 263 | PENGUIN_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r |
22a3b6e4 VZ |
264 | $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) & |
265 | $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) & | |
266 | $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) & | |
267 | -i=$(SETUPHDIR) -i=.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx & | |
268 | -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples & | |
269 | -dNOPCH $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS) | |
f82b7036 KO |
270 | PENGUIN_OBJECTS = &\r |
271 | $(OBJS)\penguin_penguin.obj &\r | |
272 | $(OBJS)\penguin_dxfrenderer.obj &\r | |
273 | $(OBJS)\penguin_trackball.obj\r | |
274 | \r | |
275 | \r | |
276 | all : $(OBJS)\r | |
277 | $(OBJS) :\r | |
278 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
279 | \r | |
280 | ### Targets: ###\r | |
281 | \r | |
282 | all : .SYMBOLIC $(__penguin___depname) data\r | |
283 | \r | |
284 | clean : .SYMBOLIC \r | |
285 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r | |
286 | -if exist $(OBJS)\*.res del $(OBJS)\*.res\r | |
287 | -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r | |
288 | -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r | |
289 | -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r | |
290 | -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe\r | |
291 | \r | |
292 | !ifeq USE_OPENGL 1\r | |
00eef16d | 293 | $(OBJS)\penguin.exe : $(PENGUIN_OBJECTS) $(OBJS)\penguin_sample.res\r |
f82b7036 KO |
294 | @%create $(OBJS)\penguin.lbc\r |
295 | @%append $(OBJS)\penguin.lbc option quiet\r | |
296 | @%append $(OBJS)\penguin.lbc name $^@\r | |
297 | @%append $(OBJS)\penguin.lbc option caseexact\r | |
298 | @%append $(OBJS)\penguin.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)\r | |
299 | @for %i in ($(PENGUIN_OBJECTS)) do @%append $(OBJS)\penguin.lbc file %i\r | |
22a3b6e4 | 300 | @for %i in ( wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl.lib $(EXTRALIBS_OPENGL) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib) do @%append $(OBJS)\penguin.lbc library %i |
00eef16d | 301 | @%append $(OBJS)\penguin.lbc option resource=$(OBJS)\penguin_sample.res\r |
f82b7036 KO |
302 | @for %i in () do @%append $(OBJS)\penguin.lbc option stack=%i\r |
303 | wlink @$(OBJS)\penguin.lbc\r | |
304 | !endif\r | |
305 | \r | |
306 | data : .SYMBOLIC \r | |
307 | if not exist $(OBJS) mkdir $(OBJS)\r | |
308 | for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)\r | |
309 | \r | |
00eef16d | 310 | $(OBJS)\penguin_sample.res : .AUTODEPEND .\..\..\..\samples\sample.rc\r |
22a3b6e4 | 311 | wrc -q -ad -bt=nt -r -fo=$^@ -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\..\samples -dNOPCH $< |
00eef16d | 312 | \r |
f82b7036 KO |
313 | $(OBJS)\penguin_penguin.obj : .AUTODEPEND .\penguin.cpp\r |
314 | $(CXX) -bt=nt -zq -fo=$^@ $(PENGUIN_CXXFLAGS) $<\r | |
315 | \r | |
316 | $(OBJS)\penguin_dxfrenderer.obj : .AUTODEPEND .\dxfrenderer.cpp\r | |
317 | $(CXX) -bt=nt -zq -fo=$^@ $(PENGUIN_CXXFLAGS) $<\r | |
318 | \r | |
319 | $(OBJS)\penguin_trackball.obj : .AUTODEPEND .\trackball.c\r | |
320 | $(CC) -bt=nt -zq -fo=$^@ $(PENGUIN_CFLAGS) $<\r | |
321 | \r |