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