]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.bcc
Sample update - wxTE_AUTO_URL from Mart R. [patch 1126182]
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.bcc
CommitLineData
fd9f42b6
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (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
c33fae85 24WX_RELEASE_NODOT = 25
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)
9bfe7ad9
VS
30STUDIO_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
fd9f42b6 32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include \
c33fae85 33 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH \
9bfe7ad9 34 -I.\..\..\..\include $(CPPFLAGS) $(CXXFLAGS)
34f7e40f
JS
35STUDIO_OBJECTS = \
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
fd9f42b6
VS
46
47### Conditionally set variables: ###
48
49!if "$(USE_GUI)" == "0"
50PORTNAME = base
51!endif
52!if "$(USE_GUI)" == "1"
53PORTNAME = msw
54!endif
55!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
56WXDEBUGFLAG = d
57!endif
58!if "$(DEBUG_FLAG)" == "1"
59WXDEBUGFLAG = d
60!endif
fd9f42b6
VS
61!if "$(UNICODE)" == "1"
62WXUNICODEFLAG = u
63!endif
64!if "$(WXUNIV)" == "1"
65WXUNIVNAME = univ
66!endif
fd9f42b6 67!if "$(SHARED)" == "1"
b17c1746 68WXDLLFLAG = dll
fd9f42b6 69!endif
b14abf14
JS
70!if "$(SHARED)" == "0"
71LIBTYPE_SUFFIX = lib
72!endif
73!if "$(SHARED)" == "1"
74LIBTYPE_SUFFIX = dll
75!endif
dd65d8c8
RN
76!if "$(MONOLITHIC)" == "0"
77EXTRALIBS_FOR_BASE =
78!endif
79!if "$(MONOLITHIC)" == "1"
80EXTRALIBS_FOR_BASE =
81!endif
fd9f42b6
VS
82!if "$(BUILD)" == "debug"
83__OPTIMIZEFLAG_2 = -Od
84!endif
85!if "$(BUILD)" == "release"
86__OPTIMIZEFLAG_2 = -O2
87!endif
88!if "$(RUNTIME_LIBS)" == "dynamic"
89__RUNTIME_LIBS_6 = -tWR
90!endif
91!if "$(RUNTIME_LIBS)" == "static"
92__RUNTIME_LIBS_6 =
93!endif
94!if "$(RUNTIME_LIBS)" == "dynamic"
95__RUNTIME_LIBS_7 = i
96!endif
97!if "$(RUNTIME_LIBS)" == "static"
98__RUNTIME_LIBS_7 =
99!endif
b17c1746
DE
100!if "$(WXUNIV)" == "1"
101__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102!endif
103!if "$(WXUNIV)" == "1"
104__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
105!endif
106!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108!endif
109!if "$(DEBUG_FLAG)" == "1"
110__DEBUG_DEFINE_p = -D__WXDEBUG__
111!endif
112!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
114!endif
115!if "$(DEBUG_FLAG)" == "1"
116__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
117!endif
fd9f42b6 118!if "$(UNICODE)" == "1"
ec08d395 119__UNICODE_DEFINE_p = -D_UNICODE
fd9f42b6
VS
120!endif
121!if "$(UNICODE)" == "1"
ec08d395 122__UNICODE_DEFINE_p_1 = -d_UNICODE
fd9f42b6 123!endif
b17c1746
DE
124!if "$(SHARED)" == "1"
125__DLLFLAG_p = -DWXUSINGDLL
126!endif
127!if "$(SHARED)" == "1"
128__DLLFLAG_p_1 = -dWXUSINGDLL
2265a2d5 129!endif
fd9f42b6 130!if "$(MONOLITHIC)" == "0"
34f7e40f 131__WXLIB_ADV_p = \
c33fae85 132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
34f7e40f
JS
133!endif
134!if "$(MONOLITHIC)" == "0"
b17c1746 135__WXLIB_HTML_p = \
c33fae85 136 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
fd9f42b6
VS
137!endif
138!if "$(MONOLITHIC)" == "0"
139__WXLIB_CORE_p = \
c33fae85 140 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
fd9f42b6 141!endif
ec08d395 142!if "$(MONOLITHIC)" == "0"
c33fae85
RN
143__WXLIB_BASE_p = \
144 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
ec08d395 145!endif
fd9f42b6
VS
146!if "$(MONOLITHIC)" == "1"
147__WXLIB_MONO_p = \
c33fae85 148 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
fd9f42b6 149!endif
b17c1746 150!if "$(USE_GUI)" == "1"
9c2d002b 151__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
fd9f42b6 152!endif
b17c1746 153!if "$(USE_GUI)" == "1"
9c2d002b 154__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
155!endif
156!if "$(USE_GUI)" == "1"
9c2d002b 157__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
158!endif
159!if "$(MSLU)" == "1"
160__UNICOWS_LIB_p = unicows.lib
161!endif
b17c1746
DE
162!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
163__DEBUGINFO = -v
164!endif
165!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
166__DEBUGINFO = -v-
167!endif
168!if "$(DEBUG_INFO)" == "0"
169__DEBUGINFO = -v-
170!endif
171!if "$(DEBUG_INFO)" == "1"
172__DEBUGINFO = -v
fd9f42b6
VS
173!endif
174
fd9f42b6
VS
175
176all: $(OBJS)
177$(OBJS):
178 -if not exist $(OBJS) mkdir $(OBJS)
179
180### Targets: ###
181
34f7e40f 182all: $(OBJS)\studio.exe data
fd9f42b6 183
b17c1746
DE
184clean:
185 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
186 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 187 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
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
fd9f42b6 194
b17c1746
DE
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 @&&|
b14abf14 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
b17c1746 198|
fd9f42b6 199
b17c1746
DE
200data:
201 if not exist $(OBJS) mkdir $(OBJS)
202 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
203
204$(OBJS)\studio_studio.obj: .\studio.cpp
34f7e40f 205 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 206
34f7e40f
JS
207$(OBJS)\studio_doc.obj: .\doc.cpp
208 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 209
b17c1746 210$(OBJS)\studio_shapes.obj: .\shapes.cpp
34f7e40f 211 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 212
b17c1746 213$(OBJS)\studio_symbols.obj: .\symbols.cpp
34f7e40f 214 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 215
b17c1746 216$(OBJS)\studio_view.obj: .\view.cpp
34f7e40f 217 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 218
b17c1746 219$(OBJS)\studio_cspalette.obj: .\cspalette.cpp
34f7e40f 220 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 221
b17c1746 222$(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
34f7e40f 223 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 224
b17c1746 225$(OBJS)\studio_project.obj: .\project.cpp
34f7e40f 226 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 227
b17c1746
DE
228$(OBJS)\studio_dialogs.obj: .\dialogs.cpp
229 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
fd9f42b6 230
b17c1746
DE
231$(OBJS)\studio_csprint.obj: .\csprint.cpp
232 $(CXX) -q -c -P -o$@ $(STUDIO_CXXFLAGS) $**
1fc25a89 233
b17c1746 234$(OBJS)\studio_studio.res: .\studio.rc
b14abf14
JS
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 $**
236