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