]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.bcc
Fixes
[wxWidgets.git] / samples / sockets / makefile.bcc
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 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 WX_RELEASE_NODOT = 25
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28 SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 CLIENT_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
32 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
33 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
34 CLIENT_OBJECTS = \
35 $(OBJS)\client_client.obj
36 SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
37 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
39 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
40 SERVER_OBJECTS = \
41 $(OBJS)\server_server.obj
42
43 ### Conditionally set variables: ###
44
45 !if "$(USE_GUI)" == "0"
46 PORTNAME = base
47 !endif
48 !if "$(USE_GUI)" == "1"
49 PORTNAME = msw
50 !endif
51 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
52 WXDEBUGFLAG = d
53 !endif
54 !if "$(DEBUG_FLAG)" == "1"
55 WXDEBUGFLAG = d
56 !endif
57 !if "$(UNICODE)" == "1"
58 WXUNICODEFLAG = u
59 !endif
60 !if "$(WXUNIV)" == "1"
61 WXUNIVNAME = univ
62 !endif
63 !if "$(SHARED)" == "1"
64 WXDLLFLAG = dll
65 !endif
66 !if "$(SHARED)" == "0"
67 LIBTYPE_SUFFIX = lib
68 !endif
69 !if "$(SHARED)" == "1"
70 LIBTYPE_SUFFIX = dll
71 !endif
72 !if "$(MONOLITHIC)" == "0"
73 EXTRALIBS_FOR_BASE =
74 !endif
75 !if "$(MONOLITHIC)" == "1"
76 EXTRALIBS_FOR_BASE =
77 !endif
78 !if "$(BUILD)" == "debug"
79 __OPTIMIZEFLAG = -Od
80 !endif
81 !if "$(BUILD)" == "release"
82 __OPTIMIZEFLAG = -O2
83 !endif
84 !if "$(RUNTIME_LIBS)" == "dynamic"
85 __RUNTIME_LIBS = -tWR
86 !endif
87 !if "$(RUNTIME_LIBS)" == "static"
88 __RUNTIME_LIBS =
89 !endif
90 !if "$(RUNTIME_LIBS)" == "dynamic"
91 __RUNTIME_LIBS_0 = i
92 !endif
93 !if "$(RUNTIME_LIBS)" == "static"
94 __RUNTIME_LIBS_0 =
95 !endif
96 !if "$(WXUNIV)" == "1"
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
98 !endif
99 !if "$(WXUNIV)" == "1"
100 __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__
101 !endif
102 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
103 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 !endif
105 !if "$(DEBUG_FLAG)" == "1"
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 !endif
108 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
109 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
110 !endif
111 !if "$(DEBUG_FLAG)" == "1"
112 __DEBUG_DEFINE_p_0 = -d__WXDEBUG__
113 !endif
114 !if "$(UNICODE)" == "1"
115 __UNICODE_DEFINE_p = -D_UNICODE
116 !endif
117 !if "$(UNICODE)" == "1"
118 __UNICODE_DEFINE_p_0 = -d_UNICODE
119 !endif
120 !if "$(SHARED)" == "1"
121 __DLLFLAG_p = -DWXUSINGDLL
122 !endif
123 !if "$(SHARED)" == "1"
124 __DLLFLAG_p_0 = -dWXUSINGDLL
125 !endif
126 !if "$(MONOLITHIC)" == "0"
127 __WXLIB_CORE_p = \
128 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
129 !endif
130 !if "$(MONOLITHIC)" == "0"
131 __WXLIB_NET_p = \
132 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib
133 !endif
134 !if "$(MONOLITHIC)" == "0"
135 __WXLIB_BASE_p = \
136 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
137 !endif
138 !if "$(MONOLITHIC)" == "1"
139 __WXLIB_MONO_p = \
140 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
141 !endif
142 !if "$(USE_GUI)" == "1"
143 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
144 !endif
145 !if "$(USE_GUI)" == "1"
146 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
147 !endif
148 !if "$(USE_GUI)" == "1"
149 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
150 !endif
151 !if "$(MSLU)" == "1"
152 __UNICOWS_LIB_p = unicows.lib
153 !endif
154 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
155 __DEBUGINFO = -v
156 !endif
157 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
158 __DEBUGINFO = -v-
159 !endif
160 !if "$(DEBUG_INFO)" == "0"
161 __DEBUGINFO = -v-
162 !endif
163 !if "$(DEBUG_INFO)" == "1"
164 __DEBUGINFO = -v
165 !endif
166
167
168 all: $(OBJS)
169 $(OBJS):
170 -if not exist $(OBJS) mkdir $(OBJS)
171
172 ### Targets: ###
173
174 all: $(OBJS)\client.exe $(OBJS)\server.exe
175
176 clean:
177 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
178 -if exist $(OBJS)\*.res del $(OBJS)\*.res
179 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
180 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
181 -if exist $(OBJS)\client.tds del $(OBJS)\client.tds
182 -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc
183 -if exist $(OBJS)\client.ild del $(OBJS)\client.ild
184 -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf
185 -if exist $(OBJS)\client.ils del $(OBJS)\client.ils
186 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
187 -if exist $(OBJS)\server.tds del $(OBJS)\server.tds
188 -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc
189 -if exist $(OBJS)\server.ild del $(OBJS)\server.ild
190 -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf
191 -if exist $(OBJS)\server.ils del $(OBJS)\server.ils
192
193 $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client.res
194 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
195 c0w32.obj $(CLIENT_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_NET_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_0).lib,, $(OBJS)\client_client.res
196 |
197
198 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server.res
199 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
200 c0w32.obj $(SERVER_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_NET_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_0).lib,, $(OBJS)\server_server.res
201 |
202
203 $(OBJS)\client_client.obj: .\client.cpp
204 $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $**
205
206 $(OBJS)\client_client.res: .\client.rc
207 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH $**
208
209 $(OBJS)\server_server.obj: .\server.cpp
210 $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $**
211
212 $(OBJS)\server_server.res: .\server.rc
213 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_0) -i.\..\..\samples -dNOPCH $**
214