]> git.saurik.com Git - wxWidgets.git/blob - utils/execmon/makefile.wat
9265bf5080ee5e7ecd6bcedbd594a48a16911c08
[wxWidgets.git] / utils / execmon / 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 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 PORTNAME =
42 !ifeq USE_GUI 0
43 PORTNAME = base
44 !endif
45 !ifeq USE_GUI 1
46 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47 !endif
48 WXBASEPORT =
49 !ifeq TOOLKIT MAC
50 WXBASEPORT = _carbon
51 !endif
52 COMPILER_VERSION =
53 !ifeq OFFICIAL_BUILD 1
54 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
55 !endif
56 WXDEBUGFLAG =
57 !ifeq BUILD debug
58 WXDEBUGFLAG = d
59 !endif
60 WXUNICODEFLAG =
61 !ifeq UNICODE 1
62 WXUNICODEFLAG = u
63 !endif
64 WXUNIVNAME =
65 !ifeq WXUNIV 1
66 WXUNIVNAME = univ
67 !endif
68 WXDLLFLAG =
69 !ifeq SHARED 1
70 WXDLLFLAG = dll
71 !endif
72 LIBTYPE_SUFFIX =
73 !ifeq SHARED 0
74 LIBTYPE_SUFFIX = lib
75 !endif
76 !ifeq SHARED 1
77 LIBTYPE_SUFFIX = dll
78 !endif
79 EXTRALIBS_FOR_BASE =
80 !ifeq MONOLITHIC 0
81 EXTRALIBS_FOR_BASE =
82 !endif
83 !ifeq MONOLITHIC 1
84 EXTRALIBS_FOR_BASE =
85 !endif
86 __execmon___depname =
87 !ifeq USE_XRC 1
88 __execmon___depname = $(OBJS)\execmon.exe
89 !endif
90 __DEBUGINFO_0 =
91 !ifeq BUILD debug
92 !ifeq DEBUG_INFO default
93 __DEBUGINFO_0 = -d2
94 !endif
95 !endif
96 !ifeq BUILD release
97 !ifeq DEBUG_INFO default
98 __DEBUGINFO_0 = -d0
99 !endif
100 !endif
101 !ifeq DEBUG_INFO 0
102 __DEBUGINFO_0 = -d0
103 !endif
104 !ifeq DEBUG_INFO 1
105 __DEBUGINFO_0 = -d2
106 !endif
107 __DEBUGINFO_1 =
108 !ifeq BUILD debug
109 !ifeq DEBUG_INFO default
110 __DEBUGINFO_1 = debug all
111 !endif
112 !endif
113 !ifeq BUILD release
114 !ifeq DEBUG_INFO default
115 __DEBUGINFO_1 =
116 !endif
117 !endif
118 !ifeq DEBUG_INFO 0
119 __DEBUGINFO_1 =
120 !endif
121 !ifeq DEBUG_INFO 1
122 __DEBUGINFO_1 = debug all
123 !endif
124 __OPTIMIZEFLAG_2 =
125 !ifeq BUILD debug
126 __OPTIMIZEFLAG_2 = -od
127 !endif
128 !ifeq BUILD release
129 __OPTIMIZEFLAG_2 = -ot -ox
130 !endif
131 __THREADSFLAG_5 =
132 !ifeq USE_THREADS 0
133 __THREADSFLAG_5 =
134 !endif
135 !ifeq USE_THREADS 1
136 __THREADSFLAG_5 = -bm
137 !endif
138 __RUNTIME_LIBS_6 =
139 !ifeq RUNTIME_LIBS dynamic
140 __RUNTIME_LIBS_6 = -br
141 !endif
142 !ifeq RUNTIME_LIBS static
143 __RUNTIME_LIBS_6 =
144 !endif
145 __RTTIFLAG_7 =
146 !ifeq USE_RTTI 0
147 __RTTIFLAG_7 =
148 !endif
149 !ifeq USE_RTTI 1
150 __RTTIFLAG_7 = -xr
151 !endif
152 __EXCEPTIONSFLAG_8 =
153 !ifeq USE_EXCEPTIONS 0
154 __EXCEPTIONSFLAG_8 =
155 !endif
156 !ifeq USE_EXCEPTIONS 1
157 __EXCEPTIONSFLAG_8 = -xs
158 !endif
159 __WXUNIV_DEFINE_p =
160 !ifeq WXUNIV 1
161 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
162 !endif
163 __DEBUG_DEFINE_p =
164 !ifeq DEBUG_FLAG 0
165 __DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
166 !endif
167 __NDEBUG_DEFINE_p =
168 !ifeq BUILD release
169 __NDEBUG_DEFINE_p = -dNDEBUG
170 !endif
171 __EXCEPTIONS_DEFINE_p =
172 !ifeq USE_EXCEPTIONS 0
173 __EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
174 !endif
175 __RTTI_DEFINE_p =
176 !ifeq USE_RTTI 0
177 __RTTI_DEFINE_p = -dwxNO_RTTI
178 !endif
179 __THREAD_DEFINE_p =
180 !ifeq USE_THREADS 0
181 __THREAD_DEFINE_p = -dwxNO_THREADS
182 !endif
183 __UNICODE_DEFINE_p =
184 !ifeq UNICODE 0
185 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
186 !endif
187 !ifeq UNICODE 1
188 __UNICODE_DEFINE_p = -d_UNICODE
189 !endif
190 ____CAIRO_INCLUDEDIR_FILENAMES_p =
191 !ifeq USE_CAIRO 1
192 ____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo
193 !endif
194 __DLLFLAG_p =
195 !ifeq SHARED 1
196 __DLLFLAG_p = -dWXUSINGDLL
197 !endif
198 __WXLIB_BASE_p =
199 !ifeq MONOLITHIC 0
200 __WXLIB_BASE_p = &
201 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
202 !endif
203 __WXLIB_MONO_p =
204 !ifeq MONOLITHIC 1
205 __WXLIB_MONO_p = &
206 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
207 !endif
208 __LIB_PNG_IF_MONO_p =
209 !ifeq MONOLITHIC 1
210 __LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)
211 !endif
212 __LIB_PNG_p =
213 !ifeq USE_GUI 1
214 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
215 !endif
216 __CAIRO_LIB_p =
217 !ifeq USE_CAIRO 1
218 __CAIRO_LIB_p = cairo.lib
219 !endif
220 ____CAIRO_LIBDIR_FILENAMES_p =
221 !ifeq USE_CAIRO 1
222 ____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib
223 !endif
224
225 ### Variables: ###
226
227 WX_RELEASE_NODOT = 29
228 COMPILER_PREFIX = wat
229 OBJS = &
230 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
231 LIBDIRNAME = &
232 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
233 SETUPHDIR = &
234 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
235 EXECMON_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
236 $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
237 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
238 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
239 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx &
240 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
241 $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
242 EXECMON_OBJECTS = &
243 $(OBJS)\execmon_execmon.obj
244
245
246 all : $(OBJS)
247 $(OBJS) :
248 -if not exist $(OBJS) mkdir $(OBJS)
249
250 ### Targets: ###
251
252 all : .SYMBOLIC $(__execmon___depname)
253
254 clean : .SYMBOLIC
255 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
256 -if exist $(OBJS)\*.res del $(OBJS)\*.res
257 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
258 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
259 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch
260 -if exist $(OBJS)\execmon.exe del $(OBJS)\execmon.exe
261
262 !ifeq USE_XRC 1
263 $(OBJS)\execmon.exe : $(EXECMON_OBJECTS)
264 @%create $(OBJS)\execmon.lbc
265 @%append $(OBJS)\execmon.lbc option quiet
266 @%append $(OBJS)\execmon.lbc name $^@
267 @%append $(OBJS)\execmon.lbc option caseexact
268 @%append $(OBJS)\execmon.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)
269 @for %i in ($(EXECMON_OBJECTS)) do @%append $(OBJS)\execmon.lbc file %i
270 @for %i in ( $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_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)\execmon.lbc library %i
271 @%append $(OBJS)\execmon.lbc
272 @for %i in () do @%append $(OBJS)\execmon.lbc option stack=%i
273 wlink @$(OBJS)\execmon.lbc
274 !endif
275
276 $(OBJS)\execmon_execmon.obj : .AUTODEPEND .\execmon.cpp
277 $(CXX) -bt=nt -zq -fo=$^@ $(EXECMON_CXXFLAGS) $<
278