1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
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 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 STUDIO_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
34 -I.\..\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
35 -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include $(CPPFLAGS) $(CXXFLAGS)
37 $(OBJS)\studio_studio.obj \
38 $(OBJS)\studio_doc.obj \
39 $(OBJS)\studio_shapes.obj \
40 $(OBJS)\studio_symbols.obj \
41 $(OBJS)\studio_view.obj \
42 $(OBJS)\studio_cspalette.obj \
43 $(OBJS)\studio_mainfrm.obj \
44 $(OBJS)\studio_project.obj \
45 $(OBJS)\studio_dialogs.obj \
46 $(OBJS)\studio_csprint.obj
48 ### Conditionally set variables: ###
50 !if "$(USE_GUI)" == "0"
53 !if "$(USE_GUI)" == "1"
56 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
59 !if "$(DEBUG_FLAG)" == "1"
62 !if "$(UNICODE)" == "1"
65 !if "$(WXUNIV)" == "1"
68 !if "$(SHARED)" == "1"
71 !if "$(SHARED)" == "0"
74 !if "$(SHARED)" == "1"
77 !if "$(MONOLITHIC)" == "0"
80 !if "$(MONOLITHIC)" == "1"
83 !if "$(BUILD)" == "debug"
84 __OPTIMIZEFLAG_2 = -Od
86 !if "$(BUILD)" == "release"
87 __OPTIMIZEFLAG_2 = -O2
89 !if "$(USE_THREADS)" == "0"
92 !if "$(USE_THREADS)" == "1"
95 !if "$(USE_THREADS)" == "0"
98 !if "$(USE_THREADS)" == "1"
99 __THREADSFLAG_6 = -tWM
101 !if "$(RUNTIME_LIBS)" == "dynamic"
102 __RUNTIME_LIBS_7 = -tWR
104 !if "$(RUNTIME_LIBS)" == "static"
107 !if "$(RUNTIME_LIBS)" == "dynamic"
110 !if "$(RUNTIME_LIBS)" == "static"
113 !if "$(WXUNIV)" == "1"
114 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
116 !if "$(WXUNIV)" == "1"
117 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
119 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
122 !if "$(DEBUG_FLAG)" == "1"
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
125 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
128 !if "$(DEBUG_FLAG)" == "1"
129 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
131 !if "$(USE_EXCEPTIONS)" == "0"
132 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
134 !if "$(USE_EXCEPTIONS)" == "0"
135 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
137 !if "$(USE_RTTI)" == "0"
138 __RTTI_DEFINE_p = -DwxNO_RTTI
140 !if "$(USE_RTTI)" == "0"
141 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
143 !if "$(USE_THREADS)" == "0"
144 __THREAD_DEFINE_p = -DwxNO_THREADS
146 !if "$(USE_THREADS)" == "0"
147 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
149 !if "$(UNICODE)" == "1"
150 __UNICODE_DEFINE_p = -D_UNICODE
152 !if "$(UNICODE)" == "1"
153 __UNICODE_DEFINE_p_1 = -d_UNICODE
156 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
159 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
161 !if "$(SHARED)" == "1"
162 __DLLFLAG_p = -DWXUSINGDLL
164 !if "$(SHARED)" == "1"
165 __DLLFLAG_p_1 = -dWXUSINGDLL
167 !if "$(MONOLITHIC)" == "0"
169 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
171 !if "$(MONOLITHIC)" == "0"
173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
175 !if "$(MONOLITHIC)" == "0"
177 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
179 !if "$(MONOLITHIC)" == "0"
181 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
183 !if "$(MONOLITHIC)" == "0"
185 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
187 !if "$(MONOLITHIC)" == "1"
189 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
191 !if "$(USE_GUI)" == "1"
192 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
194 !if "$(USE_GUI)" == "1"
195 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
197 !if "$(USE_GUI)" == "1"
198 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
201 __UNICOWS_LIB_p = unicows.lib
203 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
206 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
209 !if "$(DEBUG_INFO)" == "0"
212 !if "$(DEBUG_INFO)" == "1"
219 -if not exist $(OBJS) mkdir $(OBJS)
223 all: $(OBJS)\studio.exe data
226 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
227 -if exist $(OBJS)\*.res del $(OBJS)\*.res
228 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
229 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
230 -if exist $(OBJS)\studio.tds del $(OBJS)\studio.tds
231 -if exist $(OBJS)\studio.ilc del $(OBJS)\studio.ilc
232 -if exist $(OBJS)\studio.ild del $(OBJS)\studio.ild
233 -if exist $(OBJS)\studio.ilf del $(OBJS)\studio.ilf
234 -if exist $(OBJS)\studio.ils del $(OBJS)\studio.ils
236 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio.res
237 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
238 c0w32.obj $(STUDIO_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl.lib wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated.lib $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\studio_studio.res
242 if not exist $(OBJS) mkdir $(OBJS)
243 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
245 $(OBJS)\studio_studio.obj: .\studio.cpp
246 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
248 $(OBJS)\studio_doc.obj: .\doc.cpp
249 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
251 $(OBJS)\studio_shapes.obj: .\shapes.cpp
252 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
254 $(OBJS)\studio_symbols.obj: .\symbols.cpp
255 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
257 $(OBJS)\studio_view.obj: .\view.cpp
258 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
260 $(OBJS)\studio_cspalette.obj: .\cspalette.cpp
261 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
263 $(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
264 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
266 $(OBJS)\studio_project.obj: .\project.cpp
267 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
269 $(OBJS)\studio_dialogs.obj: .\dialogs.cpp
270 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
272 $(OBJS)\studio_csprint.obj: .\csprint.cpp
273 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
275 $(OBJS)\studio_studio.res: .\studio.rc
276 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) -i.\..\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\..\..\samples -dNOPCH -i.\..\..\..\include $**