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