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