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