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