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__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)
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)
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 "$(TOOLKIT)" == "GTK"
58 WIN32_TOOLKIT_LOWERCASE = gtk
60 !if "$(TOOLKIT)" == "MSW"
61 WIN32_TOOLKIT_LOWERCASE = msw
63 !if "$(USE_GUI)" == "0"
66 !if "$(USE_GUI)" == "1"
67 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
69 !if "$(TOOLKIT)" == "MAC"
72 !if "$(OFFICIAL_BUILD)" == "1"
73 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
75 !if "$(BUILD)" == "debug"
78 !if "$(UNICODE)" == "1"
81 !if "$(WXUNIV)" == "1"
84 !if "$(SHARED)" == "1"
87 !if "$(SHARED)" == "0"
90 !if "$(SHARED)" == "1"
93 !if "$(MONOLITHIC)" == "0"
96 !if "$(MONOLITHIC)" == "1"
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 \
104 !if "$(SHARED)" == "0"
105 __wx_exe___depname = $(OBJS)\wx_exe.exe
107 !if "$(WXUNIV)" == "1"
108 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
110 !if "$(DEBUG_FLAG)" == "0"
111 __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0
113 !if "$(BUILD)" == "release"
114 __NDEBUG_DEFINE_p_3 = -dNDEBUG
116 !if "$(USE_EXCEPTIONS)" == "0"
117 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
119 !if "$(USE_RTTI)" == "0"
120 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
122 !if "$(USE_THREADS)" == "0"
123 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
125 !if "$(UNICODE)" == "0"
126 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
128 !if "$(UNICODE)" == "1"
129 __UNICODE_DEFINE_p_3 = -d_UNICODE
132 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
134 !if "$(USE_CAIRO)" == "1"
135 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
137 !if "$(SHARED)" == "1"
138 __DLLFLAG_p_3 = -dWXUSINGDLL
140 !if "$(WXUNIV)" == "1"
141 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
143 !if "$(DEBUG_FLAG)" == "0"
144 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
146 !if "$(BUILD)" == "release"
147 __NDEBUG_DEFINE_p = -DNDEBUG
149 !if "$(USE_EXCEPTIONS)" == "0"
150 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
152 !if "$(USE_RTTI)" == "0"
153 __RTTI_DEFINE_p = -DwxNO_RTTI
155 !if "$(USE_THREADS)" == "0"
156 __THREAD_DEFINE_p = -DwxNO_THREADS
158 !if "$(UNICODE)" == "0"
159 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
161 !if "$(UNICODE)" == "1"
162 __UNICODE_DEFINE_p = -D_UNICODE
165 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
167 !if "$(USE_CAIRO)" == "1"
168 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
170 !if "$(SHARED)" == "1"
171 __DLLFLAG_p = -DWXUSINGDLL
173 !if "$(MONOLITHIC)" == "0"
175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
177 !if "$(MONOLITHIC)" == "0"
179 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
181 !if "$(MONOLITHIC)" == "1"
183 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
185 !if "$(USE_GUI)" == "1"
186 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
188 !if "$(USE_GUI)" == "1"
189 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
191 !if "$(USE_GUI)" == "1"
192 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
195 __UNICOWS_LIB_p = unicows.lib
197 !if "$(USE_CAIRO)" == "1"
198 __CAIRO_LIB_p = cairo.lib
200 !if "$(USE_CAIRO)" == "1"
201 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
203 !if "$(BUILD)" == "debug"
206 !if "$(BUILD)" == "release"
209 !if "$(USE_THREADS)" == "0"
212 !if "$(USE_THREADS)" == "1"
215 !if "$(USE_THREADS)" == "0"
218 !if "$(USE_THREADS)" == "1"
219 __THREADSFLAG_1 = -tWM
221 !if "$(RUNTIME_LIBS)" == "dynamic"
222 __RUNTIME_LIBS = -tWR
224 !if "$(RUNTIME_LIBS)" == "static"
227 !if "$(RUNTIME_LIBS)" == "dynamic"
230 !if "$(RUNTIME_LIBS)" == "static"
233 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
236 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
239 !if "$(DEBUG_INFO)" == "0"
242 !if "$(DEBUG_INFO)" == "1"
249 -if not exist $(OBJS) mkdir $(OBJS)
253 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
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
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,,
283 implib -f $(OBJS)\my_dll $@
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
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,,
297 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
298 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
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
303 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
304 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
306 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
307 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp