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