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