]>
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 | ||
d179e30b | 15 | CLIENT_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
076f10e0 | 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) | |
d179e30b VS |
20 | CLIENT_OBJECTS = \ |
21 | $(OBJS)\client_sample_rc.o \ | |
22 | $(OBJS)\client_client.o | |
076f10e0 VS |
23 | OBJS = \ |
24 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
d179e30b VS |
25 | SERVER_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
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) | |
d179e30b VS |
30 | SERVER_OBJECTS = \ |
31 | $(OBJS)\server_sample_rc.o \ | |
32 | $(OBJS)\server_server.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) | |
076f10e0 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) | |
076f10e0 VS |
71 | ifeq ($(DEBUG_INFO),default) |
72 | __DEBUGINFO = -g | |
73 | endif | |
250700e4 RD |
74 | endif |
75 | ifeq ($(BUILD),release) | |
076f10e0 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) | |
076f10e0 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) | |
076f10e0 | 95 | ifeq ($(DEBUG_FLAG),default) |
d179e30b | 96 | __DEBUG_DEFINE_p_0 = --define __WXDEBUG__ |
076f10e0 VS |
97 | endif |
98 | endif | |
99 | ifeq ($(DEBUG_FLAG),1) | |
d179e30b | 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) | |
d179e30b | 106 | __DLLFLAG_p_0 = --define WXUSINGDLL |
3b20263d | 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 | |
076f10e0 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 | 129 | ifeq ($(BUILD),debug) |
d179e30b | 130 | __OPTIMIZEFLAG = -O0 |
250700e4 RD |
131 | endif |
132 | ifeq ($(BUILD),release) | |
d179e30b | 133 | __OPTIMIZEFLAG = -O2 |
250700e4 | 134 | endif |
3b20263d | 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) | |
076f10e0 VS |
148 | __WXLIB_CORE_p = \ |
149 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
3b20263d VS |
150 | endif |
151 | ifeq ($(MONOLITHIC),1) | |
076f10e0 VS |
152 | __WXLIB_MONO_p = \ |
153 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
3b20263d | 154 | endif |
d179e30b VS |
155 | ifeq ($(MONOLITHIC),0) |
156 | __WXLIB_NET_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net | |
157 | endif | |
3b20263d VS |
158 | ifeq ($(WXUNIV),1) |
159 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
160 | endif | |
161 | ifeq ($(WXUNIV),1) | |
d179e30b | 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 | ||
d179e30b VS |
172 | all: $(OBJS)\client.exe $(OBJS)\server.exe |
173 | ||
1c3a6972 | 174 | $(OBJS)\client_client.o: ./client.cpp |
d179e30b | 175 | $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $< |
3b20263d | 176 | |
1c3a6972 | 177 | $(OBJS)\client_sample_rc.o: ./../../samples/sample.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 |
3b20263d | 179 | |
1c3a6972 | 180 | $(OBJS)\server_sample_rc.o: ./../../samples/sample.rc |
ec08d395 | 181 | 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 |
d179e30b | 182 | |
1c3a6972 | 183 | $(OBJS)\server_server.o: ./server.cpp |
d179e30b | 184 | $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $< |
3b20263d VS |
185 | |
186 | clean: | |
187 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
d179e30b VS |
188 | -if exist $(OBJS)\client.exe del $(OBJS)\client.exe |
189 | -if exist $(OBJS)\server.exe del $(OBJS)\server.exe | |
190 | ||
191 | $(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_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 | |
d179e30b | 194 | $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_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 |