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 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
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)
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)
49 $(OBJS)\wx_exe_wx_exe.obj
50 SDK_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
51 $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) $(CPPFLAGS) $(CXXFLAGS)
53 $(OBJS)\sdk_exe_sdk_exe.obj
55 ### Conditionally set variables: ###
57 !if "$(USE_GUI)" == "0"
60 !if "$(USE_GUI)" == "1"
63 !if "$(OFFICIAL_BUILD)" == "1"
64 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
66 !if "$(BUILD)" == "debug"
69 !if "$(UNICODE)" == "1"
72 !if "$(WXUNIV)" == "1"
75 !if "$(SHARED)" == "1"
78 !if "$(SHARED)" == "0"
81 !if "$(SHARED)" == "1"
84 !if "$(MONOLITHIC)" == "0"
87 !if "$(MONOLITHIC)" == "1"
90 !if "$(SHARED)" == "0"
91 __wx_exe___depname = $(OBJS)\wx_exe.exe
93 !if "$(WXUNIV)" == "1"
94 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
96 !if "$(DEBUG_FLAG)" == "0"
97 __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0
99 !if "$(BUILD)" == "release"
100 __NDEBUG_DEFINE_p_3 = -dNDEBUG
102 !if "$(USE_EXCEPTIONS)" == "0"
103 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
105 !if "$(USE_RTTI)" == "0"
106 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
108 !if "$(USE_THREADS)" == "0"
109 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
111 !if "$(UNICODE)" == "0"
112 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
114 !if "$(UNICODE)" == "1"
115 __UNICODE_DEFINE_p_3 = -d_UNICODE
118 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
120 !if "$(USE_CAIRO)" == "1"
121 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
123 !if "$(SHARED)" == "1"
124 __DLLFLAG_p_3 = -dWXUSINGDLL
126 !if "$(WXUNIV)" == "1"
127 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
129 !if "$(DEBUG_FLAG)" == "0"
130 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
132 !if "$(BUILD)" == "release"
133 __NDEBUG_DEFINE_p = -DNDEBUG
135 !if "$(USE_EXCEPTIONS)" == "0"
136 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
138 !if "$(USE_RTTI)" == "0"
139 __RTTI_DEFINE_p = -DwxNO_RTTI
141 !if "$(USE_THREADS)" == "0"
142 __THREAD_DEFINE_p = -DwxNO_THREADS
144 !if "$(UNICODE)" == "0"
145 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
147 !if "$(UNICODE)" == "1"
148 __UNICODE_DEFINE_p = -D_UNICODE
151 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
153 !if "$(USE_CAIRO)" == "1"
154 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
156 !if "$(SHARED)" == "1"
157 __DLLFLAG_p = -DWXUSINGDLL
159 !if "$(MONOLITHIC)" == "0"
161 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
163 !if "$(MONOLITHIC)" == "0"
165 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
167 !if "$(MONOLITHIC)" == "1"
169 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
171 !if "$(USE_GUI)" == "1"
172 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
174 !if "$(USE_GUI)" == "1"
175 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
177 !if "$(USE_GUI)" == "1"
178 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
181 __UNICOWS_LIB_p = unicows.lib
183 !if "$(USE_CAIRO)" == "1"
184 __CAIRO_LIB_p = cairo.lib
186 !if "$(USE_CAIRO)" == "1"
187 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
189 !if "$(BUILD)" == "debug"
192 !if "$(BUILD)" == "release"
195 !if "$(USE_THREADS)" == "0"
198 !if "$(USE_THREADS)" == "1"
201 !if "$(USE_THREADS)" == "0"
204 !if "$(USE_THREADS)" == "1"
205 __THREADSFLAG_1 = -tWM
207 !if "$(RUNTIME_LIBS)" == "dynamic"
208 __RUNTIME_LIBS = -tWR
210 !if "$(RUNTIME_LIBS)" == "static"
213 !if "$(RUNTIME_LIBS)" == "dynamic"
216 !if "$(RUNTIME_LIBS)" == "static"
219 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
222 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
225 !if "$(DEBUG_INFO)" == "0"
228 !if "$(DEBUG_INFO)" == "1"
235 -if not exist $(OBJS) mkdir $(OBJS)
239 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
242 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
243 -if exist $(OBJS)\*.res del $(OBJS)\*.res
244 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
245 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
246 -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds
247 -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc
248 -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild
249 -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf
250 -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils
251 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
252 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
253 -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds
254 -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc
255 -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild
256 -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf
257 -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils
258 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
259 -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds
260 -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc
261 -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild
262 -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf
263 -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils
265 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
266 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
267 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,,
269 implib -f $(OBJS)\my_dll $@
271 !if "$(SHARED)" == "0"
272 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
273 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
274 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
278 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
279 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|
280 c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,
283 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
284 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
286 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
287 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
289 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
290 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
292 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
293 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp