1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (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@
26 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
27 TOOLKIT_VERSION = @TOOLKIT_VERSION@
28 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
29 EXTRALIBS = @EXTRALIBS@
30 EXTRALIBS_GUI = @EXTRALIBS_GUI@
31 HOST_SUFFIX = @HOST_SUFFIX@
32 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
33 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
39 LIBDIRNAME = $(top_builddir)lib
40 CLIENT_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
41 $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
43 $(__client___win32rc) \
46 SERVER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \
47 $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
49 $(__server___win32rc) \
53 ### Conditionally set variables: ###
55 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
56 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
57 @COND_USE_GUI_0@PORTNAME = base
58 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
59 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
60 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
61 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
62 @COND_UNICODE_1@WXUNICODEFLAG = u
63 @COND_WXUNIV_1@WXUNIVNAME = univ
64 @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \
65 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT)
66 @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2)
67 COND_PLATFORM_OS2_1___client___os2_emxbindcmd = $(NM) client$(EXEEXT) | if grep \
68 -q pmwin.763 ; then emxbind -ep client$(EXEEXT) ; fi
69 @COND_PLATFORM_OS2_1@__client___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___client___os2_emxbindcmd)
70 @COND_PLATFORM_WIN32_1@__client___win32rc = client_sample_rc.o
71 @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle
72 @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \
73 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT)
74 @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3)
75 COND_PLATFORM_OS2_1___server___os2_emxbindcmd = $(NM) server$(EXEEXT) | if grep \
76 -q pmwin.763 ; then emxbind -ep server$(EXEEXT) ; fi
77 @COND_PLATFORM_OS2_1@__server___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___server___os2_emxbindcmd)
78 @COND_PLATFORM_WIN32_1@__server___win32rc = server_sample_rc.o
79 @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle
80 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
81 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
82 $(srcdir)/../../samples -i $(top_srcdir)/include -o client$(EXEEXT) Carbon.r \
83 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
84 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2)
85 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
86 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
87 $(srcdir)/../../samples -i $(top_srcdir)/include -o server$(EXEEXT) Carbon.r \
88 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
89 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3)
90 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
91 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__
92 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_6 = --define __WXUNIVERSAL__
93 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
94 @COND_SHARED_1@__DLLFLAG_p_0 = -d WXUSINGDLL
95 @COND_SHARED_1@__DLLFLAG_p_6 = --define WXUSINGDLL
96 @COND_PLATFORM_OS2_1@os2_lib_res = $(top_srcdir)/include/wx/os2/wx.res
97 COND_MONOLITHIC_0___WXLIB_CORE_p = \
98 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
99 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
100 @COND_MONOLITHIC_0@__WXLIB_NET_p = \
101 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net-2.5$(HOST_SUFFIX)
102 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
103 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
104 COND_MONOLITHIC_1___WXLIB_MONO_p = \
105 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
106 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
107 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
108 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
109 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
110 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
111 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
112 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
113 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
114 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
115 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
116 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
117 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
118 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
119 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
120 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
121 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX)
122 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
123 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
127 all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname)
133 install-strip: install
136 rm -rf ./.deps ./.pch
138 rm -f client$(EXEEXT)
140 rm -f server$(EXEEXT)
144 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
146 client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc)
147 $(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) $(EXTRALIBS_GUI)
148 $(__client___mac_rezcmd)
149 $(__client___mac_setfilecmd)
150 $(__client___os2_emxbindcmd)
151 $(SAMPLES_RPATH_POSTLINK)
153 client.app/Contents/PkgInfo: client$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
154 mkdir -p client.app/Contents
155 mkdir -p client.app/Contents/MacOS
156 mkdir -p client.app/Contents/Resources
159 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
160 -e "s/EXECUTABLE/client/" \
161 -e "s/VERSION/$(WX_VERSION)/" \
162 $(top_srcdir)/src/mac/carbon/Info.plist.in >client.app/Contents/Info.plist
165 echo -n "APPL????" >client.app/Contents/PkgInfo
168 ln -f client$(EXEEXT) client.app/Contents/MacOS/client
171 ln -sf $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc client.app/Contents/Resources/client.rsrc
172 ln -sf $(top_srcdir)/src/mac/wxmac.icns client.app/Contents/Resources/wxmac.icns
174 @COND_PLATFORM_MACOSX_1@client_bundle: client.app/Contents/PkgInfo
176 server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc)
177 $(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) $(EXTRALIBS_GUI)
178 $(__server___mac_rezcmd)
179 $(__server___mac_setfilecmd)
180 $(__server___os2_emxbindcmd)
181 $(SAMPLES_RPATH_POSTLINK)
183 server.app/Contents/PkgInfo: server$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
184 mkdir -p server.app/Contents
185 mkdir -p server.app/Contents/MacOS
186 mkdir -p server.app/Contents/Resources
189 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
190 -e "s/EXECUTABLE/server/" \
191 -e "s/VERSION/$(WX_VERSION)/" \
192 $(top_srcdir)/src/mac/carbon/Info.plist.in >server.app/Contents/Info.plist
195 echo -n "APPL????" >server.app/Contents/PkgInfo
198 ln -f server$(EXEEXT) server.app/Contents/MacOS/server
201 ln -sf $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc server.app/Contents/Resources/server.rsrc
202 ln -sf $(top_srcdir)/src/mac/wxmac.icns server.app/Contents/Resources/wxmac.icns
204 @COND_PLATFORM_MACOSX_1@server_bundle: server.app/Contents/PkgInfo
206 client_sample_rc.o: $(srcdir)/../../samples/sample.rc
207 $(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
209 client_client.o: $(srcdir)/client.cpp
210 $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $<
212 server_sample_rc.o: $(srcdir)/../../samples/sample.rc
213 $(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
215 server_server.o: $(srcdir)/server.cpp
216 $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $<
219 # Include dependency info, if present:
220 @IF_GNU_MAKE@-include .deps/*.d
222 .PHONY: all install uninstall clean distclean client_bundle server_bundle