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 # =========================================================================
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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
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) -I$(SETUPHDIR) -I.\..\..\include \
36 $(____CAIRO_INCLUDEDIR_FILENAMES) $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. \
37 $(CPPFLAGS) $(CXXFLAGS)
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) -I$(SETUPHDIR) -I.\..\..\include \
45 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \
46 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
48 $(OBJS)\wx_exe_wx_exe.obj
49 SDK_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
50 $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) $(CPPFLAGS) $(CXXFLAGS)
52 $(OBJS)\sdk_exe_sdk_exe.obj
54 ### Conditionally set variables: ###
56 !if "$(USE_GUI)" == "0"
59 !if "$(USE_GUI)" == "1"
62 !if "$(BUILD)" == "debug"
65 !if "$(UNICODE)" == "1"
68 !if "$(WXUNIV)" == "1"
71 !if "$(SHARED)" == "1"
74 !if "$(SHARED)" == "0"
77 !if "$(SHARED)" == "1"
80 !if "$(MONOLITHIC)" == "0"
83 !if "$(MONOLITHIC)" == "1"
86 !if "$(SHARED)" == "0"
87 __wx_exe___depname = $(OBJS)\wx_exe.exe
89 !if "$(WXUNIV)" == "1"
90 __WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__
92 !if "$(DEBUG_FLAG)" == "0"
93 __DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0
95 !if "$(BUILD)" == "release"
96 __NDEBUG_DEFINE_p_3 = -dNDEBUG
98 !if "$(USE_EXCEPTIONS)" == "0"
99 __EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS
101 !if "$(USE_RTTI)" == "0"
102 __RTTI_DEFINE_p_3 = -dwxNO_RTTI
104 !if "$(USE_THREADS)" == "0"
105 __THREAD_DEFINE_p_3 = -dwxNO_THREADS
107 !if "$(UNICODE)" == "0"
108 __UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0
110 !if "$(UNICODE)" == "1"
111 __UNICODE_DEFINE_p_3 = -d_UNICODE
114 __MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1
116 !if "$(USE_CAIRO)" == "1"
117 ____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo
119 !if "$(SHARED)" == "1"
120 __DLLFLAG_p_3 = -dWXUSINGDLL
122 !if "$(WXUNIV)" == "1"
123 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
125 !if "$(DEBUG_FLAG)" == "0"
126 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
128 !if "$(BUILD)" == "release"
129 __NDEBUG_DEFINE_p = -DNDEBUG
131 !if "$(USE_EXCEPTIONS)" == "0"
132 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
134 !if "$(USE_RTTI)" == "0"
135 __RTTI_DEFINE_p = -DwxNO_RTTI
137 !if "$(USE_THREADS)" == "0"
138 __THREAD_DEFINE_p = -DwxNO_THREADS
140 !if "$(UNICODE)" == "0"
141 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
143 !if "$(UNICODE)" == "1"
144 __UNICODE_DEFINE_p = -D_UNICODE
147 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149 !if "$(USE_CAIRO)" == "1"
150 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
152 !if "$(SHARED)" == "1"
153 __DLLFLAG_p = -DWXUSINGDLL
155 !if "$(MONOLITHIC)" == "0"
157 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
159 !if "$(MONOLITHIC)" == "0"
161 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
163 !if "$(MONOLITHIC)" == "1"
165 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
167 !if "$(USE_GUI)" == "1"
168 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
170 !if "$(USE_GUI)" == "1"
171 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
173 !if "$(USE_GUI)" == "1"
174 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
177 __UNICOWS_LIB_p = unicows.lib
179 !if "$(USE_CAIRO)" == "1"
180 __CAIRO_LIB_p = cairo.lib
182 !if "$(USE_CAIRO)" == "1"
183 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
185 !if "$(BUILD)" == "debug"
188 !if "$(BUILD)" == "release"
191 !if "$(USE_THREADS)" == "0"
194 !if "$(USE_THREADS)" == "1"
197 !if "$(USE_THREADS)" == "0"
200 !if "$(USE_THREADS)" == "1"
201 __THREADSFLAG_1 = -tWM
203 !if "$(RUNTIME_LIBS)" == "dynamic"
204 __RUNTIME_LIBS = -tWR
206 !if "$(RUNTIME_LIBS)" == "static"
209 !if "$(RUNTIME_LIBS)" == "dynamic"
212 !if "$(RUNTIME_LIBS)" == "static"
215 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
218 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
221 !if "$(DEBUG_INFO)" == "0"
224 !if "$(DEBUG_INFO)" == "1"
231 -if not exist $(OBJS) mkdir $(OBJS)
235 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
238 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
239 -if exist $(OBJS)\*.res del $(OBJS)\*.res
240 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
241 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
242 -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds
243 -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc
244 -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild
245 -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf
246 -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils
247 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib
248 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
249 -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds
250 -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc
251 -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild
252 -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf
253 -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils
254 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
255 -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds
256 -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc
257 -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild
258 -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf
259 -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils
261 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
262 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
263 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,,
265 implib -f $(OBJS)\my_dll $@
267 !if "$(SHARED)" == "0"
268 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll
269 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|
270 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
274 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
275 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|
276 c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,
279 $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
280 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp
282 $(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc
283 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
285 $(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp
286 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp
288 $(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp
289 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp