]> git.saurik.com Git - wxWidgets.git/blob - samples/ipc/makefile.gcc
fix compilation - Stefan see my last commit bundle :)
[wxWidgets.git] / samples / ipc / makefile.gcc
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
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 CLIENT_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)
26 CLIENT_OBJECTS = \
27 $(OBJS)\client_sample_rc.o \
28 $(OBJS)\client_client.o
29 SERVER_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)
34 SERVER_OBJECTS = \
35 $(OBJS)\server_sample_rc.o \
36 $(OBJS)\server_server.o
37
38 ### Conditionally set variables: ###
39
40 ifeq ($(GCC_VERSION),2.95)
41 GCCFLAGS = -fvtable-thunks
42 endif
43 ifeq ($(USE_GUI),0)
44 PORTNAME = base
45 endif
46 ifeq ($(USE_GUI),1)
47 PORTNAME = msw
48 endif
49 ifeq ($(BUILD),debug)
50 ifeq ($(DEBUG_FLAG),default)
51 WXDEBUGFLAG = d
52 endif
53 endif
54 ifeq ($(DEBUG_FLAG),1)
55 WXDEBUGFLAG = d
56 endif
57 ifeq ($(UNICODE),1)
58 WXUNICODEFLAG = u
59 endif
60 ifeq ($(WXUNIV),1)
61 WXUNIVNAME = univ
62 endif
63 ifeq ($(SHARED),1)
64 WXDLLFLAG = dll
65 endif
66 ifeq ($(SHARED),0)
67 LIBTYPE_SUFFIX = lib
68 endif
69 ifeq ($(SHARED),1)
70 LIBTYPE_SUFFIX = dll
71 endif
72 ifeq ($(MONOLITHIC),0)
73 EXTRALIBS_FOR_BASE =
74 endif
75 ifeq ($(MONOLITHIC),1)
76 EXTRALIBS_FOR_BASE =
77 endif
78 ifeq ($(BUILD),debug)
79 __OPTIMIZEFLAG = -O0
80 endif
81 ifeq ($(BUILD),release)
82 __OPTIMIZEFLAG = -O2
83 endif
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG = -fno-rtti
86 endif
87 ifeq ($(USE_EXCEPTIONS),1)
88 __EXCEPTIONSFLAG =
89 endif
90 ifeq ($(USE_EXCEPTIONS),0)
91 __EXCEPTIONSFLAG_0 = -fno-exceptions
92 endif
93 ifeq ($(USE_EXCEPTIONS),1)
94 __EXCEPTIONSFLAG_0 =
95 endif
96 ifeq ($(WXUNIV),1)
97 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
98 endif
99 ifeq ($(WXUNIV),1)
100 __WXUNIV_DEFINE_p_0 = --define __WXUNIVERSAL__
101 endif
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 endif
106 endif
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 endif
110 ifeq ($(BUILD),debug)
111 ifeq ($(DEBUG_FLAG),default)
112 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
113 endif
114 endif
115 ifeq ($(DEBUG_FLAG),1)
116 __DEBUG_DEFINE_p_0 = --define __WXDEBUG__
117 endif
118 ifeq ($(UNICODE),1)
119 __UNICODE_DEFINE_p = -D_UNICODE
120 endif
121 ifeq ($(UNICODE),1)
122 __UNICODE_DEFINE_p_0 = --define _UNICODE
123 endif
124 ifeq ($(SHARED),1)
125 __DLLFLAG_p = -DWXUSINGDLL
126 endif
127 ifeq ($(SHARED),1)
128 __DLLFLAG_p_0 = --define WXUSINGDLL
129 endif
130 ifeq ($(MONOLITHIC),0)
131 __WXLIB_CORE_p = \
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
133 endif
134 ifeq ($(MONOLITHIC),0)
135 __WXLIB_NET_p = \
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
137 endif
138 ifeq ($(MONOLITHIC),0)
139 __WXLIB_BASE_p = \
140 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
141 endif
142 ifeq ($(MONOLITHIC),1)
143 __WXLIB_MONO_p = \
144 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
145 endif
146 ifeq ($(USE_GUI),1)
147 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
148 endif
149 ifeq ($(USE_GUI),1)
150 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
151 endif
152 ifeq ($(USE_GUI),1)
153 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
154 endif
155 ifeq ($(MSLU),1)
156 __UNICOWS_LIB_p = -lunicows
157 endif
158 ifeq ($(BUILD),debug)
159 ifeq ($(DEBUG_INFO),default)
160 __DEBUGINFO = -g
161 endif
162 endif
163 ifeq ($(BUILD),release)
164 ifeq ($(DEBUG_INFO),default)
165 __DEBUGINFO =
166 endif
167 endif
168 ifeq ($(DEBUG_INFO),0)
169 __DEBUGINFO =
170 endif
171 ifeq ($(DEBUG_INFO),1)
172 __DEBUGINFO = -g
173 endif
174
175
176 all: $(OBJS)
177 $(OBJS):
178 -if not exist $(OBJS) mkdir $(OBJS)
179
180 ### Targets: ###
181
182 all: $(OBJS)\client.exe $(OBJS)\server.exe
183
184 clean:
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