]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.wat
Added script to bake everthing (OK, so it's trivial...)
[wxWidgets.git] / samples / render / makefile.wat
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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 ! loaddll wlink wlink
22 ! loaddll wlib wlibd
23 !endif
24
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28 ### Conditionally set variables: ###
29
30 PORTNAME =
31 !ifeq USE_GUI 0
32 PORTNAME = base
33 !endif
34 !ifeq USE_GUI 1
35 PORTNAME = msw
36 !endif
37 WXDEBUGFLAG =
38 !ifeq BUILD debug
39 !ifeq DEBUG_FLAG default
40 WXDEBUGFLAG = d
41 !endif
42 !endif
43 !ifeq DEBUG_FLAG 1
44 WXDEBUGFLAG = d
45 !endif
46 WXUNICODEFLAG =
47 !ifeq UNICODE 1
48 WXUNICODEFLAG = u
49 !endif
50 WXUNIVNAME =
51 !ifeq WXUNIV 1
52 WXUNIVNAME = univ
53 !endif
54 WXDLLFLAG =
55 !ifeq SHARED 1
56 WXDLLFLAG = dll
57 !endif
58 PLUGINSUFFIX =
59 !ifeq BUILD debug
60 !ifeq UNICODE 0
61 PLUGINSUFFIX = d
62 !endif
63 !endif
64 !ifeq BUILD debug
65 !ifeq UNICODE 1
66 PLUGINSUFFIX = ud
67 !endif
68 !endif
69 !ifeq BUILD release
70 !ifeq UNICODE 0
71 PLUGINSUFFIX =
72 !endif
73 !endif
74 !ifeq BUILD release
75 !ifeq UNICODE 1
76 PLUGINSUFFIX = u
77 !endif
78 !endif
79 __renddll___depname =
80 !ifeq SHARED 1
81 __renddll___depname = &
82 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
83 !endif
84 __DEBUGINFO =
85 !ifeq BUILD debug
86 !ifeq DEBUG_INFO default
87 __DEBUGINFO = -d2
88 !endif
89 !endif
90 !ifeq BUILD release
91 !ifeq DEBUG_INFO default
92 __DEBUGINFO = -d0
93 !endif
94 !endif
95 !ifeq DEBUG_INFO 0
96 __DEBUGINFO = -d0
97 !endif
98 !ifeq DEBUG_INFO 1
99 __DEBUGINFO = -d2
100 !endif
101 __DEBUGINFO_1 =
102 !ifeq BUILD debug
103 !ifeq DEBUG_INFO default
104 __DEBUGINFO_1 = debug all
105 !endif
106 !endif
107 !ifeq BUILD release
108 !ifeq DEBUG_INFO default
109 __DEBUGINFO_1 =
110 !endif
111 !endif
112 !ifeq DEBUG_INFO 0
113 __DEBUGINFO_1 =
114 !endif
115 !ifeq DEBUG_INFO 1
116 __DEBUGINFO_1 = debug all
117 !endif
118 __OPTIMIZEFLAG =
119 !ifeq BUILD debug
120 __OPTIMIZEFLAG = -od
121 !endif
122 !ifeq BUILD release
123 __OPTIMIZEFLAG = -ot -ox
124 !endif
125 __RUNTIME_LIBS =
126 !ifeq RUNTIME_LIBS dynamic
127 __RUNTIME_LIBS = -br
128 !endif
129 !ifeq RUNTIME_LIBS static
130 __RUNTIME_LIBS =
131 !endif
132 __EXCEPTIONSFLAG =
133 !ifeq USE_EXCEPTIONS 0
134 __EXCEPTIONSFLAG =
135 !endif
136 !ifeq USE_EXCEPTIONS 1
137 __EXCEPTIONSFLAG = -xs
138 !endif
139 __WXUNIV_DEFINE_p =
140 !ifeq WXUNIV 1
141 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
142 !endif
143 __DEBUG_DEFINE_p =
144 !ifeq BUILD debug
145 !ifeq DEBUG_FLAG default
146 __DEBUG_DEFINE_p = -d__WXDEBUG__
147 !endif
148 !endif
149 !ifeq DEBUG_FLAG 1
150 __DEBUG_DEFINE_p = -d__WXDEBUG__
151 !endif
152 __UNICODE_DEFINE_p =
153 !ifeq UNICODE 1
154 __UNICODE_DEFINE_p = -d_UNICODE
155 !endif
156 LIBDIRNAME =
157 !ifeq SHARED 0
158 LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
159 !endif
160 !ifeq SHARED 1
161 LIBDIRNAME = .\..\..\lib\wat_dll$(CFG)
162 !endif
163 __DLLFLAG_p =
164 !ifeq SHARED 1
165 __DLLFLAG_p = -dWXUSINGDLL
166 !endif
167 __WXLIB_CORE_p =
168 !ifeq MONOLITHIC 0
169 __WXLIB_CORE_p = &
170 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
171 !endif
172 __WXLIB_BASE_p =
173 !ifeq MONOLITHIC 0
174 __WXLIB_BASE_p = &
175 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
176 !endif
177 __WXLIB_MONO_p =
178 !ifeq MONOLITHIC 1
179 __WXLIB_MONO_p = &
180 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
181 !endif
182 __LIB_TIFF_p =
183 !ifeq USE_GUI 1
184 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
185 !endif
186 __LIB_JPEG_p =
187 !ifeq USE_GUI 1
188 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
189 !endif
190 __LIB_PNG_p =
191 !ifeq USE_GUI 1
192 __LIB_PNG_p = wxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib
193 !endif
194
195 ### Variables: ###
196
197 WX_RELEASE_NODOT = 25
198 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
199 OBJS = &
200 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
201 SETUPHDIR = &
202 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
203 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
204 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
205 -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples &
206 -dNOPCH $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
207 RENDER_OBJECTS = &
208 $(OBJS)\render_render.obj
209 RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
210 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
211 -i=.\..\..\include -i=$(SETUPHDIR) -dWXUSINGDLL $(__EXCEPTIONSFLAG) &
212 $(CPPFLAGS) $(CXXFLAGS)
213 RENDDLL_OBJECTS = &
214 $(OBJS)\renddll_renddll.obj
215
216
217 all : $(OBJS)
218 $(OBJS) :
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221 ### Targets: ###
222
223 all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
224
225 clean : .SYMBOLIC
226 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
227 -if exist $(OBJS)\*.res del $(OBJS)\*.res
228 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
229 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
230 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
231 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
232
233 $(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
234 @%create $(OBJS)\render.lbc
235 @%append $(OBJS)\render.lbc option quiet
236 @%append $(OBJS)\render.lbc name $^@
237 @%append $(OBJS)\render.lbc option caseexact
238 @%append $(OBJS)\render.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
239 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
240 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib 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 odbc32.lib ) do @%append $(OBJS)\render.lbc library %i
241 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
242 wlink @$(OBJS)\render.lbc
243
244 !ifeq SHARED 1
245 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS)
246 @%create $(OBJS)\renddll.lbc
247 @%append $(OBJS)\renddll.lbc option quiet
248 @%append $(OBJS)\renddll.lbc name $^@
249 @%append $(OBJS)\renddll.lbc option caseexact
250 @%append $(OBJS)\renddll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
251 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
252 @for %i in ( $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib wxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT).lib 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 odbc32.lib ) do @%append $(OBJS)\renddll.lbc library %i
253 @%append $(OBJS)\renddll.lbc
254 @%append $(OBJS)\renddll.lbc system nt_dll
255 wlink @$(OBJS)\renddll.lbc
256 !endif
257
258 $(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
259 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples $<
260
261 $(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
262 $(CXX) -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
263
264 $(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
265 $(CXX) -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<