]>
Commit | Line | Data |
---|---|---|
cbd63f42 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (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@ |
cbd63f42 | 13 | CPPFLAGS = @CPPFLAGS@ |
3af038c0 | 14 | CXX = @CXX@ |
cbd63f42 | 15 | CXXFLAGS = @CXXFLAGS@ |
b328fad3 | 16 | EXEEXT = @EXEEXT@ |
cbd63f42 | 17 | EXTRALIBS = @EXTRALIBS@ |
6c974d0b | 18 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ |
250700e4 | 19 | HOST_SUFFIX = @HOST_SUFFIX@ |
fcf61db4 | 20 | LDFLAGS = @LDFLAGS@ |
fcf61db4 | 21 | LDFLAGS_GUI = @LDFLAGS_GUI@ |
ec08d395 | 22 | NM = @NM@ |
3af038c0 VS |
23 | RESCOMP = @RESCOMP@ |
24 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ | |
ab892b95 | 25 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
3af038c0 | 26 | SETFILE = @SETFILE@ |
250700e4 | 27 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ |
3af038c0 | 28 | TOOLKIT = @TOOLKIT@ |
cbd63f42 | 29 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ |
fcf61db4 | 30 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ |
3af038c0 | 31 | srcdir = @srcdir@ |
cbd63f42 | 32 | top_builddir = @top_builddir@ |
3af038c0 | 33 | top_srcdir = @top_srcdir@ |
cbd63f42 | 34 | |
fcf61db4 VS |
35 | ### Variables: ### |
36 | ||
d179e30b | 37 | CLIENT_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
75a0a7b7 VS |
38 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
39 | -I$(srcdir)/../../samples $(CXXFLAGS) | |
d179e30b VS |
40 | CLIENT_OBJECTS = \ |
41 | $(__client___win32rc) \ | |
42 | client_client.o | |
076f10e0 | 43 | LIBDIRNAME = $(top_builddir)lib |
d179e30b | 44 | SERVER_CXXFLAGS = $(CPPFLAGS) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \ |
75a0a7b7 VS |
45 | -I$(top_srcdir)/include -I$(srcdir) $(__DLLFLAG_p) \ |
46 | -I$(srcdir)/../../samples $(CXXFLAGS) | |
d179e30b VS |
47 | SERVER_OBJECTS = \ |
48 | $(__server___win32rc) \ | |
49 | server_server.o | |
ec08d395 | 50 | WX_VERSION = 2.5.1 |
fcf61db4 | 51 | |
cbd63f42 VS |
52 | ### Conditionally set variables: ### |
53 | ||
b328fad3 VS |
54 | @COND_DEPS_TRACKING_0@CXXC = $(CXX) |
55 | @COND_DEPS_TRACKING_1@CXXC = $(top_builddir)./bk-deps $(CXX) | |
3af038c0 VS |
56 | @COND_USE_GUI_0@PORTNAME = base |
57 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
b1169abb | 58 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon |
076f10e0 VS |
59 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
60 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
3af038c0 | 61 | @COND_UNICODE_1@WXUNICODEFLAG = u |
fcf61db4 | 62 | @COND_WXUNIV_1@WXUNIVNAME = univ |
3af038c0 | 63 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL |
d179e30b VS |
64 | @COND_SHARED_1@__DLLFLAG_p_0 = --define WXUSINGDLL |
65 | @COND_SHARED_1@__DLLFLAG_p_6 = -d WXUSINGDLL | |
bdc408c4 VS |
66 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
67 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
076f10e0 VS |
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) | |
250700e4 RD |
71 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ |
72 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
076f10e0 VS |
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) | |
250700e4 RD |
76 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = \ |
77 | @COND_WXUSE_REGEX_BUILTIN@ -lwxregex$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
076f10e0 VS |
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) | |
250700e4 RD |
81 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ |
82 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(HOST_SUFFIX) | |
d179e30b | 83 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_2 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ |
75a0a7b7 | 84 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(top_srcdir)/include -i $(srcdir) \ |
b328fad3 | 85 | $(__DLLFLAG_p_6) -i $(srcdir)/../../samples -o client$(EXEEXT) Carbon.r \ |
ec08d395 | 86 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r |
d179e30b VS |
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 \ | |
75a0a7b7 | 89 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_0) -i $(top_srcdir)/include -i $(srcdir) \ |
b328fad3 | 90 | $(__DLLFLAG_p_6) -i $(srcdir)/../../samples -o server$(EXEEXT) Carbon.r \ |
ec08d395 | 91 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.r sample.r |
d179e30b | 92 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_3 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_3) |
250700e4 RD |
93 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = \ |
94 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)-2.5$(HOST_SUFFIX) | |
076f10e0 VS |
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) | |
d179e30b VS |
101 | @COND_MONOLITHIC_0@__WXLIB_NET_p = \ |
102 | @COND_MONOLITHIC_0@ -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)_net-2.5$(HOST_SUFFIX) | |
3af038c0 | 103 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ |
d179e30b VS |
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) | |
b328fad3 VS |
107 | @COND_PLATFORM_MAC_1@__client___mac_setfilecmd = \ |
108 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C client$(EXEEXT) | |
ec08d395 JS |
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) | |
d179e30b | 112 | @COND_PLATFORM_WIN32_1@__client___win32rc = client_sample_rc.o |
ab892b95 | 113 | @COND_PLATFORM_MACOSX_1@__client_bundle___depname = client_bundle |
d179e30b | 114 | @COND_PLATFORM_MAC_1@__server___mac_rezcmd = $(__MACOSX_RESOURCES_p_3) |
b328fad3 VS |
115 | @COND_PLATFORM_MAC_1@__server___mac_setfilecmd = \ |
116 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C server$(EXEEXT) | |
ec08d395 JS |
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) | |
d179e30b | 120 | @COND_PLATFORM_WIN32_1@__server___win32rc = server_sample_rc.o |
ab892b95 | 121 | @COND_PLATFORM_MACOSX_1@__server_bundle___depname = server_bundle |
cbd63f42 VS |
122 | |
123 | ### Targets: ### | |
124 | ||
b328fad3 | 125 | all: client$(EXEEXT) $(__client_bundle___depname) server$(EXEEXT) $(__server_bundle___depname) |
cbd63f42 | 126 | |
cbd63f42 | 127 | clean: |
ab892b95 | 128 | rm -rf ./.deps ./.pch |
076f10e0 | 129 | rm -f ./*.o |
b328fad3 | 130 | rm -f client$(EXEEXT) |
ab892b95 | 131 | rm -rf client.app |
b328fad3 | 132 | rm -f server$(EXEEXT) |
ab892b95 | 133 | rm -rf server.app |
d179e30b | 134 | |
b328fad3 | 135 | client$(EXEEXT): $(CLIENT_OBJECTS) $(__client___win32rc) |
ec08d395 | 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) |
d179e30b VS |
137 | $(__client___mac_rezcmd) |
138 | $(__client___mac_setfilecmd) | |
ec08d395 | 139 | $(__client___os2_emxbindcmd) |
ab892b95 VS |
140 | $(SAMPLES_RPATH_POSTLINK) |
141 | ||
ec08d395 | 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 |
ab892b95 VS |
143 | mkdir -p client.app/Contents |
144 | mkdir -p client.app/Contents/MacOS | |
145 | mkdir -p client.app/Contents/Resources | |
146 | ||
147 | ||
148 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
149 | -e "s/EXECUTABLE/client/" \ | |
75a0a7b7 | 150 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
151 | $(top_srcdir)/src/mac/Info.plist.in >client.app/Contents/Info.plist |
152 | ||
153 | ||
154 | echo -n "APPL????" >client.app/Contents/PkgInfo | |
155 | ||
156 | ||
b328fad3 | 157 | ln -f client$(EXEEXT) client.app/Contents/MacOS/client |
ab892b95 VS |
158 | |
159 | ||
ec08d395 | 160 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc client.app/Contents/Resources/client.rsrc |
ab892b95 VS |
161 | ln -f $(top_srcdir)/src/mac/wxmac.icns client.app/Contents/Resources/wxmac.icns |
162 | ||
1c3a6972 | 163 | @COND_PLATFORM_MACOSX_1@client_bundle: client.app/Contents/PkgInfo |
d179e30b VS |
164 | |
165 | client_client.o: $(srcdir)/client.cpp | |
b328fad3 | 166 | $(CXXC) -c -o $@ $(CLIENT_CXXFLAGS) $< |
d179e30b VS |
167 | |
168 | client_sample_rc.o: $(srcdir)/../../samples/sample.rc | |
ec08d395 | 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 |
cbd63f42 | 170 | |
3af038c0 | 171 | distclean: clean |
ab892b95 | 172 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
3af038c0 | 173 | |
cbd63f42 VS |
174 | install: all |
175 | ||
3af038c0 VS |
176 | install-strip: install |
177 | ||
b328fad3 | 178 | server$(EXEEXT): $(SERVER_OBJECTS) $(__server___win32rc) |
ec08d395 | 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) |
d179e30b VS |
180 | $(__server___mac_rezcmd) |
181 | $(__server___mac_setfilecmd) | |
ec08d395 | 182 | $(__server___os2_emxbindcmd) |
ab892b95 VS |
183 | $(SAMPLES_RPATH_POSTLINK) |
184 | ||
ec08d395 | 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 |
ab892b95 VS |
186 | mkdir -p server.app/Contents |
187 | mkdir -p server.app/Contents/MacOS | |
188 | mkdir -p server.app/Contents/Resources | |
189 | ||
190 | ||
191 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
192 | -e "s/EXECUTABLE/server/" \ | |
75a0a7b7 | 193 | -e "s/VERSION/$(WX_VERSION)/" \ |
ab892b95 VS |
194 | $(top_srcdir)/src/mac/Info.plist.in >server.app/Contents/Info.plist |
195 | ||
196 | ||
197 | echo -n "APPL????" >server.app/Contents/PkgInfo | |
198 | ||
199 | ||
b328fad3 | 200 | ln -f server$(EXEEXT) server.app/Contents/MacOS/server |
ab892b95 VS |
201 | |
202 | ||
ec08d395 | 203 | ln -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc server.app/Contents/Resources/server.rsrc |
ab892b95 VS |
204 | ln -f $(top_srcdir)/src/mac/wxmac.icns server.app/Contents/Resources/wxmac.icns |
205 | ||
1c3a6972 | 206 | @COND_PLATFORM_MACOSX_1@server_bundle: server.app/Contents/PkgInfo |
cbd63f42 | 207 | |
d179e30b | 208 | server_sample_rc.o: $(srcdir)/../../samples/sample.rc |
ec08d395 | 209 | $(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 |
cbd63f42 | 210 | |
d179e30b | 211 | server_server.o: $(srcdir)/server.cpp |
b328fad3 | 212 | $(CXXC) -c -o $@ $(SERVER_CXXFLAGS) $< |
cbd63f42 | 213 | |
fcf61db4 | 214 | uninstall: |
cbd63f42 VS |
215 | |
216 | ||
217 | # Include dependency info, if present: | |
49b0a3aa | 218 | @IF_GNU_MAKE@-include .deps/*.d |
cbd63f42 | 219 | |
ab892b95 | 220 | .PHONY: all clean client_bundle distclean install server_bundle uninstall |