1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 exec_prefix = @exec_prefix@
17 EXTRALIBS = @EXTRALIBS@
18 EXTRALIBS_GUI = @EXTRALIBS_GUI@
19 HOST_SUFFIX = @HOST_SUFFIX@
21 LDFLAGS_GUI = @LDFLAGS_GUI@
23 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
24 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
26 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
28 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
29 TOOLKIT_VERSION = @TOOLKIT_VERSION@
31 top_builddir = @top_builddir@
32 top_srcdir = @top_srcdir@
36 CLIENT_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
37 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
38 -I$(srcdir)/../../samples $(CXXFLAGS)
42 LIBDIRNAME = $(top_builddir)lib
43 SERVER_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
44 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
45 -I$(srcdir)/../../samples $(CXXFLAGS)
51 ### Conditionally set variables: ###
53 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
54 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
55 @COND_USE_GUI_0@PORTNAME = base
56 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
57 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
58 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
59 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
60 @COND_UNICODE_1@WXUNICODEFLAG = u
61 @COND_WXUNIV_1@WXUNIVNAME = univ
62 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
63 @COND_SHARED_1@__DLLFLAG_p_0 = --define WXUSINGDLL
64 @COND_SHARED_1@__DLLFLAG_p_6 = -d WXUSINGDLL
65 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
66 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
67 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
68 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
69 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
70 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
71 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
72 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
73 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
74 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
75 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
76 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
77 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
78 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
79 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
80 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
81 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
82 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
83 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(top_srcdir)/include -i $(srcdir) \
84 $(__DLLFLAG_p_6) -i $(srcdir)/../../samples -o client$(EXEEXT) Carbon.r \
85 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r
86 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2)
87 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
88 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(top_srcdir)/include -i $(srcdir) \
89 $(__DLLFLAG_p_6) -i $(srcdir)/../../samples -o server$(EXEEXT) Carbon.r \
90 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.r sample.r
91 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3)
92 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
93 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
94 COND_MONOLITHIC_0___WXLIB_CORE_p = \
95 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
96 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
97 COND_MONOLITHIC_1___WXLIB_MONO_p = \
98 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
99 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
100 @COND_MONOLITHIC_0@__WXLIB_NET_p = \
101 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net-2.5$(HOST_SUFFIX)
102 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__
104 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_6 = --define __WXUNIVERSAL__
105 @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2)
106 @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \
107 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT)
108 @COND_PLATFORM_WIN32_1@__client___win32rc = client_client_rc.o
109 @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle
110 @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3)
111 @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \
112 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT)
113 @COND_PLATFORM_WIN32_1@__server___win32rc = server_server_rc.o
114 @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle
118 all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname)
121 rm -rf ./.deps ./.pch
123 rm -f client$(EXEEXT)
125 rm -f server$(EXEEXT)
128 client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc)
129 $(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)
130 $(__client___mac_rezcmd)
131 $(__client___mac_setfilecmd)
132 $(SAMPLES_RPATH_POSTLINK)
134 client.app/Contents: client$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns
135 mkdir -p client.app/Contents
136 mkdir -p client.app/Contents/MacOS
137 mkdir -p client.app/Contents/Resources
140 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
141 -e "s/EXECUTABLE/client/" \
142 -e "s/VERSION/$(WX_VERSION)/" \
143 $(top_srcdir)/src/mac/Info.plist.in >client.app/Contents/Info.plist
146 echo -n "APPL????" >client.app/Contents/PkgInfo
149 ln -f client$(EXEEXT) client.app/Contents/MacOS/client
152 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc client.app/Contents/Resources/client.rsrc
153 ln -f $(top_srcdir)/src/mac/wxmac.icns client.app/Contents/Resources/wxmac.icns
155 @COND_PLATFORM_MACOSX_1@client_bundle: client.app/Contents
157 client_client.o: $(srcdir)/client.cpp
158 $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $<
160 client_client_rc.o: $(srcdir)/client.rc
161 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_6) --include-dir $(top_srcdir)/include --include-dir $(srcdir) $(__DLLFLAG_p_0) --include-dir $(srcdir)/../../samples
164 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
168 install-strip: install
170 server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc)
171 $(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)
172 $(__server___mac_rezcmd)
173 $(__server___mac_setfilecmd)
174 $(SAMPLES_RPATH_POSTLINK)
176 server.app/Contents: server$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc $(top_srcdir)/src/mac/wxmac.icns
177 mkdir -p server.app/Contents
178 mkdir -p server.app/Contents/MacOS
179 mkdir -p server.app/Contents/Resources
182 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
183 -e "s/EXECUTABLE/server/" \
184 -e "s/VERSION/$(WX_VERSION)/" \
185 $(top_srcdir)/src/mac/Info.plist.in >server.app/Contents/Info.plist
188 echo -n "APPL????" >server.app/Contents/PkgInfo
191 ln -f server$(EXEEXT) server.app/Contents/MacOS/server
194 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).0.rsrc server.app/Contents/Resources/server.rsrc
195 ln -f $(top_srcdir)/src/mac/wxmac.icns server.app/Contents/Resources/wxmac.icns
197 @COND_PLATFORM_MACOSX_1@server_bundle: server.app/Contents
199 server_server.o: $(srcdir)/server.cpp
200 $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $<
202 server_server_rc.o: $(srcdir)/server.rc
203 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_6) --include-dir $(top_srcdir)/include --include-dir $(srcdir) $(__DLLFLAG_p_0) --include-dir $(srcdir)/../../samples
208 # Include dependency info, if present:
209 @IF_GNU_MAKE@-include .deps/*.d
211 .PHONY: all clean client_bundle distclean install server_bundle uninstall