]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/ipc/makefile.gcc
use wxDC::GetMultiLineTextExtent() instead of duplicating its code in wxButton::DoGet...
[wxWidgets.git] / samples / ipc / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.6 (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
15WX_RELEASE_NODOT = 25
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21CLIENT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
23 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
24 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
25 $(CPPFLAGS) $(CXXFLAGS)
26CLIENT_OBJECTS = \
27 $(OBJS)\client_sample_rc.o \
28 $(OBJS)\client_client.o
29SERVER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
30 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
31 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
32 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
33 $(CPPFLAGS) $(CXXFLAGS)
34SERVER_OBJECTS = \
35 $(OBJS)\server_sample_rc.o \
36 $(OBJS)\server_server.o
37
38### Conditionally set variables: ###
39
40ifeq ($(GCC_VERSION),2.95)
41GCCFLAGS = -fvtable-thunks
42endif
43ifeq ($(USE_GUI),0)
44PORTNAME = base
45endif
46ifeq ($(USE_GUI),1)
47PORTNAME = msw
48endif
49ifeq ($(BUILD),debug)
50ifeq ($(DEBUG_FLAG),default)
51WXDEBUGFLAG = d
52endif
53endif
54ifeq ($(DEBUG_FLAG),1)
55WXDEBUGFLAG = d
56endif
57ifeq ($(UNICODE),1)
58WXUNICODEFLAG = u
59endif
60ifeq ($(WXUNIV),1)
61WXUNIVNAME = univ
62endif
63ifeq ($(SHARED),1)
64WXDLLFLAG = dll
65endif
66ifeq ($(SHARED),0)
67LIBTYPE_SUFFIX = lib
68endif
69ifeq ($(SHARED),1)
70LIBTYPE_SUFFIX = dll
71endif
72ifeq ($(MONOLITHIC),0)
73EXTRALIBS_FOR_BASE =
74endif
75ifeq ($(MONOLITHIC),1)
76EXTRALIBS_FOR_BASE =
77endif
78ifeq ($(BUILD),debug)
79__OPTIMIZEFLAG = -O0
80endif
81ifeq ($(BUILD),release)
82__OPTIMIZEFLAG = -O2
83endif
84ifeq ($(USE_EXCEPTIONS),0)
85__EXCEPTIONSFLAG = -fno-rtti
86endif
87ifeq ($(USE_EXCEPTIONS),1)
88__EXCEPTIONSFLAG =
89endif
90ifeq ($(USE_EXCEPTIONS),0)
91__EXCEPTIONSFLAG_0 = -fno-exceptions
92endif
93ifeq ($(USE_EXCEPTIONS),1)
94__EXCEPTIONSFLAG_0 =
95endif
96ifeq ($(WXUNIV),1)
97__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
98endif
99ifeq ($(WXUNIV),1)
100__WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
101endif
102ifeq ($(BUILD),debug)
103ifeq ($(DEBUG_FLAG),default)
104__DEBUG_DEFINE_p = -D__WXDEBUG__
105endif
106endif
107ifeq ($(DEBUG_FLAG),1)
108__DEBUG_DEFINE_p = -D__WXDEBUG__
109endif
110ifeq ($(BUILD),debug)
111ifeq ($(DEBUG_FLAG),default)
112__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
113endif
114endif
115ifeq ($(DEBUG_FLAG),1)
116__DEBUG_DEFINE_p_0 = --define __WXDEBUG__
117endif
118ifeq ($(UNICODE),1)
119__UNICODE_DEFINE_p = -D_UNICODE
120endif
121ifeq ($(UNICODE),1)
122__UNICODE_DEFINE_p_0 = --define _UNICODE
123endif
124ifeq ($(SHARED),1)
125__DLLFLAG_p = -DWXUSINGDLL
126endif
127ifeq ($(SHARED),1)
128__DLLFLAG_p_0 = --define WXUSINGDLL
129endif
130ifeq ($(MONOLITHIC),0)
131__WXLIB_CORE_p = \
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
133endif
134ifeq ($(MONOLITHIC),0)
135__WXLIB_NET_p = \
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
137endif
138ifeq ($(MONOLITHIC),0)
139__WXLIB_BASE_p = \
140 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
141endif
142ifeq ($(MONOLITHIC),1)
143__WXLIB_MONO_p = \
144 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
145endif
146ifeq ($(USE_GUI),1)
147__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
148endif
149ifeq ($(USE_GUI),1)
150__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
151endif
152ifeq ($(USE_GUI),1)
153__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
154endif
155ifeq ($(MSLU),1)
156__UNICOWS_LIB_p = -lunicows
157endif
158ifeq ($(BUILD),debug)
159ifeq ($(DEBUG_INFO),default)
160__DEBUGINFO = -g
161endif
162endif
163ifeq ($(BUILD),release)
164ifeq ($(DEBUG_INFO),default)
165__DEBUGINFO =
166endif
167endif
168ifeq ($(DEBUG_INFO),0)
169__DEBUGINFO =
170endif
171ifeq ($(DEBUG_INFO),1)
172__DEBUGINFO = -g
173endif
174
175
176all: $(OBJS)
177$(OBJS):
178 -if not exist $(OBJS) mkdir $(OBJS)
179
180### Targets: ###
181
182all: $(OBJS)\client.exe $(OBJS)\server.exe
183
184clean:
185 -if exist $(OBJS)\*.o del $(OBJS)\*.o
186 -if exist $(OBJS)\client.exe del $(OBJS)\client.exe
187 -if exist $(OBJS)\server.exe del $(OBJS)\server.exe
188
189$(OBJS)\client.exe: $(CLIENT_OBJECTS) $(OBJS)\client_sample_rc.o
190 $(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$(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
191
192$(OBJS)\server.exe: $(SERVER_OBJECTS) $(OBJS)\server_sample_rc.o
193 $(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$(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
194
195$(OBJS)\client_sample_rc.o: ./../../samples/sample.rc
196 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
197
198$(OBJS)\client_client.o: ./client.cpp
199 $(CXX) -c -o $@ $(CLIENT_CXXFLAGS) $<
200
201$(OBJS)\server_sample_rc.o: ./../../samples/sample.rc
202 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
203
204$(OBJS)\server_server.o: ./server.cpp
205 $(CXX) -c -o $@ $(SERVER_CXXFLAGS) $<
206
207.PHONY: all clean
208