]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (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 | ||
9bfe7ad9 VS |
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) | |
d179e30b VS |
28 | CLIENT_OBJECTS = \ |
29 | $(OBJS)\client_client.obj | |
250700e4 RD |
30 | OBJS = \ |
31 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
9bfe7ad9 VS |
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) | |
d179e30b VS |
36 | SERVER_OBJECTS = \ |
37 | $(OBJS)\server_server.obj | |
75a0a7b7 VS |
38 | SETUPHDIR = \ |
39 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
250700e4 RD |
40 | |
41 | ### Conditionally set variables: ### | |
42 | ||
75a0a7b7 VS |
43 | !if "$(SHARED)" == "0" |
44 | LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG) | |
45 | !endif | |
46 | !if "$(SHARED)" == "1" | |
47 | LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG) | |
48 | !endif | |
250700e4 RD |
49 | !if "$(USE_GUI)" == "0" |
50 | PORTNAME = base | |
51 | !endif | |
52 | !if "$(USE_GUI)" == "1" | |
53 | PORTNAME = msw | |
54 | !endif | |
076f10e0 VS |
55 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
56 | WXDEBUGFLAG = d | |
57 | !endif | |
58 | !if "$(DEBUG_FLAG)" == "1" | |
250700e4 RD |
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 | |
076f10e0 VS |
70 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
71 | __DEBUGINFO = -v | |
250700e4 | 72 | !endif |
076f10e0 VS |
73 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
74 | __DEBUGINFO = -v- | |
250700e4 | 75 | !endif |
076f10e0 VS |
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" | |
250700e4 RD |
83 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
84 | !endif | |
076f10e0 VS |
85 | !if "$(DEBUG_FLAG)" == "1" |
86 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
87 | !endif | |
88 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
d179e30b | 89 | __DEBUG_DEFINE_p_0 = -d__WXDEBUG__ |
076f10e0 VS |
90 | !endif |
91 | !if "$(DEBUG_FLAG)" == "1" | |
d179e30b | 92 | __DEBUG_DEFINE_p_0 = -d__WXDEBUG__ |
250700e4 RD |
93 | !endif |
94 | !if "$(SHARED)" == "1" | |
95 | __DLLFLAG_p = -DWXUSINGDLL | |
96 | !endif | |
97 | !if "$(SHARED)" == "1" | |
d179e30b | 98 | __DLLFLAG_p_0 = -dWXUSINGDLL |
250700e4 | 99 | !endif |
076f10e0 VS |
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 | |
250700e4 | 109 | !if "$(BUILD)" == "debug" |
d179e30b | 110 | __OPTIMIZEFLAG = -Od |
250700e4 RD |
111 | !endif |
112 | !if "$(BUILD)" == "release" | |
d179e30b | 113 | __OPTIMIZEFLAG = -O2 |
250700e4 RD |
114 | !endif |
115 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b71531ad | 116 | __RUNTIME_LIBS = i |
250700e4 RD |
117 | !endif |
118 | !if "$(RUNTIME_LIBS)" == "static" | |
d179e30b | 119 | __RUNTIME_LIBS = |
250700e4 RD |
120 | !endif |
121 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b71531ad | 122 | __RUNTIME_LIBS_0 = -tWR |
250700e4 RD |
123 | !endif |
124 | !if "$(RUNTIME_LIBS)" == "static" | |
d179e30b | 125 | __RUNTIME_LIBS_0 = |
250700e4 RD |
126 | !endif |
127 | !if "$(UNICODE)" == "1" | |
ec08d395 | 128 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 RD |
129 | !endif |
130 | !if "$(UNICODE)" == "1" | |
ec08d395 | 131 | __UNICODE_DEFINE_p_0 = -d_UNICODE |
250700e4 | 132 | !endif |
4e209a20 VS |
133 | !if "$(MSLU)" == "1" |
134 | __UNICOWS_LIB_p = unicows.lib | |
135 | !endif | |
250700e4 RD |
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 | |
d179e30b VS |
147 | !if "$(MONOLITHIC)" == "0" |
148 | __WXLIB_NET_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net.lib | |
149 | !endif | |
250700e4 RD |
150 | !if "$(WXUNIV)" == "1" |
151 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
152 | !endif | |
153 | !if "$(WXUNIV)" == "1" | |
d179e30b | 154 | __WXUNIV_DEFINE_p_0 = -d__WXUNIVERSAL__ |
250700e4 RD |
155 | !endif |
156 | ||
157 | ||
158 | all: $(OBJS) | |
159 | $(OBJS): | |
160 | -if not exist $(OBJS) mkdir $(OBJS) | |
161 | ||
162 | ### Targets: ### | |
163 | ||
d179e30b VS |
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_sample.res: .\..\..\samples\sample.rc | |
ec08d395 | 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 $** |
250700e4 | 171 | |
d179e30b | 172 | $(OBJS)\server_sample.res: .\..\..\samples\sample.rc |
ec08d395 | 173 | 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 $** |
250700e4 | 174 | |
d179e30b VS |
175 | $(OBJS)\server_server.obj: .\server.cpp |
176 | $(CXX) -q -c -P -o$@ $(SERVER_CXXFLAGS) $** | |
250700e4 RD |
177 | |
178 | clean: | |
179 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
180 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
d179e30b | 181 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
ec08d395 JS |
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 | |
d179e30b | 187 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe |
ec08d395 JS |
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 | |
d179e30b VS |
193 | |
194 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample.res | |
9bfe7ad9 | 195 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
b71531ad | 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_sample.res |
d179e30b | 197 | | |
250700e4 | 198 | |
d179e30b | 199 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample.res |
9bfe7ad9 | 200 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| |
b71531ad | 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_sample.res |
250700e4 | 202 | | |