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