]>
Commit | Line | Data |
---|---|---|
cbd63f42 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3fd9c298 | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
cbd63f42 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | ||
8 | @MAKE_SET@ | |
9 | ||
3af038c0 VS |
10 | prefix = @prefix@ |
11 | exec_prefix = @exec_prefix@ | |
b1169abb | 12 | INSTALL = @INSTALL@ |
b17c1746 DE |
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@ | |
3af038c0 | 21 | CXX = @CXX@ |
cbd63f42 | 22 | CXXFLAGS = @CXXFLAGS@ |
b17c1746 DE |
23 | CPPFLAGS = @CPPFLAGS@ |
24 | LDFLAGS = @LDFLAGS@ | |
25 | TOOLKIT = @TOOLKIT@ | |
26 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
27 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
28 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
cbd63f42 | 29 | EXTRALIBS = @EXTRALIBS@ |
6c974d0b | 30 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ |
250700e4 | 31 | HOST_SUFFIX = @HOST_SUFFIX@ |
3af038c0 | 32 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ |
ab892b95 | 33 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
cbd63f42 | 34 | |
fcf61db4 VS |
35 | ### Variables: ### |
36 | ||
b17c1746 | 37 | DESTDIR = |
c4839ccf | 38 | WX_VERSION = 2.5.2 |
b17c1746 | 39 | LIBDIRNAME = $(top_builddir)lib |
9bfe7ad9 VS |
40 | CLIENT_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \ |
41 | $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS) | |
d179e30b VS |
42 | CLIENT_OBJECTS = \ |
43 | $(__client___win32rc) \ | |
a4ad36cd | 44 | $(os2_lib_res) \ |
d179e30b | 45 | client_client.o |
9bfe7ad9 VS |
46 | SERVER_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \ |
47 | $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS) | |
d179e30b VS |
48 | SERVER_OBJECTS = \ |
49 | $(__server___win32rc) \ | |
a4ad36cd | 50 | $(os2_lib_res) \ |
d179e30b | 51 | server_server.o |
fcf61db4 | 52 | |
cbd63f42 VS |
53 | ### Conditionally set variables: ### |
54 | ||
b328fad3 VS |
55 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
56 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
3af038c0 VS |
57 | @COND_USE_GUI_0@PORTNAME = base |
58 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
b1169abb | 59 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon |
076f10e0 VS |
60 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
61 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
3af038c0 | 62 | @COND_UNICODE_1@WXUNICODEFLAG = u |
fcf61db4 | 63 | @COND_WXUNIV_1@WXUNIVNAME = univ |
b328fad3 VS |
64 | @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \ |
65 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT) | |
b17c1746 | 66 | @COND_PLATFORM_MAC_1@__client___mac_rezcmd = $(__MACOSX_RESOURCES_p_2) |
ec08d395 JS |
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) | |
d179e30b | 70 | @COND_PLATFORM_WIN32_1@__client___win32rc = client_sample_rc.o |
ab892b95 | 71 | @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle |
c4839ccf JS |
72 | @COND_TOOLKIT_COCOA@____client_BUNDLE_TGT_REF_DEP = \ |
73 | @COND_TOOLKIT_COCOA@ client.app/Contents/PkgInfo | |
74 | @COND_TOOLKIT_MAC@____client_BUNDLE_TGT_REF_DEP = \ | |
75 | @COND_TOOLKIT_MAC@ client.app/Contents/PkgInfo | |
b328fad3 VS |
76 | @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \ |
77 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT) | |
b17c1746 | 78 | @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3) |
ec08d395 JS |
79 | COND_PLATFORM_OS2_1___server___os2_emxbindcmd = $(NM) server$(EXEEXT) | if grep \ |
80 | -q pmwin.763 ; then emxbind -ep server$(EXEEXT) ; fi | |
81 | @COND_PLATFORM_OS2_1@__server___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___server___os2_emxbindcmd) | |
d179e30b | 82 | @COND_PLATFORM_WIN32_1@__server___win32rc = server_sample_rc.o |
ab892b95 | 83 | @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle |
c4839ccf JS |
84 | @COND_TOOLKIT_COCOA@____server_BUNDLE_TGT_REF_DEP = \ |
85 | @COND_TOOLKIT_COCOA@ server.app/Contents/PkgInfo | |
86 | @COND_TOOLKIT_MAC@____server_BUNDLE_TGT_REF_DEP = \ | |
87 | @COND_TOOLKIT_MAC@ server.app/Contents/PkgInfo | |
b17c1746 DE |
88 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ |
89 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \ | |
c3255f5f | 90 | $(srcdir)/../../samples -i $(top_srcdir)/include -o client$(EXEEXT) Carbon.r \ |
c4839ccf | 91 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.r sample.r |
b17c1746 DE |
92 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_2 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2) |
93 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ | |
94 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(srcdir) $(__DLLFLAG_p_0) -i \ | |
c3255f5f | 95 | $(srcdir)/../../samples -i $(top_srcdir)/include -o server$(EXEEXT) Carbon.r \ |
c4839ccf | 96 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.r sample.r |
b17c1746 DE |
97 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3) |
98 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
99 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_0 = -d __WXUNIVERSAL__ | |
100 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_6 = --define __WXUNIVERSAL__ | |
101 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL | |
102 | @COND_SHARED_1@__DLLFLAG_p_0 = -d WXUSINGDLL | |
103 | @COND_SHARED_1@__DLLFLAG_p_6 = --define WXUSINGDLL | |
a4ad36cd | 104 | @COND_PLATFORM_OS2_1@os2_lib_res = $(top_srcdir)/include/wx/os2/wx.res |
b17c1746 DE |
105 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ |
106 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core-2.5$(HOST_SUFFIX) | |
107 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) | |
108 | @COND_MONOLITHIC_0@__WXLIB_NET_p = \ | |
109 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net-2.5$(HOST_SUFFIX) | |
110 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ | |
111 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
112 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
113 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
114 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) | |
115 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ | |
116 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
117 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
118 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ | |
119 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
120 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
121 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ | |
122 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
123 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
124 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ | |
125 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
126 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ | |
127 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
128 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ | |
b92ca8cf | 129 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(HOST_SUFFIX) |
b17c1746 DE |
130 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
131 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
cbd63f42 VS |
132 | |
133 | ### Targets: ### | |
134 | ||
b328fad3 | 135 | all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname) |
cbd63f42 | 136 | |
b17c1746 DE |
137 | install: all |
138 | ||
139 | uninstall: | |
140 | ||
141 | install-strip: install | |
142 | ||
cbd63f42 | 143 | clean: |
ab892b95 | 144 | rm -rf ./.deps ./.pch |
076f10e0 | 145 | rm -f ./*.o |
b328fad3 | 146 | rm -f client$(EXEEXT) |
ab892b95 | 147 | rm -rf client.app |
b328fad3 | 148 | rm -f server$(EXEEXT) |
ab892b95 | 149 | rm -rf server.app |
d179e30b | 150 | |
b17c1746 DE |
151 | distclean: clean |
152 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile | |
153 | ||
b328fad3 | 154 | client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc) |
ec08d395 | 155 | $(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) |
d179e30b VS |
156 | $(__client___mac_rezcmd) |
157 | $(__client___mac_setfilecmd) | |
ec08d395 | 158 | $(__client___os2_emxbindcmd) |
ab892b95 VS |
159 | $(SAMPLES_RPATH_POSTLINK) |
160 | ||
c4839ccf | 161 | client.app/Contents/PkgInfo: client$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns |
ab892b95 VS |
162 | mkdir -p client.app/Contents |
163 | mkdir -p client.app/Contents/MacOS | |
164 | mkdir -p client.app/Contents/Resources | |
165 | ||
166 | ||
167 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
168 | -e "s/EXECUTABLE/client/" \ | |
75a0a7b7 | 169 | -e "s/VERSION/$(WX_VERSION)/" \ |
0b0efa9a | 170 | $(top_srcdir)/src/mac/carbon/Info.plist.in >client.app/Contents/Info.plist |
ab892b95 VS |
171 | |
172 | ||
173 | echo -n "APPL????" >client.app/Contents/PkgInfo | |
174 | ||
175 | ||
b328fad3 | 176 | ln -f client$(EXEEXT) client.app/Contents/MacOS/client |
ab892b95 VS |
177 | |
178 | ||
c4839ccf JS |
179 | cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.rsrc client.app/Contents/Resources/client.rsrc |
180 | cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns client.app/Contents/Resources/wxmac.icns | |
ab892b95 | 181 | |
c4839ccf | 182 | @COND_PLATFORM_MACOSX_1@client_bundle: $(____client_BUNDLE_TGT_REF_DEP) |
d179e30b | 183 | |
b328fad3 | 184 | server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc) |
ec08d395 | 185 | $(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) |
d179e30b VS |
186 | $(__server___mac_rezcmd) |
187 | $(__server___mac_setfilecmd) | |
ec08d395 | 188 | $(__server___os2_emxbindcmd) |
ab892b95 VS |
189 | $(SAMPLES_RPATH_POSTLINK) |
190 | ||
c4839ccf | 191 | server.app/Contents/PkgInfo: server$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns |
ab892b95 VS |
192 | mkdir -p server.app/Contents |
193 | mkdir -p server.app/Contents/MacOS | |
194 | mkdir -p server.app/Contents/Resources | |
195 | ||
196 | ||
197 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
198 | -e "s/EXECUTABLE/server/" \ | |
75a0a7b7 | 199 | -e "s/VERSION/$(WX_VERSION)/" \ |
0b0efa9a | 200 | $(top_srcdir)/src/mac/carbon/Info.plist.in >server.app/Contents/Info.plist |
ab892b95 VS |
201 | |
202 | ||
203 | echo -n "APPL????" >server.app/Contents/PkgInfo | |
204 | ||
205 | ||
b328fad3 | 206 | ln -f server$(EXEEXT) server.app/Contents/MacOS/server |
ab892b95 VS |
207 | |
208 | ||
c4839ccf JS |
209 | cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).2.rsrc server.app/Contents/Resources/server.rsrc |
210 | cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns server.app/Contents/Resources/wxmac.icns | |
ab892b95 | 211 | |
c4839ccf | 212 | @COND_PLATFORM_MACOSX_1@server_bundle: $(____server_BUNDLE_TGT_REF_DEP) |
cbd63f42 | 213 | |
b17c1746 | 214 | client_sample_rc.o: $(srcdir)/../../samples/sample.rc |
c3255f5f | 215 | $(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 |
b17c1746 DE |
216 | |
217 | client_client.o: $(srcdir)/client.cpp | |
218 | $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $< | |
219 | ||
d179e30b | 220 | server_sample_rc.o: $(srcdir)/../../samples/sample.rc |
c3255f5f | 221 | $(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 |
cbd63f42 | 222 | |
d179e30b | 223 | server_server.o: $(srcdir)/server.cpp |
b328fad3 | 224 | $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $< |
cbd63f42 | 225 | |
cbd63f42 VS |
226 | |
227 | # Include dependency info, if present: | |
49b0a3aa | 228 | @IF_GNU_MAKE@-include .deps/*.d |
cbd63f42 | 229 | |
b17c1746 | 230 | .PHONY: all install uninstall clean distclean client_bundle server_bundle |