]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
21 | CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
22 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
b14abf14 JS |
23 | -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \ |
24 | -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \ | |
25 | $(CPPFLAGS) $(CXXFLAGS) | |
d179e30b VS |
26 | CLIENT_OBJECTS = \ |
27 | $(OBJS)\client_sample_rc.o \ | |
28 | $(OBJS)\client_client.o | |
9bfe7ad9 VS |
29 | SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
30 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
b14abf14 JS |
31 | -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \ |
32 | -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \ | |
33 | $(CPPFLAGS) $(CXXFLAGS) | |
d179e30b VS |
34 | SERVER_OBJECTS = \ |
35 | $(OBJS)\server_sample_rc.o \ | |
36 | $(OBJS)\server_server.o | |
3b20263d VS |
37 | |
38 | ### Conditionally set variables: ### | |
39 | ||
250700e4 RD |
40 | ifeq ($(GCC_VERSION),2.95) |
41 | GCCFLAGS = -fvtable-thunks | |
42 | endif | |
3b20263d VS |
43 | ifeq ($(USE_GUI),0) |
44 | PORTNAME = base | |
45 | endif | |
46 | ifeq ($(USE_GUI),1) | |
47 | PORTNAME = msw | |
48 | endif | |
49 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
50 | ifeq ($(DEBUG_FLAG),default) |
51 | WXDEBUGFLAG = d | |
52 | endif | |
53 | endif | |
54 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
55 | WXDEBUGFLAG = d |
56 | endif | |
3b20263d VS |
57 | ifeq ($(UNICODE),1) |
58 | WXUNICODEFLAG = u | |
59 | endif | |
60 | ifeq ($(WXUNIV),1) | |
61 | WXUNIVNAME = univ | |
62 | endif | |
b17c1746 DE |
63 | ifeq ($(SHARED),1) |
64 | WXDLLFLAG = dll | |
076f10e0 | 65 | endif |
b14abf14 JS |
66 | ifeq ($(SHARED),0) |
67 | LIBTYPE_SUFFIX = lib | |
68 | endif | |
69 | ifeq ($(SHARED),1) | |
70 | LIBTYPE_SUFFIX = dll | |
71 | endif | |
dd65d8c8 RN |
72 | ifeq ($(MONOLITHIC),0) |
73 | EXTRALIBS_FOR_BASE = | |
74 | endif | |
75 | ifeq ($(MONOLITHIC),1) | |
76 | EXTRALIBS_FOR_BASE = | |
77 | endif | |
b17c1746 DE |
78 | ifeq ($(BUILD),debug) |
79 | __OPTIMIZEFLAG = -O0 | |
250700e4 RD |
80 | endif |
81 | ifeq ($(BUILD),release) | |
b17c1746 | 82 | __OPTIMIZEFLAG = -O2 |
076f10e0 | 83 | endif |
b17c1746 DE |
84 | ifeq ($(USE_EXCEPTIONS),0) |
85 | __EXCEPTIONSFLAG = -fno-rtti | |
076f10e0 | 86 | endif |
b17c1746 DE |
87 | ifeq ($(USE_EXCEPTIONS),1) |
88 | __EXCEPTIONSFLAG = | |
076f10e0 | 89 | endif |
b17c1746 DE |
90 | ifeq ($(USE_EXCEPTIONS),0) |
91 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
92 | endif | |
93 | ifeq ($(USE_EXCEPTIONS),1) | |
94 | __EXCEPTIONSFLAG_0 = | |
95 | endif | |
96 | ifeq ($(WXUNIV),1) | |
97 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
98 | endif | |
99 | ifeq ($(WXUNIV),1) | |
100 | __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__ | |
250700e4 RD |
101 | endif |
102 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
103 | ifeq ($(DEBUG_FLAG),default) |
104 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
105 | endif | |
106 | endif | |
107 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
108 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
109 | endif | |
110 | ifeq ($(BUILD),debug) | |
076f10e0 | 111 | ifeq ($(DEBUG_FLAG),default) |
d179e30b | 112 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
076f10e0 VS |
113 | endif |
114 | endif | |
115 | ifeq ($(DEBUG_FLAG),1) | |
d179e30b | 116 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
3b20263d | 117 | endif |
b17c1746 DE |
118 | ifeq ($(UNICODE),1) |
119 | __UNICODE_DEFINE_p = -D_UNICODE | |
120 | endif | |
121 | ifeq ($(UNICODE),1) | |
122 | __UNICODE_DEFINE_p_0 = --define _UNICODE | |
123 | endif | |
3b20263d VS |
124 | ifeq ($(SHARED),1) |
125 | __DLLFLAG_p = -DWXUSINGDLL | |
126 | endif | |
127 | ifeq ($(SHARED),1) | |
d179e30b | 128 | __DLLFLAG_p_0 = --define WXUSINGDLL |
3b20263d | 129 | endif |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),0) |
131 | __WXLIB_CORE_p = \ | |
c33fae85 | 132 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 133 | endif |
b17c1746 | 134 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
135 | __WXLIB_NET_p = \ |
136 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net | |
b71531ad | 137 | endif |
b17c1746 | 138 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
139 | __WXLIB_BASE_p = \ |
140 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 141 | endif |
b17c1746 DE |
142 | ifeq ($(MONOLITHIC),1) |
143 | __WXLIB_MONO_p = \ | |
c33fae85 | 144 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 145 | endif |
076f10e0 | 146 | ifeq ($(USE_GUI),1) |
9c2d002b | 147 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
076f10e0 VS |
148 | endif |
149 | ifeq ($(USE_GUI),1) | |
9c2d002b | 150 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
076f10e0 VS |
151 | endif |
152 | ifeq ($(USE_GUI),1) | |
9c2d002b | 153 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 154 | endif |
4e209a20 VS |
155 | ifeq ($(MSLU),1) |
156 | __UNICOWS_LIB_p = -lunicows | |
157 | endif | |
b17c1746 DE |
158 | ifeq ($(BUILD),debug) |
159 | ifeq ($(DEBUG_INFO),default) | |
160 | __DEBUGINFO = -g | |
3b20263d | 161 | endif |
3b20263d | 162 | endif |
b17c1746 DE |
163 | ifeq ($(BUILD),release) |
164 | ifeq ($(DEBUG_INFO),default) | |
165 | __DEBUGINFO = | |
3b20263d | 166 | endif |
d179e30b | 167 | endif |
b17c1746 DE |
168 | ifeq ($(DEBUG_INFO),0) |
169 | __DEBUGINFO = | |
3b20263d | 170 | endif |
b17c1746 DE |
171 | ifeq ($(DEBUG_INFO),1) |
172 | __DEBUGINFO = -g | |
3b20263d VS |
173 | endif |
174 | ||
175 | ||
176 | all: $(OBJS) | |
177 | $(OBJS): | |
178 | -if not exist $(OBJS) mkdir $(OBJS) | |
179 | ||
180 | ### Targets: ### | |
181 | ||
d179e30b VS |
182 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
183 | ||
3b20263d VS |
184 | clean: |
185 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
d179e30b VS |
186 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
187 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
188 | ||
189 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o | |
dd65d8c8 | 190 | $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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 |
3b20263d | 191 | |
d179e30b | 192 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o |
dd65d8c8 | 193 | $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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 |
3b20263d | 194 | |
b17c1746 | 195 | $(OBJS)\client_sample_rc.o: ./../../samples/sample.rc |
b14abf14 | 196 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples |
b17c1746 DE |
197 | |
198 | $(OBJS)\client_client.o: ./client.cpp | |
199 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $< | |
200 | ||
201 | $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc | |
b14abf14 | 202 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_0) $(__DEBUG_DEFINE_p_0) $(__UNICODE_DEFINE_p_0) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples |
b17c1746 DE |
203 | |
204 | $(OBJS)\server_server.o: ./server.cpp | |
205 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $< | |
206 | ||
250700e4 | 207 | .PHONY: all clean |
b14abf14 | 208 |