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