]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/net/makefile.bcc
wxString and wxChar* access for file functions. Source cleaning.
[wxWidgets.git] / contrib / build / net / makefile.bcc
CommitLineData
15e8daec
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
15e8daec
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
15e8daec 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
15e8daec
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
15e8daec
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
15e8daec
VS
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
ab921f5f 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
b17c1746
DE
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
30NETUTILSDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) \
33 -I..\..\src\net\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_NETUTILS -Hu \
34 -H=$(OBJS)\wxprec_netutilsdll.csm $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
35NETUTILSDLL_OBJECTS = \
36 $(OBJS)\netutilsdll_dummy.obj \
37 $(OBJS)\netutilsdll_email.obj \
38 $(OBJS)\netutilsdll_smapi.obj \
39 $(OBJS)\netutilsdll_web.obj
9bfe7ad9
VS
40NETUTILSLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
41 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
42 $(__UNICODE_DEFINE_p) -I..\..\src\net\..\..\..\include -I$(SETUPHDIR) \
43 -I..\..\src\net\..\..\include -Hu -H=$(OBJS)\wxprec_netutilslib.csm \
44 $(CPPFLAGS) $(CXXFLAGS)
15e8daec
VS
45NETUTILSLIB_OBJECTS = \
46 $(OBJS)\netutilslib_dummy.obj \
47 $(OBJS)\netutilslib_email.obj \
48 $(OBJS)\netutilslib_smapi.obj \
49 $(OBJS)\netutilslib_web.obj
15e8daec
VS
50
51### Conditionally set variables: ###
52
53!if "$(USE_GUI)" == "0"
54PORTNAME = base
55!endif
56!if "$(USE_GUI)" == "1"
57PORTNAME = msw
58!endif
59!if "$(OFFICIAL_BUILD)" == "0"
60VENDORTAG = _$(VENDOR)
61!endif
62!if "$(OFFICIAL_BUILD)" == "1"
63VENDORTAG =
64!endif
65!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
66WXDEBUGFLAG = d
67!endif
68!if "$(DEBUG_FLAG)" == "1"
69WXDEBUGFLAG = d
70!endif
15e8daec
VS
71!if "$(UNICODE)" == "1"
72WXUNICODEFLAG = u
73!endif
74!if "$(WXUNIV)" == "1"
75WXUNIVNAME = univ
76!endif
b17c1746
DE
77!if "$(SHARED)" == "1"
78WXDLLFLAG = dll
15e8daec 79!endif
dd65d8c8
RN
80!if "$(MONOLITHIC)" == "0"
81EXTRALIBS_FOR_BASE =
82!endif
83!if "$(MONOLITHIC)" == "1"
84EXTRALIBS_FOR_BASE =
85!endif
b17c1746
DE
86!if "$(SHARED)" == "1"
87__netutilsdll___depname = \
c33fae85 88 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll
15e8daec 89!endif
b17c1746 90!if "$(RUNTIME_LIBS)" == "dynamic"
c4839ccf 91__RUNTIME_LIBS_8 = i
15e8daec 92!endif
b17c1746 93!if "$(RUNTIME_LIBS)" == "static"
c4839ccf 94__RUNTIME_LIBS_8 =
15e8daec 95!endif
b17c1746
DE
96!if "$(MONOLITHIC)" == "1"
97__WXLIB_MONO_p = \
c33fae85 98 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
15e8daec 99!endif
b17c1746 100!if "$(USE_GUI)" == "1"
9c2d002b 101__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
15e8daec
VS
102!endif
103!if "$(USE_GUI)" == "1"
9c2d002b 104__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
15e8daec
VS
105!endif
106!if "$(USE_GUI)" == "1"
9c2d002b 107__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
15e8daec 108!endif
b17c1746
DE
109!if "$(MSLU)" == "1"
110__UNICOWS_LIB_p = unicows.lib
111!endif
112!if "$(MONOLITHIC)" == "0"
113__WXLIB_CORE_p = \
c33fae85 114 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
b17c1746
DE
115!endif
116!if "$(MONOLITHIC)" == "0"
c33fae85
RN
117__WXLIB_BASE_p = \
118 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746
DE
119!endif
120!if "$(SHARED)" == "0"
121__netutilslib___depname = \
c33fae85 122 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
b17c1746
DE
123!endif
124!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
125__DEBUGINFO = -v
126!endif
127!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
128__DEBUGINFO = -v-
129!endif
130!if "$(DEBUG_INFO)" == "0"
131__DEBUGINFO = -v-
132!endif
133!if "$(DEBUG_INFO)" == "1"
134__DEBUGINFO = -v
15e8daec
VS
135!endif
136!if "$(BUILD)" == "debug"
137__OPTIMIZEFLAG = -Od
138!endif
139!if "$(BUILD)" == "release"
140__OPTIMIZEFLAG = -O2
141!endif
142!if "$(RUNTIME_LIBS)" == "dynamic"
143__RUNTIME_LIBS = -tWR
144!endif
145!if "$(RUNTIME_LIBS)" == "static"
146__RUNTIME_LIBS =
147!endif
b17c1746
DE
148!if "$(WXUNIV)" == "1"
149__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
15e8daec 150!endif
b17c1746
DE
151!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
152__DEBUG_DEFINE_p = -D__WXDEBUG__
153!endif
154!if "$(DEBUG_FLAG)" == "1"
155__DEBUG_DEFINE_p = -D__WXDEBUG__
15e8daec
VS
156!endif
157!if "$(UNICODE)" == "1"
ec08d395 158__UNICODE_DEFINE_p = -D_UNICODE
15e8daec 159!endif
b17c1746
DE
160!if "$(SHARED)" == "0"
161LIBDIRNAME = ..\..\src\net\..\..\..\lib\bcc_lib$(CFG)
15e8daec
VS
162!endif
163!if "$(SHARED)" == "1"
b17c1746 164LIBDIRNAME = ..\..\src\net\..\..\..\lib\bcc_dll$(CFG)
15e8daec
VS
165!endif
166
167
168all: $(OBJS)
169$(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172### Targets: ###
173
174all: $(__netutilsdll___depname) $(__netutilslib___depname)
175
15e8daec
VS
176clean:
177 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
178 -if exist $(OBJS)\*.res del $(OBJS)\*.res
c33fae85
RN
179 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll
180 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).tds
181 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilc
182 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ild
183 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ilf
184 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).ils
185 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
186 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib
15e8daec
VS
187
188!if "$(SHARED)" == "1"
c33fae85 189$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils_bcc$(VENDORTAG).dll: $(OBJS)\netutilsdll_dummy.obj $(NETUTILSDLL_OBJECTS)
9bfe7ad9 190 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
dd65d8c8 191 c0d32.obj $(NETUTILSDLL_OBJECTS),$@,, $(__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 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_8).lib,,
15e8daec 192|
c33fae85 193 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils $@
15e8daec
VS
194!endif
195
196!if "$(SHARED)" == "0"
c33fae85 197$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_netutils.lib: $(OBJS)\netutilslib_dummy.obj $(NETUTILSLIB_OBJECTS)
15e8daec 198 if exist $@ del $@
9bfe7ad9 199 tlib /a /p4096 $@ @&&|
15e8daec
VS
200 $(NETUTILSLIB_OBJECTS)
201|
202!endif
b17c1746
DE
203
204$(OBJS)\netutilsdll_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
205 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) -H $**
206
207$(OBJS)\netutilsdll_email.obj: ../../src/net\email.cpp
208 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) $**
209
210$(OBJS)\netutilsdll_smapi.obj: ../../src/net\smapi.cpp
211 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) $**
212
213$(OBJS)\netutilsdll_web.obj: ../../src/net\web.cpp
214 $(CXX) -q -c -P -o$@ $(NETUTILSDLL_CXXFLAGS) $**
215
216$(OBJS)\netutilslib_dummy.obj: ../../src/net\..\..\..\src\msw\dummy.cpp
217 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) -H $**
218
219$(OBJS)\netutilslib_email.obj: ../../src/net\email.cpp
220 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) $**
221
222$(OBJS)\netutilslib_smapi.obj: ../../src/net\smapi.cpp
223 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) $**
224
225$(OBJS)\netutilslib_web.obj: ../../src/net\web.cpp
226 $(CXX) -q -c -P -o$@ $(NETUTILSLIB_CXXFLAGS) $**