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