]> git.saurik.com Git - wxWidgets.git/blob - samples/sockets/Makefile.in
moving libiconv and libz into linker flags, as Xcode resolves the links otherwise...
[wxWidgets.git] / samples / sockets / Makefile.in
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7
8 @MAKE_SET@
9
10 prefix = @prefix@
11 exec_prefix = @exec_prefix@
12 INSTALL = @INSTALL@
13 EXEEXT = @EXEEXT@
14 RESCOMP = @RESCOMP@
15 SETFILE = @SETFILE@
16 NM = @NM@
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 top_builddir = @top_builddir@
20 LDFLAGS_GUI = @LDFLAGS_GUI@
21 CXX = @CXX@
22 CXXFLAGS = @CXXFLAGS@
23 CPPFLAGS = @CPPFLAGS@
24 LDFLAGS = @LDFLAGS@
25 WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
26 TOOLKIT = @TOOLKIT@
27 TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
28 TOOLKIT_VERSION = @TOOLKIT_VERSION@
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@
34
35 ### Variables: ###
36
37 DESTDIR =
38 WX_RELEASE = 2.6
39 WX_VERSION = $(WX_RELEASE).2
40 LIBDIRNAME = $(top_builddir)lib
41 CLIENT_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
42 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
43 -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
44 CLIENT_OBJECTS = \
45 $(os2_lib_res) \
46 client_client.o \
47 $(__client___win32rc)
48 SERVER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
49 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
50 -I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS)
51 SERVER_OBJECTS = \
52 $(os2_lib_res) \
53 server_server.o \
54 $(__server___win32rc)
55
56 ### Conditionally set variables: ###
57
58 @COND_DEPS_TRACKING_0@CXXC = $(CXX)
59 @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX)
60 @COND_USE_GUI_0@PORTNAME = base
61 @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
62 @COND_TOOLKIT_MAC@WXBASEPORT = _carbon
63 @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d
64 @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d
65 @COND_UNICODE_1@WXUNICODEFLAG = u
66 @COND_WXUNIV_1@WXUNIVNAME = univ
67 @COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
68 @COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
69 @COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
70 @COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
71 @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \
72 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT)
73 @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2)
74 COND_PLATFORM_OS2_1___client___os2_emxbindcmd = $(NM) client$(EXEEXT) | if grep \
75 -q pmwin.763 ; then emxbind -ep client$(EXEEXT) ; fi
76 @COND_PLATFORM_OS2_1@__client___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___client___os2_emxbindcmd)
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_WIN32_1@__client___win32rc = client_client_rc.o
83 @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \
84 @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT)
85 @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3)
86 COND_PLATFORM_OS2_1___server___os2_emxbindcmd = $(NM) server$(EXEEXT) | if grep \
87 -q pmwin.763 ; then emxbind -ep server$(EXEEXT) ; fi
88 @COND_PLATFORM_OS2_1@__server___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___server___os2_emxbindcmd)
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_PLATFORM_WIN32_1@__server___win32rc = server_server_rc.o
95 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
96 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) \
97 $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
98 $(srcdir)/../../samples -i $(top_srcdir)/include -o client$(EXEEXT) Carbon.r \
99 sample.r
100 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2)
101 COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(RESCOMP) -d __DARWIN__ -t APPL -d \
102 __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) $(__EXCEPTIONS_DEFINE_p_0) \
103 $(__RTTI_DEFINE_p_0) $(__THREAD_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \
104 $(srcdir)/../../samples -i $(top_srcdir)/include -o server$(EXEEXT) Carbon.r \
105 sample.r
106 @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3)
107 @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
108 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__
109 @COND_WXUNIV_1@__WXUNIV_DEFINE_p_6 = --define __WXUNIVERSAL__
110 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
111 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_0 = -d wxNO_EXCEPTIONS
112 @COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_6 = --define wxNO_EXCEPTIONS
113 @COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
114 @COND_USE_RTTI_0@__RTTI_DEFINE_p_0 = -d wxNO_RTTI
115 @COND_USE_RTTI_0@__RTTI_DEFINE_p_6 = --define wxNO_RTTI
116 @COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
117 @COND_USE_THREADS_0@__THREAD_DEFINE_p_0 = -d wxNO_THREADS
118 @COND_USE_THREADS_0@__THREAD_DEFINE_p_6 = --define wxNO_THREADS
119 @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
120 @COND_SHARED_1@__DLLFLAG_p_0 = -d WXUSINGDLL
121 @COND_SHARED_1@__DLLFLAG_p_6 = --define WXUSINGDLL
122 @COND_PLATFORM_OS2_1@os2_lib_res = $(top_srcdir)/include/wx/os2/wx.res
123 COND_MONOLITHIC_0___WXLIB_CORE_p = \
124 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
125 @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
126 COND_MONOLITHIC_0___WXLIB_NET_p = \
127 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net-$(WX_RELEASE)$(HOST_SUFFIX)
128 @COND_MONOLITHIC_0@__WXLIB_NET_p = $(COND_MONOLITHIC_0___WXLIB_NET_p)
129 COND_MONOLITHIC_0___WXLIB_BASE_p = \
130 -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
131 @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
132 COND_MONOLITHIC_1___WXLIB_MONO_p = \
133 -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
134 @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
135 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \
136 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \
137 @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
138 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \
139 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \
140 @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
141 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \
142 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \
143 @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
144 @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \
145 @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
146 @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \
147 @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
148 COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \
149 -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
150 @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p)
151 @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \
152 @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
153
154 ### Targets: ###
155
156 all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname)
157
158 install: all
159
160 uninstall:
161
162 install-strip: install
163
164 clean:
165 rm -rf ./.deps ./.pch
166 rm -f ./*.o
167 rm -f client$(EXEEXT)
168 rm -rf client.app
169 rm -f server$(EXEEXT)
170 rm -rf server.app
171
172 distclean: clean
173 rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
174
175 client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc)
176 $(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)
177 $(__client___mac_rezcmd)
178 $(__client___mac_setfilecmd)
179 $(__client___os2_emxbindcmd)
180 $(SAMPLES_RPATH_POSTLINK)
181
182 client.app/Contents/PkgInfo: client$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
183 mkdir -p client.app/Contents
184 mkdir -p client.app/Contents/MacOS
185 mkdir -p client.app/Contents/Resources
186
187
188 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
189 -e "s/EXECUTABLE/client/" \
190 -e "s/VERSION/$(WX_VERSION)/" \
191 $(top_srcdir)/src/mac/carbon/Info.plist.in >client.app/Contents/Info.plist
192
193
194 echo -n "APPL????" >client.app/Contents/PkgInfo
195
196
197 ln -f client$(EXEEXT) client.app/Contents/MacOS/client
198
199
200 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns client.app/Contents/Resources/wxmac.icns
201
202 @COND_PLATFORM_MACOSX_1@client_bundle: $(____client_BUNDLE_TGT_REF_DEP)
203
204 server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc)
205 $(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)
206 $(__server___mac_rezcmd)
207 $(__server___mac_setfilecmd)
208 $(__server___os2_emxbindcmd)
209 $(SAMPLES_RPATH_POSTLINK)
210
211 server.app/Contents/PkgInfo: server$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(top_srcdir)/src/mac/carbon/wxmac.icns
212 mkdir -p server.app/Contents
213 mkdir -p server.app/Contents/MacOS
214 mkdir -p server.app/Contents/Resources
215
216
217 sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
218 -e "s/EXECUTABLE/server/" \
219 -e "s/VERSION/$(WX_VERSION)/" \
220 $(top_srcdir)/src/mac/carbon/Info.plist.in >server.app/Contents/Info.plist
221
222
223 echo -n "APPL????" >server.app/Contents/PkgInfo
224
225
226 ln -f server$(EXEEXT) server.app/Contents/MacOS/server
227
228
229 cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns server.app/Contents/Resources/wxmac.icns
230
231 @COND_PLATFORM_MACOSX_1@server_bundle: $(____server_BUNDLE_TGT_REF_DEP)
232
233 client_client.o: $(srcdir)/client.cpp
234 $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $(srcdir)/client.cpp
235
236 client_client_rc.o: $(srcdir)/client.rc
237 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_6) $(__EXCEPTIONS_DEFINE_p_6) $(__RTTI_DEFINE_p_6) $(__THREAD_DEFINE_p_6) --include-dir $(srcdir) $(__DLLFLAG_p_6) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include
238
239 server_server.o: $(srcdir)/server.cpp
240 $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $(srcdir)/server.cpp
241
242 server_server_rc.o: $(srcdir)/server.rc
243 $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_6) $(__EXCEPTIONS_DEFINE_p_6) $(__RTTI_DEFINE_p_6) $(__THREAD_DEFINE_p_6) --include-dir $(srcdir) $(__DLLFLAG_p_6) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include
244
245
246 # Include dependency info, if present:
247 @IF_GNU_MAKE@-include .deps/*.d
248
249 .PHONY: all install uninstall clean distclean client_bundle server_bundle