]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/makefile.gcc
Don't try to open clipboard if already open
[wxWidgets.git] / samples / sockets / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 27
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W \
26 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 CLIENT_OBJECTS = \
29 $(OBJS)\client_client.o \
30 $(OBJS)\client_client_rc.o
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) \
34 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W \
35 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
36 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
37 SERVER_OBJECTS = \
38 $(OBJS)\server_server.o \
39 $(OBJS)\server_server_rc.o
40
41 ### Conditionally set variables: ###
42
43 ifeq ($(GCC_VERSION),2.95)
44 GCCFLAGS = -fvtable-thunks
45 endif
46 ifeq ($(USE_GUI),0)
47 PORTNAME = base
48 endif
49 ifeq ($(USE_GUI),1)
50 PORTNAME = msw
51 endif
52 ifeq ($(BUILD),debug)
53 ifeq ($(DEBUG_FLAG),default)
54 WXDEBUGFLAG = d
55 endif
56 endif
57 ifeq ($(DEBUG_FLAG),1)
58 WXDEBUGFLAG = d
59 endif
60 ifeq ($(UNICODE),1)
61 WXUNICODEFLAG = u
62 endif
63 ifeq ($(WXUNIV),1)
64 WXUNIVNAME = univ
65 endif
66 ifeq ($(SHARED),1)
67 WXDLLFLAG = dll
68 endif
69 ifeq ($(SHARED),0)
70 LIBTYPE_SUFFIX = lib
71 endif
72 ifeq ($(SHARED),1)
73 LIBTYPE_SUFFIX = dll
74 endif
75 ifeq ($(MONOLITHIC),0)
76 EXTRALIBS_FOR_BASE =
77 endif
78 ifeq ($(MONOLITHIC),1)
79 EXTRALIBS_FOR_BASE =
80 endif
81 ifeq ($(BUILD),debug)
82 __OPTIMIZEFLAG = -O0
83 endif
84 ifeq ($(BUILD),release)
85 __OPTIMIZEFLAG = -O2
86 endif
87 ifeq ($(USE_RTTI),0)
88 __RTTIFLAG = -fno-rtti
89 endif
90 ifeq ($(USE_RTTI),1)
91 __RTTIFLAG =
92 endif
93 ifeq ($(USE_EXCEPTIONS),0)
94 __EXCEPTIONSFLAG = -fno-exceptions
95 endif
96 ifeq ($(USE_EXCEPTIONS),1)
97 __EXCEPTIONSFLAG =
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__
104 endif
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 endif
109 endif
110 ifeq ($(DEBUG_FLAG),1)
111 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 endif
113 ifeq ($(BUILD),debug)
114 ifeq ($(DEBUG_FLAG),default)
115 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
116 endif
117 endif
118 ifeq ($(DEBUG_FLAG),1)
119 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
120 endif
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
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
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
151 ifeq ($(SHARED),1)
152 __DLLFLAG_p = -DWXUSINGDLL
153 endif
154 ifeq ($(SHARED),1)
155 __DLLFLAG_p_0 = --define WXUSINGDLL
156 endif
157 ifeq ($(MONOLITHIC),0)
158 __WXLIB_CORE_p = \
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
160 endif
161 ifeq ($(MONOLITHIC),0)
162 __WXLIB_NET_p = \
163 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
164 endif
165 ifeq ($(MONOLITHIC),0)
166 __WXLIB_BASE_p = \
167 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
168 endif
169 ifeq ($(MONOLITHIC),1)
170 __WXLIB_MONO_p = \
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
172 endif
173 ifeq ($(USE_GUI),1)
174 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
175 endif
176 ifeq ($(USE_GUI),1)
177 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
178 endif
179 ifeq ($(USE_GUI),1)
180 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
181 endif
182 ifeq ($(MSLU),1)
183 __UNICOWS_LIB_p = -lunicows
184 endif
185 ifeq ($(BUILD),debug)
186 ifeq ($(DEBUG_INFO),default)
187 __DEBUGINFO = -g
188 endif
189 endif
190 ifeq ($(BUILD),release)
191 ifeq ($(DEBUG_INFO),default)
192 __DEBUGINFO =
193 endif
194 endif
195 ifeq ($(DEBUG_INFO),0)
196 __DEBUGINFO =
197 endif
198 ifeq ($(DEBUG_INFO),1)
199 __DEBUGINFO = -g
200 endif
201 ifeq ($(USE_THREADS),0)
202 __THREADSFLAG =
203 endif
204 ifeq ($(USE_THREADS),1)
205 __THREADSFLAG = -mthreads
206 endif
207
208
209 all: $(OBJS)
210 $(OBJS):
211 -if not exist $(OBJS) mkdir $(OBJS)
212
213 ### Targets: ###
214
215 all: $(OBJS)\client.exe $(OBJS)\server.exe
216
217 clean:
218 -if exist $(OBJS)\*.o del $(OBJS)\*.o
219 -if exist $(OBJS)\*.d del $(OBJS)\*.d
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
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
225
226 $(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_server_rc.o
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
228
229 $(OBJS)\client_client.o: ./client.cpp
230 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
231
232 $(OBJS)\client_client_rc.o: ./client.rc
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 ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
234
235 $(OBJS)\server_server.o: ./server.cpp
236 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
237
238 $(OBJS)\server_server_rc.o: ./server.rc
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 ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples --define NOPCH
240
241 .PHONY: all clean
242
243
244 # Dependencies tracking:
245 -include $(OBJS)/*.d