1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include \
33 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH \
34 -I.\..\..\..\include $(CPPFLAGS) $(CXXFLAGS)
36 $(OBJS)\studio_studio.obj \
37 $(OBJS)\studio_doc.obj \
38 $(OBJS)\studio_shapes.obj \
39 $(OBJS)\studio_symbols.obj \
40 $(OBJS)\studio_view.obj \
41 $(OBJS)\studio_cspalette.obj \
42 $(OBJS)\studio_mainfrm.obj \
43 $(OBJS)\studio_project.obj \
44 $(OBJS)\studio_dialogs.obj \
45 $(OBJS)\studio_csprint.obj
47 ### Conditionally set variables: ###
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(UNICODE)" == "1"
64 !if "$(WXUNIV)" == "1"
67 !if "$(SHARED)" == "1"
70 !if "$(SHARED)" == "0"
73 !if "$(SHARED)" == "1"
76 !if "$(MONOLITHIC)" == "0"
79 !if "$(MONOLITHIC)" == "1"
82 !if "$(BUILD)" == "debug"
83 __OPTIMIZEFLAG_2 = -Od
85 !if "$(BUILD)" == "release"
86 __OPTIMIZEFLAG_2 = -O2
88 !if "$(RUNTIME_LIBS)" == "dynamic"
89 __RUNTIME_LIBS_6 = -tWR
91 !if "$(RUNTIME_LIBS)" == "static"
94 !if "$(RUNTIME_LIBS)" == "dynamic"
97 !if "$(RUNTIME_LIBS)" == "static"
100 !if "$(WXUNIV)" == "1"
101 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 !if "$(WXUNIV)" == "1"
104 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
106 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 !if "$(DEBUG_FLAG)" == "1"
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
115 !if "$(DEBUG_FLAG)" == "1"
116 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p = -D_UNICODE
121 !if "$(UNICODE)" == "1"
122 __UNICODE_DEFINE_p_1 = -d_UNICODE
124 !if "$(SHARED)" == "1"
125 __DLLFLAG_p = -DWXUSINGDLL
127 !if "$(SHARED)" == "1"
128 __DLLFLAG_p_1 = -dWXUSINGDLL
130 !if "$(MONOLITHIC)" == "0"
132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
134 !if "$(MONOLITHIC)" == "0"
136 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
138 !if "$(MONOLITHIC)" == "0"
140 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
142 !if "$(MONOLITHIC)" == "0"
144 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
146 !if "$(MONOLITHIC)" == "1"
148 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
150 !if "$(USE_GUI)" == "1"
151 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
153 !if "$(USE_GUI)" == "1"
154 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
156 !if "$(USE_GUI)" == "1"
157 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
160 __UNICOWS_LIB_p = unicows.lib
162 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
165 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
168 !if "$(DEBUG_INFO)" == "0"
171 !if "$(DEBUG_INFO)" == "1"
178 -if not exist $(OBJS) mkdir $(OBJS)
182 all: $(OBJS)\studio.exe data
185 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
186 -if exist $(OBJS)\*.res del $(OBJS)\*.res
187 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
188 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
189 -if exist $(OBJS)\studio.tds del $(OBJS)\studio.tds
190 -if exist $(OBJS)\studio.ilc del $(OBJS)\studio.ilc
191 -if exist $(OBJS)\studio.ild del $(OBJS)\studio.ild
192 -if exist $(OBJS)\studio.ilf del $(OBJS)\studio.ilf
193 -if exist $(OBJS)\studio.ils del $(OBJS)\studio.ils
195 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio.res
196 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
197 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_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 cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\studio_studio.res
201 if not exist $(OBJS) mkdir $(OBJS)
202 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
204 $(OBJS)\studio_studio.obj: .\studio.cpp
205 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
207 $(OBJS)\studio_doc.obj: .\doc.cpp
208 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
210 $(OBJS)\studio_shapes.obj: .\shapes.cpp
211 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
213 $(OBJS)\studio_symbols.obj: .\symbols.cpp
214 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
216 $(OBJS)\studio_view.obj: .\view.cpp
217 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
219 $(OBJS)\studio_cspalette.obj: .\cspalette.cpp
220 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
222 $(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
223 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
225 $(OBJS)\studio_project.obj: .\project.cpp
226 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
228 $(OBJS)\studio_dialogs.obj: .\dialogs.cpp
229 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
231 $(OBJS)\studio_csprint.obj: .\csprint.cpp
232 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
234 $(OBJS)\studio_studio.res: .\studio.rc
235 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\..\..\samples -dNOPCH -i.\..\..\..\include $**