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