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