]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.bcc
Aliases for [G|S]etCaretLineBack
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.bcc
CommitLineData
fd9f42b6
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
fd9f42b6
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
1fc25a89 6
9bfe7ad9
VS
7.autodepend
8
fd9f42b6 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
fd9f42b6 13BCCDIR = $(MAKEDIR)\..
1fc25a89
JS
14!endif
15
fd9f42b6 16!include ../../../../build/msw/config.bcc
1fc25a89 17
fd9f42b6
VS
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
1fc25a89 21
fd9f42b6
VS
22### Variables: ###
23
4cbcfb73 24WX_RELEASE_NODOT = 27
fd9f42b6
VS
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 27LIBDIRNAME = .\..\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
34f7e40f
JS
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
30STUDIO_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) \
2113bc77 33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
cf9b63b3 34 -I$(SETUPHDIR) -I.\..\..\..\..\include -I. $(__DLLFLAG_p) \
2113bc77 35 -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include $(CPPFLAGS) $(CXXFLAGS)
34f7e40f
JS
36STUDIO_OBJECTS = \
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
fd9f42b6
VS
47
48### Conditionally set variables: ###
49
50!if "$(USE_GUI)" == "0"
51PORTNAME = base
52!endif
53!if "$(USE_GUI)" == "1"
54PORTNAME = msw
55!endif
56!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57WXDEBUGFLAG = d
58!endif
59!if "$(DEBUG_FLAG)" == "1"
60WXDEBUGFLAG = d
61!endif
fd9f42b6
VS
62!if "$(UNICODE)" == "1"
63WXUNICODEFLAG = u
64!endif
65!if "$(WXUNIV)" == "1"
66WXUNIVNAME = univ
67!endif
fd9f42b6 68!if "$(SHARED)" == "1"
b17c1746 69WXDLLFLAG = dll
fd9f42b6 70!endif
b14abf14
JS
71!if "$(SHARED)" == "0"
72LIBTYPE_SUFFIX = lib
73!endif
74!if "$(SHARED)" == "1"
75LIBTYPE_SUFFIX = dll
76!endif
dd65d8c8
RN
77!if "$(MONOLITHIC)" == "0"
78EXTRALIBS_FOR_BASE =
79!endif
80!if "$(MONOLITHIC)" == "1"
81EXTRALIBS_FOR_BASE =
82!endif
fd9f42b6
VS
83!if "$(BUILD)" == "debug"
84__OPTIMIZEFLAG_2 = -Od
85!endif
86!if "$(BUILD)" == "release"
87__OPTIMIZEFLAG_2 = -O2
88!endif
8c9f8f91
JS
89!if "$(USE_THREADS)" == "0"
90__THREADSFLAG_5 =
91!endif
92!if "$(USE_THREADS)" == "1"
93__THREADSFLAG_5 = mt
94!endif
95!if "$(USE_THREADS)" == "0"
96__THREADSFLAG_6 =
97!endif
98!if "$(USE_THREADS)" == "1"
99__THREADSFLAG_6 = -tWM
100!endif
fd9f42b6 101!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 102__RUNTIME_LIBS_7 = -tWR
fd9f42b6
VS
103!endif
104!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 105__RUNTIME_LIBS_7 =
fd9f42b6
VS
106!endif
107!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 108__RUNTIME_LIBS_8 = i
fd9f42b6
VS
109!endif
110!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 111__RUNTIME_LIBS_8 =
fd9f42b6 112!endif
b17c1746
DE
113!if "$(WXUNIV)" == "1"
114__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
115!endif
116!if "$(WXUNIV)" == "1"
117__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
118!endif
119!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
120__DEBUG_DEFINE_p = -D__WXDEBUG__
121!endif
122!if "$(DEBUG_FLAG)" == "1"
123__DEBUG_DEFINE_p = -D__WXDEBUG__
124!endif
125!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
127!endif
128!if "$(DEBUG_FLAG)" == "1"
129__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
130!endif
8c9f8f91
JS
131!if "$(USE_EXCEPTIONS)" == "0"
132__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
133!endif
134!if "$(USE_EXCEPTIONS)" == "0"
135__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
136!endif
137!if "$(USE_RTTI)" == "0"
138__RTTI_DEFINE_p = -DwxNO_RTTI
139!endif
140!if "$(USE_RTTI)" == "0"
141__RTTI_DEFINE_p_1 = -dwxNO_RTTI
142!endif
143!if "$(USE_THREADS)" == "0"
144__THREAD_DEFINE_p = -DwxNO_THREADS
145!endif
146!if "$(USE_THREADS)" == "0"
147__THREAD_DEFINE_p_1 = -dwxNO_THREADS
148!endif
fd9f42b6 149!if "$(UNICODE)" == "1"
ec08d395 150__UNICODE_DEFINE_p = -D_UNICODE
fd9f42b6
VS
151!endif
152!if "$(UNICODE)" == "1"
ec08d395 153__UNICODE_DEFINE_p_1 = -d_UNICODE
fd9f42b6 154!endif
2113bc77
MW
155!if "$(MSLU)" == "1"
156__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
157!endif
158!if "$(MSLU)" == "1"
159__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
160!endif
b17c1746
DE
161!if "$(SHARED)" == "1"
162__DLLFLAG_p = -DWXUSINGDLL
163!endif
164!if "$(SHARED)" == "1"
165__DLLFLAG_p_1 = -dWXUSINGDLL
2265a2d5 166!endif
fd9f42b6 167!if "$(MONOLITHIC)" == "0"
34f7e40f 168__WXLIB_ADV_p = \
c33fae85 169 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
34f7e40f
JS
170!endif
171!if "$(MONOLITHIC)" == "0"
b17c1746 172__WXLIB_HTML_p = \
c33fae85 173 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
fd9f42b6
VS
174!endif
175!if "$(MONOLITHIC)" == "0"
ebef1625
MW
176__WXLIB_XML_p = \
177 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
178!endif
179!if "$(MONOLITHIC)" == "0"
fd9f42b6 180__WXLIB_CORE_p = \
c33fae85 181 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
fd9f42b6 182!endif
ec08d395 183!if "$(MONOLITHIC)" == "0"
c33fae85
RN
184__WXLIB_BASE_p = \
185 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
ec08d395 186!endif
fd9f42b6
VS
187!if "$(MONOLITHIC)" == "1"
188__WXLIB_MONO_p = \
c33fae85 189 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
fd9f42b6 190!endif
b17c1746 191!if "$(USE_GUI)" == "1"
9c2d002b 192__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
fd9f42b6 193!endif
b17c1746 194!if "$(USE_GUI)" == "1"
9c2d002b 195__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
196!endif
197!if "$(USE_GUI)" == "1"
9c2d002b 198__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
199!endif
200!if "$(MSLU)" == "1"
201__UNICOWS_LIB_p = unicows.lib
202!endif
b17c1746
DE
203!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
204__DEBUGINFO = -v
205!endif
206!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
207__DEBUGINFO = -v-
208!endif
209!if "$(DEBUG_INFO)" == "0"
210__DEBUGINFO = -v-
211!endif
212!if "$(DEBUG_INFO)" == "1"
213__DEBUGINFO = -v
fd9f42b6
VS
214!endif
215
fd9f42b6
VS
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
34f7e40f 223all: $(OBJS)\studio.exe data
fd9f42b6 224
b17c1746
DE
225clean:
226 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
227 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 228 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
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
fd9f42b6 235
b17c1746
DE
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 @&&|
3b2cb431 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
b17c1746 239|
fd9f42b6 240
b17c1746
DE
241data:
242 if not exist $(OBJS) mkdir $(OBJS)
243 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
244
245$(OBJS)\studio_studio.obj: .\studio.cpp
34f7e40f 246 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 247
34f7e40f
JS
248$(OBJS)\studio_doc.obj: .\doc.cpp
249 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 250
b17c1746 251$(OBJS)\studio_shapes.obj: .\shapes.cpp
34f7e40f 252 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 253
b17c1746 254$(OBJS)\studio_symbols.obj: .\symbols.cpp
34f7e40f 255 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 256
b17c1746 257$(OBJS)\studio_view.obj: .\view.cpp
34f7e40f 258 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 259
b17c1746 260$(OBJS)\studio_cspalette.obj: .\cspalette.cpp
34f7e40f 261 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 262
b17c1746 263$(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
34f7e40f 264 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 265
b17c1746 266$(OBJS)\studio_project.obj: .\project.cpp
34f7e40f 267 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 268
b17c1746
DE
269$(OBJS)\studio_dialogs.obj: .\dialogs.cpp
270 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 271
b17c1746
DE
272$(OBJS)\studio_csprint.obj: .\csprint.cpp
273 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
1fc25a89 274
b17c1746 275$(OBJS)\studio_studio.res: .\studio.rc
cf9b63b3 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$(SETUPHDIR) -i.\..\..\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\..\..\samples -dNOPCH -i.\..\..\..\include $**
b14abf14 277