]>
Commit | Line | Data |
---|---|---|
61aba460 VS |
1 | # =========================================================================\r |
2 | # This makefile was generated by\r | |
00eef16d | 3 | # Bakefile 0.2.9 (http://www.bakefile.org)\r |
61aba460 VS |
4 | # Do not modify, all changes will be overwritten!\r |
5 | # =========================================================================\r | |
6 | \r | |
7 | .autodepend\r | |
8 | \r | |
9 | !ifndef BCCDIR\r | |
10 | !ifndef MAKEDIR\r | |
11 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4\r | |
12 | !endif\r | |
13 | BCCDIR = $(MAKEDIR)\..\r | |
14 | !endif\r | |
15 | \r | |
16 | !include ../../build/msw/config.bcc\r | |
17 | \r | |
18 | # -------------------------------------------------------------------------\r | |
19 | # Do not modify the rest of this file!\r | |
20 | # -------------------------------------------------------------------------\r | |
21 | \r | |
22 | ### Variables: ###\r | |
23 | \r | |
24 | WX_RELEASE_NODOT = 29\r | |
25 | COMPILER_PREFIX = bcc\r | |
26 | OBJS = \\r | |
4863951a VS |
27 | $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r |
28 | LIBDIRNAME = \\r | |
29 | .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r | |
61aba460 VS |
30 | SETUPHDIR = \\r |
31 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r | |
32 | MY_DLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r | |
4863951a VS |
33 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) -D__WX$(TOOLKIT)__ \\r |
34 | $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \\r | |
35 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \\r | |
36 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r | |
9f38fe4b VZ |
37 | $(____CAIRO_INCLUDEDIR_FILENAMES) $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. \\r |
38 | $(CPPFLAGS) $(CXXFLAGS)\r | |
61aba460 VS |
39 | MY_DLL_OBJECTS = \\r |
40 | $(OBJS)\my_dll_my_dll.obj\r | |
41 | WX_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r | |
4863951a VS |
42 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) -D__WX$(TOOLKIT)__ \\r |
43 | $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \\r | |
44 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \\r | |
45 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r | |
61aba460 VS |
46 | $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r |
47 | -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r | |
48 | WX_EXE_OBJECTS = \\r | |
1ffe64ef | 49 | $(OBJS)\wx_exe_wx_exe.obj\r |
da8b1d4b KO |
50 | SDK_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r |
51 | $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) $(CPPFLAGS) $(CXXFLAGS)\r | |
52 | SDK_EXE_OBJECTS = \\r | |
53 | $(OBJS)\sdk_exe_sdk_exe.obj\r | |
61aba460 VS |
54 | \r |
55 | ### Conditionally set variables: ###\r | |
56 | \r | |
4863951a VS |
57 | !if "$(TOOLKIT)" == "GTK"\r |
58 | WIN32_TOOLKIT_LOWERCASE = gtk\r | |
59 | !endif\r | |
60 | !if "$(TOOLKIT)" == "MSW"\r | |
61 | WIN32_TOOLKIT_LOWERCASE = msw\r | |
62 | !endif\r | |
61aba460 VS |
63 | !if "$(USE_GUI)" == "0"\r |
64 | PORTNAME = base\r | |
65 | !endif\r | |
66 | !if "$(USE_GUI)" == "1"\r | |
4863951a VS |
67 | PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)\r |
68 | !endif\r | |
69 | !if "$(TOOLKIT)" == "MAC"\r | |
70 | WXBASEPORT = _carbon\r | |
71 | !endif\r | |
72 | !if "$(OFFICIAL_BUILD)" == "1"\r | |
73 | COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r | |
22a3b6e4 | 74 | !endif\r |
61aba460 VS |
75 | !if "$(BUILD)" == "debug"\r |
76 | WXDEBUGFLAG = d\r | |
77 | !endif\r | |
78 | !if "$(UNICODE)" == "1"\r | |
79 | WXUNICODEFLAG = u\r | |
80 | !endif\r | |
81 | !if "$(WXUNIV)" == "1"\r | |
82 | WXUNIVNAME = univ\r | |
83 | !endif\r | |
84 | !if "$(SHARED)" == "1"\r | |
85 | WXDLLFLAG = dll\r | |
86 | !endif\r | |
87 | !if "$(SHARED)" == "0"\r | |
88 | LIBTYPE_SUFFIX = lib\r | |
89 | !endif\r | |
90 | !if "$(SHARED)" == "1"\r | |
91 | LIBTYPE_SUFFIX = dll\r | |
92 | !endif\r | |
93 | !if "$(MONOLITHIC)" == "0"\r | |
94 | EXTRALIBS_FOR_BASE = \r | |
95 | !endif\r | |
96 | !if "$(MONOLITHIC)" == "1"\r | |
51ec29ea | 97 | EXTRALIBS_FOR_BASE = \r |
61aba460 | 98 | !endif\r |
4863951a VS |
99 | !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"\r |
100 | LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \\r | |
101 | gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \\r | |
102 | glib-2.0.lib\r | |
103 | !endif\r | |
61aba460 VS |
104 | !if "$(SHARED)" == "0"\r |
105 | __wx_exe___depname = $(OBJS)\wx_exe.exe\r | |
106 | !endif\r | |
107 | !if "$(WXUNIV)" == "1"\r | |
108 | __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__\r | |
109 | !endif\r | |
110 | !if "$(DEBUG_FLAG)" == "0"\r | |
111 | __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0\r | |
112 | !endif\r | |
da8b1d4b KO |
113 | !if "$(BUILD)" == "release"\r |
114 | __NDEBUG_DEFINE_p_3 = -dNDEBUG\r | |
115 | !endif\r | |
61aba460 VS |
116 | !if "$(USE_EXCEPTIONS)" == "0"\r |
117 | __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS\r | |
118 | !endif\r | |
119 | !if "$(USE_RTTI)" == "0"\r | |
120 | __RTTI_DEFINE_p_3 = -dwxNO_RTTI\r | |
121 | !endif\r | |
122 | !if "$(USE_THREADS)" == "0"\r | |
123 | __THREAD_DEFINE_p_3 = -dwxNO_THREADS\r | |
124 | !endif\r | |
125 | !if "$(UNICODE)" == "0"\r | |
126 | __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0\r | |
127 | !endif\r | |
128 | !if "$(UNICODE)" == "1"\r | |
129 | __UNICODE_DEFINE_p_3 = -d_UNICODE\r | |
130 | !endif\r | |
131 | !if "$(MSLU)" == "1"\r | |
132 | __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1\r | |
133 | !endif\r | |
61aba460 VS |
134 | !if "$(USE_CAIRO)" == "1"\r |
135 | ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo\r | |
136 | !endif\r | |
137 | !if "$(SHARED)" == "1"\r | |
138 | __DLLFLAG_p_3 = -dWXUSINGDLL\r | |
139 | !endif\r | |
61aba460 VS |
140 | !if "$(WXUNIV)" == "1"\r |
141 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r | |
142 | !endif\r | |
143 | !if "$(DEBUG_FLAG)" == "0"\r | |
144 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r | |
145 | !endif\r | |
da8b1d4b KO |
146 | !if "$(BUILD)" == "release"\r |
147 | __NDEBUG_DEFINE_p = -DNDEBUG\r | |
148 | !endif\r | |
61aba460 VS |
149 | !if "$(USE_EXCEPTIONS)" == "0"\r |
150 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r | |
151 | !endif\r | |
152 | !if "$(USE_RTTI)" == "0"\r | |
153 | __RTTI_DEFINE_p = -DwxNO_RTTI\r | |
154 | !endif\r | |
155 | !if "$(USE_THREADS)" == "0"\r | |
156 | __THREAD_DEFINE_p = -DwxNO_THREADS\r | |
157 | !endif\r | |
158 | !if "$(UNICODE)" == "0"\r | |
159 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r | |
160 | !endif\r | |
161 | !if "$(UNICODE)" == "1"\r | |
162 | __UNICODE_DEFINE_p = -D_UNICODE\r | |
163 | !endif\r | |
164 | !if "$(MSLU)" == "1"\r | |
165 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r | |
166 | !endif\r | |
61aba460 VS |
167 | !if "$(USE_CAIRO)" == "1"\r |
168 | ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r | |
169 | !endif\r | |
170 | !if "$(SHARED)" == "1"\r | |
171 | __DLLFLAG_p = -DWXUSINGDLL\r | |
172 | !endif\r | |
173 | !if "$(MONOLITHIC)" == "0"\r | |
174 | __WXLIB_CORE_p = \\r | |
175 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r | |
176 | !endif\r | |
177 | !if "$(MONOLITHIC)" == "0"\r | |
178 | __WXLIB_BASE_p = \\r | |
4863951a | 179 | wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r |
61aba460 VS |
180 | !endif\r |
181 | !if "$(MONOLITHIC)" == "1"\r | |
182 | __WXLIB_MONO_p = \\r | |
183 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r | |
184 | !endif\r | |
185 | !if "$(USE_GUI)" == "1"\r | |
186 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r | |
187 | !endif\r | |
188 | !if "$(USE_GUI)" == "1"\r | |
189 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r | |
190 | !endif\r | |
191 | !if "$(USE_GUI)" == "1"\r | |
192 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r | |
193 | !endif\r | |
194 | !if "$(MSLU)" == "1"\r | |
195 | __UNICOWS_LIB_p = unicows.lib\r | |
196 | !endif\r | |
61aba460 VS |
197 | !if "$(USE_CAIRO)" == "1"\r |
198 | __CAIRO_LIB_p = cairo.lib\r | |
199 | !endif\r | |
200 | !if "$(USE_CAIRO)" == "1"\r | |
201 | ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r | |
202 | !endif\r | |
da8b1d4b KO |
203 | !if "$(BUILD)" == "debug"\r |
204 | __OPTIMIZEFLAG = -Od\r | |
205 | !endif\r | |
206 | !if "$(BUILD)" == "release"\r | |
207 | __OPTIMIZEFLAG = -O2\r | |
208 | !endif\r | |
209 | !if "$(USE_THREADS)" == "0"\r | |
210 | __THREADSFLAG = \r | |
211 | !endif\r | |
212 | !if "$(USE_THREADS)" == "1"\r | |
213 | __THREADSFLAG = mt\r | |
214 | !endif\r | |
215 | !if "$(USE_THREADS)" == "0"\r | |
216 | __THREADSFLAG_1 = \r | |
217 | !endif\r | |
218 | !if "$(USE_THREADS)" == "1"\r | |
219 | __THREADSFLAG_1 = -tWM\r | |
220 | !endif\r | |
221 | !if "$(RUNTIME_LIBS)" == "dynamic"\r | |
222 | __RUNTIME_LIBS = -tWR\r | |
223 | !endif\r | |
224 | !if "$(RUNTIME_LIBS)" == "static"\r | |
225 | __RUNTIME_LIBS = \r | |
226 | !endif\r | |
227 | !if "$(RUNTIME_LIBS)" == "dynamic"\r | |
228 | __RUNTIME_LIBS_1 = i\r | |
229 | !endif\r | |
230 | !if "$(RUNTIME_LIBS)" == "static"\r | |
231 | __RUNTIME_LIBS_1 = \r | |
232 | !endif\r | |
61aba460 VS |
233 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r |
234 | __DEBUGINFO = -v\r | |
235 | !endif\r | |
236 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r | |
237 | __DEBUGINFO = -v-\r | |
238 | !endif\r | |
239 | !if "$(DEBUG_INFO)" == "0"\r | |
240 | __DEBUGINFO = -v-\r | |
241 | !endif\r | |
242 | !if "$(DEBUG_INFO)" == "1"\r | |
243 | __DEBUGINFO = -v\r | |
244 | !endif\r | |
245 | \r | |
246 | \r | |
247 | all: $(OBJS)\r | |
248 | $(OBJS):\r | |
249 | -if not exist $(OBJS) mkdir $(OBJS)\r | |
250 | \r | |
251 | ### Targets: ###\r | |
252 | \r | |
da8b1d4b | 253 | all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r |
61aba460 VS |
254 | \r |
255 | clean: \r | |
256 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r | |
257 | -if exist $(OBJS)\*.res del $(OBJS)\*.res\r | |
258 | -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r | |
259 | -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r | |
260 | -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds\r | |
261 | -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc\r | |
262 | -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild\r | |
263 | -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf\r | |
264 | -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils\r | |
265 | -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib\r | |
266 | -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r | |
267 | -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds\r | |
268 | -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc\r | |
269 | -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild\r | |
270 | -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf\r | |
271 | -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils\r | |
da8b1d4b KO |
272 | -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r |
273 | -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds\r | |
274 | -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc\r | |
275 | -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild\r | |
276 | -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf\r | |
277 | -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils\r | |
61aba460 VS |
278 | \r |
279 | $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r | |
280 | ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r | |
4863951a | 281 | c0d32.obj $(MY_DLL_OBJECTS),$@,, $(__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) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r |
61aba460 VS |
282 | |\r |
283 | implib -f $(OBJS)\my_dll $@\r | |
284 | \r | |
285 | !if "$(SHARED)" == "0"\r | |
286 | $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll\r | |
287 | ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r | |
4863951a | 288 | c0w32.obj $(WX_EXE_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\my_dll.lib $(__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) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,, $(OBJS)\wx_exe_sample.res\r |
61aba460 VS |
289 | |\r |
290 | !endif\r | |
291 | \r | |
da8b1d4b KO |
292 | $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r |
293 | ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|\r | |
294 | c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r | |
295 | |\r | |
296 | \r | |
61aba460 VS |
297 | $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r |
298 | $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r | |
299 | \r | |
300 | $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc\r | |
4863951a | 301 | brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) -i. $(__DLLFLAG_p_3) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc\r |
61aba460 | 302 | \r |
1ffe64ef VZ |
303 | $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r |
304 | $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r | |
61aba460 | 305 | \r |
da8b1d4b KO |
306 | $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp\r |
307 | $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp\r | |
308 | \r |