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