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 # =========================================================================
11 exec_prefix = @exec_prefix@
18 top_srcdir = @top_srcdir@
19 top_builddir = @top_builddir@
20 LDFLAGS_GUI = @LDFLAGS_GUI@
25 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
27 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
28 TOOLKIT_VERSION = @TOOLKIT_VERSION@
29 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
30 EXTRALIBS = @EXTRALIBS@
31 EXTRALIBS_GUI = @EXTRALIBS_GUI@
32 HOST_SUFFIX = @HOST_SUFFIX@
33 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
34 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
40 WX_VERSION = $(WX_RELEASE).3
41 LIBDIRNAME = $(top_builddir)lib
42 CLIENT_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
43 $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
45 $(__client___win32rc) \
48 SERVER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
49 $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
51 $(__server___win32rc) \
55 ### Conditionally set variables: ###
57 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
58 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
59 @COND_USE_GUI_0@PORTNAME = base
60 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
61 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
62 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
63 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
64 @COND_UNICODE_1@WXUNICODEFLAG = u
65 @COND_WXUNIV_1@WXUNIVNAME = univ
66 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
67 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
68 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
69 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
70 @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \
71 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT)
72 @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2)
73 COND_PLATFORM_OS2_1___client___os2_emxbindcmd = $(NM) client$(EXEEXT) | if grep \
74 -q pmwin.763 ; then emxbind -ep client$(EXEEXT) ; fi
75 @COND_PLATFORM_OS2_1@__client___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___client___os2_emxbindcmd)
76 @COND_PLATFORM_WIN32_1@__client___win32rc = client_sample_rc.o
77 @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle
78 @COND_TOOLKIT_COCOA@____client_BUNDLE_TGT_REF_DEP = \
79 @COND_TOOLKIT_COCOA@ client.app/Contents/PkgInfo
80 @COND_TOOLKIT_MAC@____client_BUNDLE_TGT_REF_DEP = \
81 @COND_TOOLKIT_MAC@ client.app/Contents/PkgInfo
82 @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \
83 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT)
84 @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3)
85 COND_PLATFORM_OS2_1___server___os2_emxbindcmd = $(NM) server$(EXEEXT) | if grep \
86 -q pmwin.763 ; then emxbind -ep server$(EXEEXT) ; fi
87 @COND_PLATFORM_OS2_1@__server___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___server___os2_emxbindcmd)
88 @COND_PLATFORM_WIN32_1@__server___win32rc = server_sample_rc.o
89 @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle
90 @COND_TOOLKIT_COCOA@____server_BUNDLE_TGT_REF_DEP = \
91 @COND_TOOLKIT_COCOA@ server.app/Contents/PkgInfo
92 @COND_TOOLKIT_MAC@____server_BUNDLE_TGT_REF_DEP = \
93 @COND_TOOLKIT_MAC@ server.app/Contents/PkgInfo
94 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
95 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
96 $(srcdir)/../../samples -i $(top_srcdir)/include -o client$(EXEEXT) Carbon.r \
97 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.r sample.r
98 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2)
99 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
100 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
101 $(srcdir)/../../samples -i $(top_srcdir)/include -o server$(EXEEXT) Carbon.r \
102 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.r sample.r
103 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3)
104 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__
106 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_6 = --define __WXUNIVERSAL__
107 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
108 @COND_SHARED_1@__DLLFLAG_p_0 = -d WXUSINGDLL
109 @COND_SHARED_1@__DLLFLAG_p_6 = --define WXUSINGDLL
110 @COND_PLATFORM_OS2_1@os2_lib_res = $(top_srcdir)/include/wx/os2/wx.res
111 COND_MONOLITHIC_0___WXLIB_CORE_p = \
112 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
113 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
114 COND_MONOLITHIC_0___WXLIB_NET_p = \
115 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net-$(WX_RELEASE)$(HOST_SUFFIX)
116 @COND_MONOLITHIC_0@__WXLIB_NET_p = $(COND_MONOLITHIC_0___WXLIB_NET_p)
117 COND_MONOLITHIC_0___WXLIB_BASE_p = \
118 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
119 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
120 COND_MONOLITHIC_1___WXLIB_MONO_p = \
121 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
122 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
123 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
124 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
125 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
126 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
127 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
128 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
129 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
130 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
131 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
132 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
133 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
134 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
135 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
136 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
137 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
138 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
139 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
140 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
144 all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname)
150 install-strip: install
153 rm -rf ./.deps ./.pch
155 rm -f client$(EXEEXT)
157 rm -f server$(EXEEXT)
161 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
163 client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc)
164 $(CXX) -o $@ $(CLIENT_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(EXTRALIBS_FOR_GUI)
165 $(__client___mac_rezcmd)
166 $(__client___mac_setfilecmd)
167 $(__client___os2_emxbindcmd)
168 $(SAMPLES_RPATH_POSTLINK)
170 client.app/Contents/PkgInfo: client$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns
171 mkdir -p client.app/Contents
172 mkdir -p client.app/Contents/MacOS
173 mkdir -p client.app/Contents/Resources
176 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
177 -e "s/EXECUTABLE/client/" \
178 -e "s/VERSION/$(WX_VERSION)/" \
179 $(top_srcdir)/src/mac/carbon/Info.plist.in >client.app/Contents/Info.plist
182 echo -n "APPL????" >client.app/Contents/PkgInfo
185 ln -f client$(EXEEXT) client.app/Contents/MacOS/client
188 cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc client.app/Contents/Resources/client.rsrc
189 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns client.app/Contents/Resources/wxmac.icns
191 @COND_PLATFORM_MACOSX_1@client_bundle: $(____client_BUNDLE_TGT_REF_DEP)
193 server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc)
194 $(CXX) -o $@ $(SERVER_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_CORE_p) $(__WXLIB_NET_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(EXTRALIBS_FOR_GUI)
195 $(__server___mac_rezcmd)
196 $(__server___mac_setfilecmd)
197 $(__server___os2_emxbindcmd)
198 $(SAMPLES_RPATH_POSTLINK)
200 server.app/Contents/PkgInfo: server$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns
201 mkdir -p server.app/Contents
202 mkdir -p server.app/Contents/MacOS
203 mkdir -p server.app/Contents/Resources
206 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
207 -e "s/EXECUTABLE/server/" \
208 -e "s/VERSION/$(WX_VERSION)/" \
209 $(top_srcdir)/src/mac/carbon/Info.plist.in >server.app/Contents/Info.plist
212 echo -n "APPL????" >server.app/Contents/PkgInfo
215 ln -f server$(EXEEXT) server.app/Contents/MacOS/server
218 cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc server.app/Contents/Resources/server.rsrc
219 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns server.app/Contents/Resources/wxmac.icns
221 @COND_PLATFORM_MACOSX_1@server_bundle: $(____server_BUNDLE_TGT_REF_DEP)
223 client_sample_rc.o: $(srcdir)/../../samples/sample.rc
224 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_6) --include-dir $(srcdir) $(__DLLFLAG_p_6) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include
226 client_client.o: $(srcdir)/client.cpp
227 $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $<
229 server_sample_rc.o: $(srcdir)/../../samples/sample.rc
230 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_6) --include-dir $(srcdir) $(__DLLFLAG_p_6) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include
232 server_server.o: $(srcdir)/server.cpp
233 $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $<
236 # Include dependency info, if present:
237 @IF_GNU_MAKE@-include .deps/*.d
239 .PHONY: all install uninstall clean distclean client_bundle server_bundle