1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 exec_prefix = @exec_prefix@
20 top_srcdir = @top_srcdir@
22 LDFLAGS_GUI = @LDFLAGS_GUI@
27 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
29 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
30 TOOLKIT_VERSION = @TOOLKIT_VERSION@
31 TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
32 EXTRALIBS = @EXTRALIBS@
33 EXTRALIBS_GUI = @EXTRALIBS_GUI@
34 CXXWARNINGS = @CXXWARNINGS@
35 HOST_SUFFIX = @HOST_SUFFIX@
36 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
37 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
38 wx_top_builddir = @wx_top_builddir@
44 WX_VERSION = $(WX_RELEASE).0
45 LIBDIRNAME = $(wx_top_builddir)/lib
46 CLIENT_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
47 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
48 -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CXXWARNINGS) \
49 $(CPPFLAGS) $(CXXFLAGS)
54 SERVER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
55 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
56 -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CXXWARNINGS) \
57 $(CPPFLAGS) $(CXXFLAGS)
62 BASECLIENT_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
63 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
64 -I$(srcdir) $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CXXWARNINGS) $(CPPFLAGS) \
66 BASECLIENT_OBJECTS = \
67 baseclient_baseclient.o
68 BASESERVER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
69 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
70 -I$(srcdir) $(__DLLFLAG_p) -DwxUSE_GUI=0 $(CXXWARNINGS) $(CPPFLAGS) \
72 BASESERVER_OBJECTS = \
73 baseserver_baseserver.o
75 ### Conditionally set variables: ###
77 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
78 @COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
79 @COND_USE_GUI_0@PORTNAME = base
80 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
81 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
82 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
83 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
84 @COND_UNICODE_1@WXUNICODEFLAG = u
85 @COND_WXUNIV_1@WXUNIVNAME = univ
86 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
87 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
88 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
89 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
90 @COND_USE_GUI_1@__client___depname = client$(EXEEXT)
91 @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \
92 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT)
93 @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2)
94 COND_PLATFORM_OS2_1___client___os2_emxbindcmd = $(NM) client$(EXEEXT) | if grep \
95 -q pmwin.763 ; then emxbind -ep client$(EXEEXT) ; fi
96 @COND_PLATFORM_OS2_1@__client___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___client___os2_emxbindcmd)
97 @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle
98 @COND_TOOLKIT_COCOA@____client_BUNDLE_TGT_REF_DEP = \
99 @COND_TOOLKIT_COCOA@ client.app/Contents/PkgInfo
100 @COND_TOOLKIT_MAC@____client_BUNDLE_TGT_REF_DEP = \
101 @COND_TOOLKIT_MAC@ client.app/Contents/PkgInfo
102 @COND_PLATFORM_WIN32_1@__client___win32rc = client_client_rc.o
103 @COND_USE_GUI_1@__server___depname = server$(EXEEXT)
104 @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \
105 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT)
106 @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3)
107 COND_PLATFORM_OS2_1___server___os2_emxbindcmd = $(NM) server$(EXEEXT) | if grep \
108 -q pmwin.763 ; then emxbind -ep server$(EXEEXT) ; fi
109 @COND_PLATFORM_OS2_1@__server___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___server___os2_emxbindcmd)
110 @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle
111 @COND_TOOLKIT_COCOA@____server_BUNDLE_TGT_REF_DEP = \
112 @COND_TOOLKIT_COCOA@ server.app/Contents/PkgInfo
113 @COND_TOOLKIT_MAC@____server_BUNDLE_TGT_REF_DEP = \
114 @COND_TOOLKIT_MAC@ server.app/Contents/PkgInfo
115 @COND_PLATFORM_WIN32_1@__server___win32rc = server_server_rc.o
116 @COND_PLATFORM_MAC_1@__baseclient___mac_setfilecmd = \
117 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL baseclient$(EXEEXT)
118 @COND_PLATFORM_MAC_1@__baseserver___mac_setfilecmd = \
119 @COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL baseserver$(EXEEXT)
120 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(REZ) -d __DARWIN__ -t APPL -d \
121 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) \
122 $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
123 $(srcdir)/../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \
124 client$(EXEEXT) Carbon.r sample.r
125 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2)
126 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(REZ) -d __DARWIN__ -t APPL -d \
127 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) \
128 $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
129 $(srcdir)/../../samples $(__RCDEFDIR_p) -i $(top_srcdir)/include -o \
130 server$(EXEEXT) Carbon.r sample.r
131 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3)
132 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__
133 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_7 = --define __WXUNIVERSAL__
134 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_0 = -d wxNO_EXCEPTIONS
135 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_7 = --define wxNO_EXCEPTIONS
136 @COND_USE_RTTI_0@__RTTI_DEFINE_p_0 = -d wxNO_RTTI
137 @COND_USE_RTTI_0@__RTTI_DEFINE_p_7 = --define wxNO_RTTI
138 @COND_USE_THREADS_0@__THREAD_DEFINE_p_0 = -d wxNO_THREADS
139 @COND_USE_THREADS_0@__THREAD_DEFINE_p_7 = --define wxNO_THREADS
140 @COND_SHARED_1@__DLLFLAG_p_0 = -d WXUSINGDLL
141 @COND_SHARED_1@__DLLFLAG_p_7 = --define WXUSINGDLL
142 @COND_TOOLKIT_MSW@__RCDEFDIR_p = -i \
143 @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
144 @COND_TOOLKIT_MSW@__RCDEFDIR_p_0 = --include-dir \
145 @COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
146 @COND_PLATFORM_OS2_1@os2_lib_res = $(top_srcdir)/include/wx/os2/wx.res
147 COND_MONOLITHIC_0___WXLIB_CORE_p = \
148 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
149 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
150 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
151 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
152 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
153 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
154 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
155 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
156 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
157 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
158 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
159 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
161 @COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
162 @COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
163 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
164 COND_MONOLITHIC_0___WXLIB_NET_p = \
165 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net-$(WX_RELEASE)$(HOST_SUFFIX)
166 @COND_MONOLITHIC_0@__WXLIB_NET_p = $(COND_MONOLITHIC_0___WXLIB_NET_p)
167 COND_MONOLITHIC_0___WXLIB_BASE_p = \
168 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
169 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
170 COND_MONOLITHIC_1___WXLIB_MONO_p = \
171 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
172 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
173 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
174 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
175 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
176 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
177 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
178 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
179 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
183 all: $(__client___depname) $(__client_bundle___depname) $(__server___depname) $(__server_bundle___depname) baseclient$(EXEEXT) baseserver$(EXEEXT)
189 install-strip: install
192 rm -rf ./.deps ./.pch
194 rm -f client$(EXEEXT)
196 rm -f server$(EXEEXT)
198 rm -f baseclient$(EXEEXT)
199 rm -f baseserver$(EXEEXT)
202 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
204 @COND_USE_GUI_1@client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc)
205 @COND_USE_GUI_1@ $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LIBS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
206 @COND_USE_GUI_1@ $(__client___mac_rezcmd)
207 @COND_USE_GUI_1@ $(__client___mac_setfilecmd)
208 @COND_USE_GUI_1@ $(__client___os2_emxbindcmd)
209 @COND_USE_GUI_1@ $(SAMPLES_RPATH_POSTLINK)
211 client.app/Contents/PkgInfo: $(__client___depname) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
212 mkdir -p client.app/Contents
213 mkdir -p client.app/Contents/MacOS
214 mkdir -p client.app/Contents/Resources
217 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
218 -e "s/EXECUTABLE/client/" \
219 -e "s/VERSION/$(WX_VERSION)/" \
220 $(top_srcdir)/src/mac/carbon/Info.plist.in >client.app/Contents/Info.plist
223 echo -n "APPL????" >client.app/Contents/PkgInfo
226 ln -f client$(EXEEXT) client.app/Contents/MacOS/client
229 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns client.app/Contents/Resources/wxmac.icns
231 @COND_PLATFORM_MACOSX_1@client_bundle: $(____client_BUNDLE_TGT_REF_DEP)
233 @COND_USE_GUI_1@server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc)
234 @COND_USE_GUI_1@ $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LIBS) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
235 @COND_USE_GUI_1@ $(__server___mac_rezcmd)
236 @COND_USE_GUI_1@ $(__server___mac_setfilecmd)
237 @COND_USE_GUI_1@ $(__server___os2_emxbindcmd)
238 @COND_USE_GUI_1@ $(SAMPLES_RPATH_POSTLINK)
240 server.app/Contents/PkgInfo: $(__server___depname) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
241 mkdir -p server.app/Contents
242 mkdir -p server.app/Contents/MacOS
243 mkdir -p server.app/Contents/Resources
246 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
247 -e "s/EXECUTABLE/server/" \
248 -e "s/VERSION/$(WX_VERSION)/" \
249 $(top_srcdir)/src/mac/carbon/Info.plist.in >server.app/Contents/Info.plist
252 echo -n "APPL????" >server.app/Contents/PkgInfo
255 ln -f server$(EXEEXT) server.app/Contents/MacOS/server
258 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns server.app/Contents/Resources/wxmac.icns
260 @COND_PLATFORM_MACOSX_1@server_bundle: $(____server_BUNDLE_TGT_REF_DEP)
262 baseclient$(EXEEXT): $(BASECLIENT_OBJECTS)
263 $(CXX) -o $@ $(BASECLIENT_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(SAMPLES_RPATH_FLAG) $(LIBS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
265 $(__baseclient___mac_setfilecmd)
266 $(SAMPLES_RPATH_POSTLINK)
268 baseserver$(EXEEXT): $(BASESERVER_OBJECTS)
269 $(CXX) -o $@ $(BASESERVER_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(SAMPLES_RPATH_FLAG) $(LIBS) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE)
271 $(__baseserver___mac_setfilecmd)
272 $(SAMPLES_RPATH_POSTLINK)
274 client_client.o: $(srcdir)/client.cpp
275 $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $(srcdir)/client.cpp
277 client_client_rc.o: $(srcdir)/client.rc
278 $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_7) $(__EXCEPTIONS_DEFINE_p_7) $(__RTTI_DEFINE_p_7) $(__THREAD_DEFINE_p_7) --include-dir $(srcdir) $(__DLLFLAG_p_7) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_0) --include-dir $(top_srcdir)/include
280 server_server.o: $(srcdir)/server.cpp
281 $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $(srcdir)/server.cpp
283 server_server_rc.o: $(srcdir)/server.rc
284 $(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_7) $(__EXCEPTIONS_DEFINE_p_7) $(__RTTI_DEFINE_p_7) $(__THREAD_DEFINE_p_7) --include-dir $(srcdir) $(__DLLFLAG_p_7) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_0) --include-dir $(top_srcdir)/include
286 baseclient_baseclient.o: $(srcdir)/baseclient.cpp
287 $(CXXC) -c -o $@ $(BASECLIENT_CXXFLAGS) $(srcdir)/baseclient.cpp
289 baseserver_baseserver.o: $(srcdir)/baseserver.cpp
290 $(CXXC) -c -o $@ $(BASESERVER_CXXFLAGS) $(srcdir)/baseserver.cpp
293 # Include dependency info, if present:
294 @IF_GNU_MAKE@-include .deps/*.d
296 .PHONY: all install uninstall clean distclean client_bundle server_bundle