]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
77a7dfc1 | 3 | # Bakefile 0.2.0 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
4cbcfb73 | 16 | WX_RELEASE_NODOT = 27 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \ |
23 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
24 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
77a7dfc1 | 25 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W \ |
2113bc77 MW |
26 | -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \ |
27 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
e9877ed3 VS |
28 | CLIENT_OBJECTS = \ |
29 | $(OBJS)\client_client.o \ | |
30 | $(OBJS)\client_client_rc.o | |
8c9f8f91 JS |
31 | SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \ |
32 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
33 | $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \ | |
77a7dfc1 | 34 | $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W \ |
2113bc77 MW |
35 | -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \ |
36 | $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
e9877ed3 VS |
37 | SERVER_OBJECTS = \ |
38 | $(OBJS)\server_server.o \ | |
39 | $(OBJS)\server_server_rc.o | |
3b20263d VS |
40 | |
41 | ### Conditionally set variables: ### | |
42 | ||
250700e4 RD |
43 | ifeq ($(GCC_VERSION),2.95) |
44 | GCCFLAGS = -fvtable-thunks | |
45 | endif | |
3b20263d VS |
46 | ifeq ($(USE_GUI),0) |
47 | PORTNAME = base | |
48 | endif | |
49 | ifeq ($(USE_GUI),1) | |
50 | PORTNAME = msw | |
51 | endif | |
52 | ifeq ($(BUILD),debug) | |
25a73439 VS |
53 | ifeq ($(DEBUG_FLAG),default) |
54 | WXDEBUGFLAG = d | |
55 | endif | |
56 | endif | |
57 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
58 | WXDEBUGFLAG = d |
59 | endif | |
3b20263d VS |
60 | ifeq ($(UNICODE),1) |
61 | WXUNICODEFLAG = u | |
62 | endif | |
63 | ifeq ($(WXUNIV),1) | |
64 | WXUNIVNAME = univ | |
65 | endif | |
b17c1746 DE |
66 | ifeq ($(SHARED),1) |
67 | WXDLLFLAG = dll | |
25a73439 | 68 | endif |
b14abf14 JS |
69 | ifeq ($(SHARED),0) |
70 | LIBTYPE_SUFFIX = lib | |
71 | endif | |
72 | ifeq ($(SHARED),1) | |
73 | LIBTYPE_SUFFIX = dll | |
74 | endif | |
dd65d8c8 RN |
75 | ifeq ($(MONOLITHIC),0) |
76 | EXTRALIBS_FOR_BASE = | |
77 | endif | |
78 | ifeq ($(MONOLITHIC),1) | |
79 | EXTRALIBS_FOR_BASE = | |
80 | endif | |
b17c1746 DE |
81 | ifeq ($(BUILD),debug) |
82 | __OPTIMIZEFLAG = -O0 | |
250700e4 RD |
83 | endif |
84 | ifeq ($(BUILD),release) | |
b17c1746 | 85 | __OPTIMIZEFLAG = -O2 |
25a73439 | 86 | endif |
8c9f8f91 JS |
87 | ifeq ($(USE_RTTI),0) |
88 | __RTTIFLAG = -fno-rtti | |
25a73439 | 89 | endif |
8c9f8f91 JS |
90 | ifeq ($(USE_RTTI),1) |
91 | __RTTIFLAG = | |
25a73439 | 92 | endif |
b17c1746 | 93 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 94 | __EXCEPTIONSFLAG = -fno-exceptions |
b17c1746 DE |
95 | endif |
96 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 97 | __EXCEPTIONSFLAG = |
b17c1746 DE |
98 | endif |
99 | ifeq ($(WXUNIV),1) | |
100 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
101 | endif | |
102 | ifeq ($(WXUNIV),1) | |
103 | __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__ | |
250700e4 RD |
104 | endif |
105 | ifeq ($(BUILD),debug) | |
25a73439 VS |
106 | ifeq ($(DEBUG_FLAG),default) |
107 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
108 | endif | |
109 | endif | |
110 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
111 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
112 | endif | |
113 | ifeq ($(BUILD),debug) | |
25a73439 VS |
114 | ifeq ($(DEBUG_FLAG),default) |
115 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ | |
116 | endif | |
117 | endif | |
118 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 | 119 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
3b20263d | 120 | endif |
8c9f8f91 JS |
121 | ifeq ($(USE_EXCEPTIONS),0) |
122 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
123 | endif | |
124 | ifeq ($(USE_EXCEPTIONS),0) | |
125 | __EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS | |
126 | endif | |
127 | ifeq ($(USE_RTTI),0) | |
128 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
129 | endif | |
130 | ifeq ($(USE_RTTI),0) | |
131 | __RTTI_DEFINE_p_0 = --define wxNO_RTTI | |
132 | endif | |
133 | ifeq ($(USE_THREADS),0) | |
134 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
135 | endif | |
136 | ifeq ($(USE_THREADS),0) | |
137 | __THREAD_DEFINE_p_0 = --define wxNO_THREADS | |
138 | endif | |
b17c1746 DE |
139 | ifeq ($(UNICODE),1) |
140 | __UNICODE_DEFINE_p = -D_UNICODE | |
141 | endif | |
142 | ifeq ($(UNICODE),1) | |
143 | __UNICODE_DEFINE_p_0 = --define _UNICODE | |
144 | endif | |
2113bc77 MW |
145 | ifeq ($(MSLU),1) |
146 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
147 | endif | |
148 | ifeq ($(MSLU),1) | |
149 | __MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1 | |
150 | endif | |
3b20263d VS |
151 | ifeq ($(SHARED),1) |
152 | __DLLFLAG_p = -DWXUSINGDLL | |
153 | endif | |
154 | ifeq ($(SHARED),1) | |
250700e4 RD |
155 | __DLLFLAG_p_0 = --define WXUSINGDLL |
156 | endif | |
b17c1746 DE |
157 | ifeq ($(MONOLITHIC),0) |
158 | __WXLIB_CORE_p = \ | |
c33fae85 | 159 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 160 | endif |
b17c1746 | 161 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
162 | __WXLIB_NET_p = \ |
163 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
b71531ad | 164 | endif |
b17c1746 | 165 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
166 | __WXLIB_BASE_p = \ |
167 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 168 | endif |
b17c1746 DE |
169 | ifeq ($(MONOLITHIC),1) |
170 | __WXLIB_MONO_p = \ | |
c33fae85 | 171 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 172 | endif |
e9877ed3 | 173 | ifeq ($(USE_GUI),1) |
9c2d002b | 174 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
e9877ed3 VS |
175 | endif |
176 | ifeq ($(USE_GUI),1) | |
9c2d002b | 177 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
e9877ed3 VS |
178 | endif |
179 | ifeq ($(USE_GUI),1) | |
9c2d002b | 180 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 181 | endif |
4e209a20 VS |
182 | ifeq ($(MSLU),1) |
183 | __UNICOWS_LIB_p = -lunicows | |
184 | endif | |
b17c1746 DE |
185 | ifeq ($(BUILD),debug) |
186 | ifeq ($(DEBUG_INFO),default) | |
187 | __DEBUGINFO = -g | |
3b20263d | 188 | endif |
3b20263d | 189 | endif |
b17c1746 DE |
190 | ifeq ($(BUILD),release) |
191 | ifeq ($(DEBUG_INFO),default) | |
192 | __DEBUGINFO = | |
e9877ed3 | 193 | endif |
3b20263d | 194 | endif |
b17c1746 DE |
195 | ifeq ($(DEBUG_INFO),0) |
196 | __DEBUGINFO = | |
3b20263d | 197 | endif |
b17c1746 DE |
198 | ifeq ($(DEBUG_INFO),1) |
199 | __DEBUGINFO = -g | |
3b20263d | 200 | endif |
8c9f8f91 JS |
201 | ifeq ($(USE_THREADS),0) |
202 | __THREADSFLAG = | |
203 | endif | |
204 | ifeq ($(USE_THREADS),1) | |
205 | __THREADSFLAG = -mthreads | |
206 | endif | |
3b20263d VS |
207 | |
208 | ||
209 | all: $(OBJS) | |
210 | $(OBJS): | |
211 | -if not exist $(OBJS) mkdir $(OBJS) | |
212 | ||
213 | ### Targets: ### | |
214 | ||
250700e4 | 215 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
3b20263d | 216 | |
b17c1746 DE |
217 | clean: |
218 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 219 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
220 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
221 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
222 | ||
223 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_client_rc.o | |
8c9f8f91 | 224 | $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 DE |
225 | |
226 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o | |
8c9f8f91 | 227 | $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 228 | |
1c3a6972 | 229 | $(OBJS)\client_client.o: ./client.cpp |
0d90d6ea | 230 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 231 | |
1c3a6972 | 232 | $(OBJS)\client_client_rc.o: ./client.rc |
77a7dfc1 | 233 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH |
250700e4 | 234 | |
1c3a6972 | 235 | $(OBJS)\server_server.o: ./server.cpp |
0d90d6ea | 236 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $< |
250700e4 | 237 | |
1c3a6972 | 238 | $(OBJS)\server_server_rc.o: ./server.rc |
77a7dfc1 | 239 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) $(__MSLU_DEFINE_p_0) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH |
3b20263d | 240 | |
250700e4 | 241 | .PHONY: all clean |
b14abf14 | 242 | |
8c9f8f91 | 243 | |
0d90d6ea JS |
244 | # Dependencies tracking: |
245 | -include $(OBJS)/*.d |