]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
9bfe7ad9 VS |
7 | .autodepend |
8 | ||
250700e4 | 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 | |
250700e4 RD |
13 | BCCDIR = $(MAKEDIR)\.. |
14 | !endif | |
15 | ||
fd9f42b6 | 16 | !include ../../build/msw/config.bcc |
250700e4 RD |
17 | |
18 | # ------------------------------------------------------------------------- | |
19 | # Do not modify the rest of this file! | |
20 | # ------------------------------------------------------------------------- | |
21 | ||
250700e4 RD |
22 | ### Variables: ### |
23 | ||
c33fae85 | 24 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
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) \ | |
9bfe7ad9 VS |
30 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
31 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \ | |
c33fae85 | 32 | -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) |
d179e30b VS |
33 | CLIENT_OBJECTS = \ |
34 | $(OBJS)\client_client.obj | |
b17c1746 | 35 | SERVER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
9bfe7ad9 VS |
36 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
37 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \ | |
c33fae85 | 38 | -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) |
d179e30b VS |
39 | SERVER_OBJECTS = \ |
40 | $(OBJS)\server_server.obj | |
250700e4 RD |
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 | |
076f10e0 VS |
50 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
51 | WXDEBUGFLAG = d | |
52 | !endif | |
53 | !if "$(DEBUG_FLAG)" == "1" | |
250700e4 RD |
54 | WXDEBUGFLAG = d |
55 | !endif | |
250700e4 RD |
56 | !if "$(UNICODE)" == "1" |
57 | WXUNICODEFLAG = u | |
58 | !endif | |
59 | !if "$(WXUNIV)" == "1" | |
60 | WXUNIVNAME = univ | |
61 | !endif | |
250700e4 | 62 | !if "$(SHARED)" == "1" |
b17c1746 | 63 | WXDLLFLAG = dll |
076f10e0 | 64 | !endif |
dd65d8c8 RN |
65 | !if "$(MONOLITHIC)" == "0" |
66 | EXTRALIBS_FOR_BASE = | |
67 | !endif | |
68 | !if "$(MONOLITHIC)" == "1" | |
69 | EXTRALIBS_FOR_BASE = | |
70 | !endif | |
250700e4 | 71 | !if "$(BUILD)" == "debug" |
d179e30b | 72 | __OPTIMIZEFLAG = -Od |
250700e4 RD |
73 | !endif |
74 | !if "$(BUILD)" == "release" | |
d179e30b | 75 | __OPTIMIZEFLAG = -O2 |
250700e4 RD |
76 | !endif |
77 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 78 | __RUNTIME_LIBS = -tWR |
250700e4 RD |
79 | !endif |
80 | !if "$(RUNTIME_LIBS)" == "static" | |
d179e30b | 81 | __RUNTIME_LIBS = |
250700e4 RD |
82 | !endif |
83 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 84 | __RUNTIME_LIBS_0 = i |
250700e4 RD |
85 | !endif |
86 | !if "$(RUNTIME_LIBS)" == "static" | |
d179e30b | 87 | __RUNTIME_LIBS_0 = |
250700e4 | 88 | !endif |
b17c1746 DE |
89 | !if "$(WXUNIV)" == "1" |
90 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
91 | !endif | |
92 | !if "$(WXUNIV)" == "1" | |
93 | __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__ | |
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 "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
102 | __DEBUG_DEFINE_p_0 = -d__WXDEBUG__ | |
103 | !endif | |
104 | !if "$(DEBUG_FLAG)" == "1" | |
105 | __DEBUG_DEFINE_p_0 = -d__WXDEBUG__ | |
106 | !endif | |
250700e4 | 107 | !if "$(UNICODE)" == "1" |
ec08d395 | 108 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 RD |
109 | !endif |
110 | !if "$(UNICODE)" == "1" | |
ec08d395 | 111 | __UNICODE_DEFINE_p_0 = -d_UNICODE |
250700e4 | 112 | !endif |
b17c1746 DE |
113 | !if "$(SHARED)" == "0" |
114 | LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG) | |
4e209a20 | 115 | !endif |
b17c1746 DE |
116 | !if "$(SHARED)" == "1" |
117 | LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG) | |
118 | !endif | |
119 | !if "$(SHARED)" == "1" | |
120 | __DLLFLAG_p = -DWXUSINGDLL | |
121 | !endif | |
122 | !if "$(SHARED)" == "1" | |
123 | __DLLFLAG_p_0 = -dWXUSINGDLL | |
250700e4 RD |
124 | !endif |
125 | !if "$(MONOLITHIC)" == "0" | |
126 | __WXLIB_CORE_p = \ | |
c33fae85 | 127 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
250700e4 | 128 | !endif |
b17c1746 | 129 | !if "$(MONOLITHIC)" == "0" |
c33fae85 RN |
130 | __WXLIB_NET_p = \ |
131 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net.lib | |
b17c1746 DE |
132 | !endif |
133 | !if "$(MONOLITHIC)" == "0" | |
c33fae85 RN |
134 | __WXLIB_BASE_p = \ |
135 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 | 136 | !endif |
250700e4 RD |
137 | !if "$(MONOLITHIC)" == "1" |
138 | __WXLIB_MONO_p = \ | |
c33fae85 | 139 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
250700e4 | 140 | !endif |
b17c1746 | 141 | !if "$(USE_GUI)" == "1" |
9c2d002b | 142 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
d179e30b | 143 | !endif |
b17c1746 | 144 | !if "$(USE_GUI)" == "1" |
9c2d002b | 145 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
250700e4 | 146 | !endif |
b17c1746 | 147 | !if "$(USE_GUI)" == "1" |
9c2d002b | 148 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
149 | !endif |
150 | !if "$(MSLU)" == "1" | |
151 | __UNICOWS_LIB_p = unicows.lib | |
152 | !endif | |
153 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
154 | __DEBUGINFO = -v | |
155 | !endif | |
156 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
157 | __DEBUGINFO = -v- | |
158 | !endif | |
159 | !if "$(DEBUG_INFO)" == "0" | |
160 | __DEBUGINFO = -v- | |
161 | !endif | |
162 | !if "$(DEBUG_INFO)" == "1" | |
163 | __DEBUGINFO = -v | |
250700e4 RD |
164 | !endif |
165 | ||
166 | ||
167 | all: $(OBJS) | |
168 | $(OBJS): | |
169 | -if not exist $(OBJS) mkdir $(OBJS) | |
170 | ||
171 | ### Targets: ### | |
172 | ||
d179e30b VS |
173 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
174 | ||
250700e4 RD |
175 | clean: |
176 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
177 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
d179e30b | 178 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
ec08d395 JS |
179 | -if exist $(OBJS)\client.tds del $(OBJS)\client.tds |
180 | -if exist $(OBJS)\client.ilc del $(OBJS)\client.ilc | |
181 | -if exist $(OBJS)\client.ild del $(OBJS)\client.ild | |
182 | -if exist $(OBJS)\client.ilf del $(OBJS)\client.ilf | |
183 | -if exist $(OBJS)\client.ils del $(OBJS)\client.ils | |
d179e30b | 184 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe |
ec08d395 JS |
185 | -if exist $(OBJS)\server.tds del $(OBJS)\server.tds |
186 | -if exist $(OBJS)\server.ilc del $(OBJS)\server.ilc | |
187 | -if exist $(OBJS)\server.ild del $(OBJS)\server.ild | |
188 | -if exist $(OBJS)\server.ilf del $(OBJS)\server.ilf | |
189 | -if exist $(OBJS)\server.ils del $(OBJS)\server.ils | |
d179e30b VS |
190 | |
191 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res | |
9bfe7ad9 | 192 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
dd65d8c8 | 193 | 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_sample.res |
d179e30b | 194 | | |
250700e4 | 195 | |
d179e30b | 196 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res |
9bfe7ad9 | 197 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
dd65d8c8 | 198 | 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_sample.res |
250700e4 | 199 | | |
b17c1746 DE |
200 | |
201 | $(OBJS)\client_sample.res: .\..\..\samples\sample.rc | |
202 | 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 $** | |
203 | ||
204 | $(OBJS)\client_client.obj: .\client.cpp | |
205 | $(CXX) -q -c -P -o$@ $(CLIENT_CXXFLAGS) $** | |
206 | ||
207 | $(OBJS)\server_sample.res: .\..\..\samples\sample.rc | |
208 | 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 $** | |
209 | ||
210 | $(OBJS)\server_server.obj: .\server.cpp | |
211 | $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $** |