]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/ipc/makefile.gcc
i18n files are installed as part of wxBase (and should be ideally part of separate...
[wxWidgets.git] / samples / ipc / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 27
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22CLIENT_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$(SETUPHDIR) -I.\..\..\include -W \
26 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
27 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28CLIENT_OBJECTS = \
29 $(OBJS)\client_sample_rc.o \
30 $(OBJS)\client_client.o
31SERVER_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$(SETUPHDIR) -I.\..\..\include -W \
35 -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \
36 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
37SERVER_OBJECTS = \
38 $(OBJS)\server_sample_rc.o \
39 $(OBJS)\server_server.o
40
41### Conditionally set variables: ###
42
43ifeq ($(GCC_VERSION),2.95)
44GCCFLAGS = -fvtable-thunks
45endif
46ifeq ($(USE_GUI),0)
47PORTNAME = base
48endif
49ifeq ($(USE_GUI),1)
50PORTNAME = msw
51endif
52ifeq ($(BUILD),debug)
53ifeq ($(DEBUG_FLAG),default)
54WXDEBUGFLAG = d
55endif
56endif
57ifeq ($(DEBUG_FLAG),1)
58WXDEBUGFLAG = d
59endif
60ifeq ($(UNICODE),1)
61WXUNICODEFLAG = u
62endif
63ifeq ($(WXUNIV),1)
64WXUNIVNAME = univ
65endif
66ifeq ($(SHARED),1)
67WXDLLFLAG = dll
68endif
69ifeq ($(SHARED),0)
70LIBTYPE_SUFFIX = lib
71endif
72ifeq ($(SHARED),1)
73LIBTYPE_SUFFIX = dll
74endif
75ifeq ($(MONOLITHIC),0)
76EXTRALIBS_FOR_BASE =
77endif
78ifeq ($(MONOLITHIC),1)
79EXTRALIBS_FOR_BASE =
80endif
81ifeq ($(BUILD),debug)
82__OPTIMIZEFLAG = -O0
83endif
84ifeq ($(BUILD),release)
85__OPTIMIZEFLAG = -O2
86endif
87ifeq ($(USE_RTTI),0)
88__RTTIFLAG = -fno-rtti
89endif
90ifeq ($(USE_RTTI),1)
91__RTTIFLAG =
92endif
93ifeq ($(USE_EXCEPTIONS),0)
94__EXCEPTIONSFLAG = -fno-exceptions
95endif
96ifeq ($(USE_EXCEPTIONS),1)
97__EXCEPTIONSFLAG =
98endif
99ifeq ($(WXUNIV),1)
100__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
101endif
102ifeq ($(WXUNIV),1)
103__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p = -D__WXDEBUG__
112endif
113ifeq ($(BUILD),debug)
114ifeq ($(DEBUG_FLAG),default)
115__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
116endif
117endif
118ifeq ($(DEBUG_FLAG),1)
119__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
120endif
121ifeq ($(USE_EXCEPTIONS),0)
122__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
123endif
124ifeq ($(USE_EXCEPTIONS),0)
125__EXCEPTIONS_DEFINE_p_0 = --define wxNO_EXCEPTIONS
126endif
127ifeq ($(USE_RTTI),0)
128__RTTI_DEFINE_p = -DwxNO_RTTI
129endif
130ifeq ($(USE_RTTI),0)
131__RTTI_DEFINE_p_0 = --define wxNO_RTTI
132endif
133ifeq ($(USE_THREADS),0)
134__THREAD_DEFINE_p = -DwxNO_THREADS
135endif
136ifeq ($(USE_THREADS),0)
137__THREAD_DEFINE_p_0 = --define wxNO_THREADS
138endif
139ifeq ($(UNICODE),1)
140__UNICODE_DEFINE_p = -D_UNICODE
141endif
142ifeq ($(UNICODE),1)
143__UNICODE_DEFINE_p_0 = --define _UNICODE
144endif
145ifeq ($(MSLU),1)
146__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
147endif
148ifeq ($(MSLU),1)
149__MSLU_DEFINE_p_0 = --define wxUSE_UNICODE_MSLU=1
150endif
151ifeq ($(SHARED),1)
152__DLLFLAG_p = -DWXUSINGDLL
153endif
154ifeq ($(SHARED),1)
155__DLLFLAG_p_0 = --define WXUSINGDLL
156endif
157ifeq ($(MONOLITHIC),0)
158__WXLIB_CORE_p = \
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
160endif
161ifeq ($(MONOLITHIC),0)
162__WXLIB_NET_p = \
163 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
164endif
165ifeq ($(MONOLITHIC),0)
166__WXLIB_BASE_p = \
167 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
168endif
169ifeq ($(MONOLITHIC),1)
170__WXLIB_MONO_p = \
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
172endif
173ifeq ($(USE_GUI),1)
174__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
175endif
176ifeq ($(USE_GUI),1)
177__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
178endif
179ifeq ($(USE_GUI),1)
180__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
181endif
182ifeq ($(MSLU),1)
183__UNICOWS_LIB_p = -lunicows
184endif
185ifeq ($(BUILD),debug)
186ifeq ($(DEBUG_INFO),default)
187__DEBUGINFO = -g
188endif
189endif
190ifeq ($(BUILD),release)
191ifeq ($(DEBUG_INFO),default)
192__DEBUGINFO =
193endif
194endif
195ifeq ($(DEBUG_INFO),0)
196__DEBUGINFO =
197endif
198ifeq ($(DEBUG_INFO),1)
199__DEBUGINFO = -g
200endif
201ifeq ($(USE_THREADS),0)
202__THREADSFLAG =
203endif
204ifeq ($(USE_THREADS),1)
205__THREADSFLAG = -mthreads
206endif
207
208
209all: $(OBJS)
210$(OBJS):
211 -if not exist $(OBJS) mkdir $(OBJS)
212
213### Targets: ###
214
215all: $(OBJS)\client.exe $(OBJS)\server.exe
216
217clean:
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_sample_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_sample_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_sample_rc.o: ./../../samples/sample.rc
230 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 $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples
231
232$(OBJS)\client_client.o: ./client.cpp
233 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $(CPPDEPS) $<
234
235$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
236 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 $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_0) --include-dir ./../../samples
237
238$(OBJS)\server_server.o: ./server.cpp
239 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $(CPPDEPS) $<
240
241.PHONY: all clean
242
243
244# Dependencies tracking:
245-include $(OBJS)/*.d