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@
24 SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
25 SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@
27 TOOLCHAIN_NAME = @TOOLCHAIN_NAME@
29 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
30 TOOLKIT_VERSION = @TOOLKIT_VERSION@
32 top_builddir = @top_builddir@
33 top_srcdir = @top_srcdir@
37 CLIENT_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
38 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
39 -I$(srcdir)/../../samples $(CXXFLAGS)
43 LIBDIRNAME = $(top_builddir)lib
44 SERVER_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
45 -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \
46 -I$(srcdir)/../../samples $(CXXFLAGS)
52 ### Conditionally set variables: ###
54 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
55 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
56 @COND_USE_GUI_0@PORTNAME = base
57 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
58 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
59 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
60 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
61 @COND_UNICODE_1@WXUNICODEFLAG = u
62 @COND_WXUNIV_1@WXUNIVNAME = univ
63 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
64 @COND_SHARED_1@__DLLFLAG_p_0 = --define WXUSINGDLL
65 @COND_SHARED_1@__DLLFLAG_p_6 = -d WXUSINGDLL
66 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
67 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX)
68 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
69 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
70 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX)
71 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
72 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX)
73 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
74 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
75 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX)
76 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \
77 @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX)
78 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
79 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
80 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX)
81 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
82 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX)
83 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
84 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(top_srcdir)/include -i $(srcdir) \
85 $(__DLLFLAG_p_6) -i $(srcdir)/../../samples -o client$(EXEEXT) Carbon.r \
86 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
87 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2)
88 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
89 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(top_srcdir)/include -i $(srcdir) \
90 $(__DLLFLAG_p_6) -i $(srcdir)/../../samples -o server$(EXEEXT) Carbon.r \
91 $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r
92 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3)
93 @COND_MONOLITHIC_0@__WXLIB_BASE_p = \
94 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
95 COND_MONOLITHIC_0___WXLIB_CORE_p = \
96 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX)
97 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
98 COND_MONOLITHIC_1___WXLIB_MONO_p = \
99 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX)
100 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
101 @COND_MONOLITHIC_0@__WXLIB_NET_p = \
102 @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net-2.5$(HOST_SUFFIX)
103 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
104 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__
105 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_6 = --define __WXUNIVERSAL__
106 @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2)
107 @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \
108 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT)
109 COND_PLATFORM_OS2_1___client___os2_emxbindcmd = $(NM) client$(EXEEXT) | if grep \
110 -q pmwin.763 ; then emxbind -ep client$(EXEEXT) ; fi
111 @COND_PLATFORM_OS2_1@__client___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___client___os2_emxbindcmd)
112 @COND_PLATFORM_WIN32_1@__client___win32rc = client_client_rc.o
113 @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle
114 @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3)
115 @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \
116 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT)
117 COND_PLATFORM_OS2_1___server___os2_emxbindcmd = $(NM) server$(EXEEXT) | if grep \
118 -q pmwin.763 ; then emxbind -ep server$(EXEEXT) ; fi
119 @COND_PLATFORM_OS2_1@__server___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___server___os2_emxbindcmd)
120 @COND_PLATFORM_WIN32_1@__server___win32rc = server_server_rc.o
121 @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle
125 all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname)
128 rm -rf ./.deps ./.pch
130 rm -f client$(EXEEXT)
132 rm -f server$(EXEEXT)
135 client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc)
136 $(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)
137 $(__client___mac_rezcmd)
138 $(__client___mac_setfilecmd)
139 $(__client___os2_emxbindcmd)
140 $(SAMPLES_RPATH_POSTLINK)
142 client.app/Contents/PkgInfo: client$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
143 mkdir -p client.app/Contents
144 mkdir -p client.app/Contents/MacOS
145 mkdir -p client.app/Contents/Resources
148 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
149 -e "s/EXECUTABLE/client/" \
150 -e "s/VERSION/$(WX_VERSION)/" \
151 $(top_srcdir)/src/mac/Info.plist.in >client.app/Contents/Info.plist
154 echo -n "APPL????" >client.app/Contents/PkgInfo
157 ln -f client$(EXEEXT) client.app/Contents/MacOS/client
160 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc client.app/Contents/Resources/client.rsrc
161 ln -f $(top_srcdir)/src/mac/wxmac.icns client.app/Contents/Resources/wxmac.icns
163 @COND_PLATFORM_MACOSX_1@client_bundle: client.app/Contents/PkgInfo
165 client_client.o: $(srcdir)/client.cpp
166 $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $<
168 client_client_rc.o: $(srcdir)/client.rc
169 $(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
172 rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
176 install-strip: install
178 server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc)
179 $(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)
180 $(__server___mac_rezcmd)
181 $(__server___mac_setfilecmd)
182 $(__server___os2_emxbindcmd)
183 $(SAMPLES_RPATH_POSTLINK)
185 server.app/Contents/PkgInfo: server$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
186 mkdir -p server.app/Contents
187 mkdir -p server.app/Contents/MacOS
188 mkdir -p server.app/Contents/Resources
191 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
192 -e "s/EXECUTABLE/server/" \
193 -e "s/VERSION/$(WX_VERSION)/" \
194 $(top_srcdir)/src/mac/Info.plist.in >server.app/Contents/Info.plist
197 echo -n "APPL????" >server.app/Contents/PkgInfo
200 ln -f server$(EXEEXT) server.app/Contents/MacOS/server
203 ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc server.app/Contents/Resources/server.rsrc
204 ln -f $(top_srcdir)/src/mac/wxmac.icns server.app/Contents/Resources/wxmac.icns
206 @COND_PLATFORM_MACOSX_1@server_bundle: server.app/Contents/PkgInfo
208 server_server.o: $(srcdir)/server.cpp
209 $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $<
211 server_server_rc.o: $(srcdir)/server.rc
212 $(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
217 # Include dependency info, if present:
218 @IF_GNU_MAKE@-include .deps/*.d
220 .PHONY: all clean client_bundle distclean install server_bundle uninstall