]> git.saurik.com Git - wxWidgets.git/blob - samples/dll/makefile.bcc
3011def022b9d3164acb70721559d44551e5ca64
[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 = 29
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__WX$(TOOLKIT)__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__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__WX$(TOOLKIT)__ \
43 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
44 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
45 $(__UNICODE_DEFINE_p) $(__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 "$(TOOLKIT)" == "GTK"
58 WIN32_TOOLKIT_LOWERCASE = gtk
59 !endif
60 !if "$(TOOLKIT)" == "MSW"
61 WIN32_TOOLKIT_LOWERCASE = msw
62 !endif
63 !if "$(USE_GUI)" == "0"
64 PORTNAME = base
65 !endif
66 !if "$(USE_GUI)" == "1"
67 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
68 !endif
69 !if "$(TOOLKIT)" == "MAC"
70 WXBASEPORT = _carbon
71 !endif
72 !if "$(OFFICIAL_BUILD)" == "1"
73 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
74 !endif
75 !if "$(BUILD)" == "debug"
76 WXDEBUGFLAG = d
77 !endif
78 !if "$(UNICODE)" == "1"
79 WXUNICODEFLAG = u
80 !endif
81 !if "$(WXUNIV)" == "1"
82 WXUNIVNAME = univ
83 !endif
84 !if "$(SHARED)" == "1"
85 WXDLLFLAG = dll
86 !endif
87 !if "$(SHARED)" == "0"
88 LIBTYPE_SUFFIX = lib
89 !endif
90 !if "$(SHARED)" == "1"
91 LIBTYPE_SUFFIX = dll
92 !endif
93 !if "$(MONOLITHIC)" == "0"
94 EXTRALIBS_FOR_BASE =
95 !endif
96 !if "$(MONOLITHIC)" == "1"
97 EXTRALIBS_FOR_BASE =
98 !endif
99 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
100 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
101 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
102 glib-2.0.lib
103 !endif
104 !if "$(SHARED)" == "0"
105 __wx_exe___depname = $(OBJS)\wx_exe.exe
106 !endif
107 !if "$(WXUNIV)" == "1"
108 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
109 !endif
110 !if "$(DEBUG_FLAG)" == "0"
111 __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0
112 !endif
113 !if "$(BUILD)" == "release"
114 __NDEBUG_DEFINE_p_3 = -dNDEBUG
115 !endif
116 !if "$(USE_EXCEPTIONS)" == "0"
117 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
118 !endif
119 !if "$(USE_RTTI)" == "0"
120 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
121 !endif
122 !if "$(USE_THREADS)" == "0"
123 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
124 !endif
125 !if "$(UNICODE)" == "0"
126 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
127 !endif
128 !if "$(UNICODE)" == "1"
129 __UNICODE_DEFINE_p_3 = -d_UNICODE
130 !endif
131 !if "$(MSLU)" == "1"
132 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
133 !endif
134 !if "$(USE_CAIRO)" == "1"
135 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
136 !endif
137 !if "$(SHARED)" == "1"
138 __DLLFLAG_p_3 = -dWXUSINGDLL
139 !endif
140 !if "$(WXUNIV)" == "1"
141 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
142 !endif
143 !if "$(DEBUG_FLAG)" == "0"
144 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
145 !endif
146 !if "$(BUILD)" == "release"
147 __NDEBUG_DEFINE_p = -DNDEBUG
148 !endif
149 !if "$(USE_EXCEPTIONS)" == "0"
150 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
151 !endif
152 !if "$(USE_RTTI)" == "0"
153 __RTTI_DEFINE_p = -DwxNO_RTTI
154 !endif
155 !if "$(USE_THREADS)" == "0"
156 __THREAD_DEFINE_p = -DwxNO_THREADS
157 !endif
158 !if "$(UNICODE)" == "0"
159 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
160 !endif
161 !if "$(UNICODE)" == "1"
162 __UNICODE_DEFINE_p = -D_UNICODE
163 !endif
164 !if "$(MSLU)" == "1"
165 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
166 !endif
167 !if "$(USE_CAIRO)" == "1"
168 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
169 !endif
170 !if "$(SHARED)" == "1"
171 __DLLFLAG_p = -DWXUSINGDLL
172 !endif
173 !if "$(MONOLITHIC)" == "0"
174 __WXLIB_CORE_p = \
175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
176 !endif
177 !if "$(MONOLITHIC)" == "0"
178 __WXLIB_BASE_p = \
179 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
180 !endif
181 !if "$(MONOLITHIC)" == "1"
182 __WXLIB_MONO_p = \
183 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
184 !endif
185 !if "$(USE_GUI)" == "1"
186 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
187 !endif
188 !if "$(USE_GUI)" == "1"
189 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
190 !endif
191 !if "$(USE_GUI)" == "1"
192 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
193 !endif
194 !if "$(MSLU)" == "1"
195 __UNICOWS_LIB_p = unicows.lib
196 !endif
197 !if "$(USE_CAIRO)" == "1"
198 __CAIRO_LIB_p = cairo.lib
199 !endif
200 !if "$(USE_CAIRO)" == "1"
201 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
202 !endif
203 !if "$(BUILD)" == "debug"
204 __OPTIMIZEFLAG = -Od
205 !endif
206 !if "$(BUILD)" == "release"
207 __OPTIMIZEFLAG = -O2
208 !endif
209 !if "$(USE_THREADS)" == "0"
210 __THREADSFLAG =
211 !endif
212 !if "$(USE_THREADS)" == "1"
213 __THREADSFLAG = mt
214 !endif
215 !if "$(USE_THREADS)" == "0"
216 __THREADSFLAG_1 =
217 !endif
218 !if "$(USE_THREADS)" == "1"
219 __THREADSFLAG_1 = -tWM
220 !endif
221 !if "$(RUNTIME_LIBS)" == "dynamic"
222 __RUNTIME_LIBS = -tWR
223 !endif
224 !if "$(RUNTIME_LIBS)" == "static"
225 __RUNTIME_LIBS =
226 !endif
227 !if "$(RUNTIME_LIBS)" == "dynamic"
228 __RUNTIME_LIBS_1 = i
229 !endif
230 !if "$(RUNTIME_LIBS)" == "static"
231 __RUNTIME_LIBS_1 =
232 !endif
233 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
234 __DEBUGINFO = -v
235 !endif
236 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
237 __DEBUGINFO = -v-
238 !endif
239 !if "$(DEBUG_INFO)" == "0"
240 __DEBUGINFO = -v-
241 !endif
242 !if "$(DEBUG_INFO)" == "1"
243 __DEBUGINFO = -v
244 !endif
245
246
247 all: $(OBJS)
248 $(OBJS):
249 -if not exist $(OBJS) mkdir $(OBJS)
250
251 ### Targets: ###
252
253 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
254
255 clean:
256 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
257 -if exist $(OBJS)\*.res del $(OBJS)\*.res
258 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
259 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
260 -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds
261 -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc
262 -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild
263 -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf
264 -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils
265 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
266 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
267 -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds
268 -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc
269 -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild
270 -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf
271 -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils
272 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
273 -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds
274 -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc
275 -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild
276 -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf
277 -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils
278
279 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
280 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
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,,
282 |
283 implib -f $(OBJS)\my_dll $@
284
285 !if "$(SHARED)" == "0"
286 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
287 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
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
289 |
290 !endif
291
292 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
293 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|
294 c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,
295 |
296
297 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
298 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
299
300 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
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
302
303 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
304 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
305
306 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
307 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp
308