]>
Commit | Line | Data |
---|---|---|
4b53b013 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3fd9c298 | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
4b53b013 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
af1337b0 JS |
6 | |
7 | ||
4b53b013 VS |
8 | @MAKE_SET@ |
9 | ||
10 | prefix = @prefix@ | |
11 | exec_prefix = @exec_prefix@ | |
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@ | |
4b53b013 VS |
21 | CXX = @CXX@ |
22 | CXXFLAGS = @CXXFLAGS@ | |
b17c1746 DE |
23 | CPPFLAGS = @CPPFLAGS@ |
24 | LDFLAGS = @LDFLAGS@ | |
589e20d0 | 25 | WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@ |
b17c1746 DE |
26 | TOOLKIT = @TOOLKIT@ |
27 | TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@ | |
28 | TOOLKIT_VERSION = @TOOLKIT_VERSION@ | |
29 | TOOLCHAIN_NAME = @TOOLCHAIN_NAME@ | |
4b53b013 | 30 | EXTRALIBS = @EXTRALIBS@ |
9fd04dde | 31 | EXTRALIBS_XML = @EXTRALIBS_XML@ |
b17c1746 DE |
32 | EXTRALIBS_HTML = @EXTRALIBS_HTML@ |
33 | EXTRALIBS_GUI = @EXTRALIBS_GUI@ | |
078c7a59 | 34 | EXTRALIBS_SDL = @EXTRALIBS_SDL@ |
250700e4 | 35 | HOST_SUFFIX = @HOST_SUFFIX@ |
4b53b013 | 36 | SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@ |
ab892b95 | 37 | SAMPLES_RPATH_POSTLINK = @SAMPLES_RPATH_POSTLINK@ |
4b53b013 VS |
38 | |
39 | ### Variables: ### | |
40 | ||
a4ad36cd | 41 | DESTDIR = |
ceec2216 | 42 | WX_RELEASE = 2.5 |
7714864e | 43 | WX_VERSION = $(WX_RELEASE).3 |
b17c1746 | 44 | LIBDIRNAME = $(top_builddir)lib |
9bfe7ad9 | 45 | XRCDEMO_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) -I$(srcdir) \ |
ceec2216 | 46 | $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CPPFLAGS) $(CXXFLAGS) |
3f55f5b8 | 47 | XRCDEMO_OBJECTS = \ |
a4ad36cd | 48 | $(__xrcdemo_os2_lib_res) \ |
3f55f5b8 VS |
49 | xrcdemo_xrcdemo.o \ |
50 | xrcdemo_myframe.o \ | |
51 | xrcdemo_derivdlg.o \ | |
52 | xrcdemo_custclas.o \ | |
53 | $(__xrcdemo___win32rc) | |
4b53b013 VS |
54 | |
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) | |
078c7a59 | 59 | @COND_USE_PLUGINS_0@PLUGIN_ADV_EXTRALIBS = $(EXTRALIBS_SDL) |
4b53b013 VS |
60 | @COND_USE_GUI_0@PORTNAME = base |
61 | @COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION) | |
62 | @COND_TOOLKIT_MAC@WXBASEPORT = _carbon | |
3f55f5b8 VS |
63 | @COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@WXDEBUGFLAG = d |
64 | @COND_DEBUG_FLAG_1@WXDEBUGFLAG = d | |
4b53b013 VS |
65 | @COND_UNICODE_1@WXUNICODEFLAG = u |
66 | @COND_WXUNIV_1@WXUNIVNAME = univ | |
b17c1746 DE |
67 | @COND_PLATFORM_MAC_1@__xrcdemo___mac_setfilecmd = \ |
68 | @COND_PLATFORM_MAC_1@ $(SETFILE) -a C xrcdemo$(EXEEXT) | |
69 | @COND_PLATFORM_MAC_1@__xrcdemo___mac_rezcmd = $(__MACOSX_RESOURCES_p_1) | |
70 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
71 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__ | |
72 | @COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__ | |
4b53b013 VS |
73 | @COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL |
74 | @COND_SHARED_1@__DLLFLAG_p_1 = -d WXUSINGDLL | |
250700e4 | 75 | @COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL |
b17c1746 DE |
76 | COND_PLATFORM_OS2_1___xrcdemo___os2_emxbindcmd = $(NM) xrcdemo$(EXEEXT) | if \ |
77 | grep -q pmwin.763 ; then emxbind -ep xrcdemo$(EXEEXT) ; fi | |
78 | @COND_PLATFORM_OS2_1@__xrcdemo___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___xrcdemo___os2_emxbindcmd) | |
79 | @COND_PLATFORM_OS2_1@__xrcdemo_os2_lib_res = \ | |
80 | @COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res | |
81 | @COND_PLATFORM_MACOSX_1@__xrcdemo_bundle___depname = xrcdemo_bundle | |
c4839ccf JS |
82 | @COND_TOOLKIT_COCOA@____xrcdemo_BUNDLE_TGT_REF_DEP = \ |
83 | @COND_TOOLKIT_COCOA@ xrcdemo.app/Contents/PkgInfo | |
84 | @COND_TOOLKIT_MAC@____xrcdemo_BUNDLE_TGT_REF_DEP = \ | |
85 | @COND_TOOLKIT_MAC@ xrcdemo.app/Contents/PkgInfo | |
ceec2216 | 86 | COND_MONOLITHIC_0___WXLIB_XRC_p = \ |
a1bf307a | 87 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xrc-$(WX_RELEASE)$(HOST_SUFFIX) |
ceec2216 | 88 | @COND_MONOLITHIC_0@__WXLIB_XRC_p = $(COND_MONOLITHIC_0___WXLIB_XRC_p) |
b17c1746 | 89 | COND_MONOLITHIC_0___WXLIB_HTML_p = \ |
a1bf307a | 90 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 DE |
91 | @COND_MONOLITHIC_0@__WXLIB_HTML_p = $(COND_MONOLITHIC_0___WXLIB_HTML_p) |
92 | COND_MONOLITHIC_0___WXLIB_ADV_p = \ | |
a1bf307a | 93 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 DE |
94 | @COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p) |
95 | COND_MONOLITHIC_0___WXLIB_CORE_p = \ | |
a1bf307a | 96 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 | 97 | @COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p) |
ceec2216 | 98 | COND_MONOLITHIC_0___WXLIB_XML_p = \ |
a1bf307a | 99 | -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml-$(WX_RELEASE)$(HOST_SUFFIX) |
ceec2216 RL |
100 | @COND_MONOLITHIC_0@__WXLIB_XML_p = $(COND_MONOLITHIC_0___WXLIB_XML_p) |
101 | COND_MONOLITHIC_0___WXLIB_BASE_p = \ | |
a1bf307a | 102 | -lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
ceec2216 | 103 | @COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p) |
b17c1746 DE |
104 | @COND_PLATFORM_WIN32_1@__xrcdemo___win32rc = xrcdemo_xrcdemo_rc.o |
105 | COND_MONOLITHIC_1___WXLIB_MONO_p = \ | |
a1bf307a | 106 | -lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 DE |
107 | @COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p) |
108 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@__LIB_TIFF_p \ | |
109 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ = \ | |
ceec2216 | 110 | @COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
3f55f5b8 VS |
111 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@__LIB_JPEG_p \ |
112 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ = \ | |
ceec2216 | 113 | @COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
3f55f5b8 VS |
114 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@__LIB_PNG_p \ |
115 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ = \ | |
ceec2216 | 116 | @COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
250700e4 | 117 | @COND_WXUSE_ZLIB_BUILTIN@__LIB_ZLIB_p = \ |
ceec2216 | 118 | @COND_WXUSE_ZLIB_BUILTIN@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
b17c1746 | 119 | @COND_WXUSE_ODBC_BUILTIN@__LIB_ODBC_p = \ |
7714864e | 120 | @COND_WXUSE_ODBC_BUILTIN@ -lwxodbc$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
ceec2216 RL |
121 | COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p = \ |
122 | -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) | |
123 | @COND_WXUSE_REGEX_BUILTIN@__LIB_REGEX_p = $(COND_WXUSE_REGEX_BUILTIN___LIB_REGEX_p) | |
b17c1746 | 124 | @COND_WXUSE_EXPAT_BUILTIN@__LIB_EXPAT_p = \ |
ceec2216 | 125 | @COND_WXUSE_EXPAT_BUILTIN@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) |
3f55f5b8 | 126 | COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1 = $(RESCOMP) -d __DARWIN__ -t APPL -d \ |
9bfe7ad9 | 127 | __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) -i $(srcdir) $(__DLLFLAG_p_1) -i \ |
ceec2216 | 128 | $(srcdir)/../../samples -i $(top_srcdir)/include -o xrcdemo$(EXEEXT) Carbon.r \ |
7714864e | 129 | $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.r sample.r |
3f55f5b8 | 130 | @COND_TOOLKIT_MAC@__MACOSX_RESOURCES_p_1 = $(COND_TOOLKIT_MAC___MACOSX_RESOURCES_p_1) |
4b53b013 VS |
131 | |
132 | ### Targets: ### | |
133 | ||
b328fad3 | 134 | all: xrcdemo$(EXEEXT) $(__xrcdemo_bundle___depname) data |
4b53b013 | 135 | |
b17c1746 DE |
136 | install: all |
137 | ||
138 | uninstall: | |
139 | ||
140 | install-strip: install | |
141 | ||
4b53b013 | 142 | clean: |
ab892b95 | 143 | rm -rf ./.deps ./.pch |
3f55f5b8 | 144 | rm -f ./*.o |
b328fad3 | 145 | rm -f xrcdemo$(EXEEXT) |
ab892b95 | 146 | rm -rf xrcdemo.app |
4b53b013 | 147 | |
4b53b013 | 148 | distclean: clean |
ab892b95 | 149 | rm -f configure config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile |
4b53b013 | 150 | |
b328fad3 | 151 | xrcdemo$(EXEEXT): $(XRCDEMO_OBJECTS) $(__xrcdemo___win32rc) |
ceec2216 | 152 | $(CXX) -o $@ $(XRCDEMO_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_XRC_p) $(__WXLIB_HTML_p) $(EXTRALIBS_HTML) $(__WXLIB_ADV_p) $(PLUGIN_ADV_EXTRALIBS) $(__WXLIB_CORE_p) $(__WXLIB_XML_p) $(EXTRALIBS_XML) $(__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) |
4b53b013 VS |
153 | $(__xrcdemo___mac_rezcmd) |
154 | $(__xrcdemo___mac_setfilecmd) | |
ec08d395 | 155 | $(__xrcdemo___os2_emxbindcmd) |
ab892b95 VS |
156 | $(SAMPLES_RPATH_POSTLINK) |
157 | ||
7714864e | 158 | xrcdemo.app/Contents/PkgInfo: xrcdemo$(EXEEXT) $(top_srcdir)/src/mac/carbon/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc $(top_srcdir)/src/mac/carbon/wxmac.icns |
ab892b95 VS |
159 | mkdir -p xrcdemo.app/Contents |
160 | mkdir -p xrcdemo.app/Contents/MacOS | |
161 | mkdir -p xrcdemo.app/Contents/Resources | |
162 | ||
163 | ||
164 | sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \ | |
165 | -e "s/EXECUTABLE/xrcdemo/" \ | |
75a0a7b7 | 166 | -e "s/VERSION/$(WX_VERSION)/" \ |
13462421 | 167 | $(top_srcdir)/src/mac/carbon/Info.plist.in >xrcdemo.app/Contents/Info.plist |
ab892b95 VS |
168 | |
169 | ||
170 | echo -n "APPL????" >xrcdemo.app/Contents/PkgInfo | |
171 | ||
172 | ||
b328fad3 | 173 | ln -f xrcdemo$(EXEEXT) xrcdemo.app/Contents/MacOS/xrcdemo |
ab892b95 VS |
174 | |
175 | ||
7714864e | 176 | cp -f $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).3.rsrc xrcdemo.app/Contents/Resources/xrcdemo.rsrc |
c4839ccf | 177 | cp -f $(top_srcdir)/src/mac/carbon/wxmac.icns xrcdemo.app/Contents/Resources/wxmac.icns |
ab892b95 | 178 | |
c4839ccf | 179 | @COND_PLATFORM_MACOSX_1@xrcdemo_bundle: $(____xrcdemo_BUNDLE_TGT_REF_DEP) |
4b53b013 | 180 | |
b17c1746 DE |
181 | data: |
182 | @mkdir -p ./rc | |
183 | @for f in appicon.ico appicon.xpm artprov.xpm artprov.xrc basicdlg.xpm basicdlg.xrc controls.xpm controls.xrc custclas.xpm custclas.xrc derivdlg.xpm derivdlg.xrc fileopen.gif filesave.gif frame.xrc fuzzy.gif menu.xrc platform.xpm platform.xrc quotes.gif resource.xrc scanning.gif sppicon.ico toolbar.xrc uncenter.xpm uncenter.xrc update.gif variable.xpm variable.xrc; do \ | |
184 | if test \( ! -s ./rc/$$f \) -o \( $(srcdir)/rc/$$f -nt ./rc/$$f \) ; then \ | |
185 | cp -pRf $(srcdir)/rc/$$f ./rc ; \ | |
186 | fi; \ | |
187 | done | |
4b53b013 | 188 | |
b17c1746 | 189 | xrcdemo_xrcdemo.o: $(srcdir)/xrcdemo.cpp |
b328fad3 | 190 | $(CXXC) -c -o $@ $(XRCDEMO_CXXFLAGS) $< |
4b53b013 VS |
191 | |
192 | xrcdemo_myframe.o: $(srcdir)/myframe.cpp | |
b328fad3 | 193 | $(CXXC) -c -o $@ $(XRCDEMO_CXXFLAGS) $< |
4b53b013 | 194 | |
b17c1746 DE |
195 | xrcdemo_derivdlg.o: $(srcdir)/derivdlg.cpp |
196 | $(CXXC) -c -o $@ $(XRCDEMO_CXXFLAGS) $< | |
197 | ||
198 | xrcdemo_custclas.o: $(srcdir)/custclas.cpp | |
b328fad3 | 199 | $(CXXC) -c -o $@ $(XRCDEMO_CXXFLAGS) $< |
4b53b013 | 200 | |
250700e4 | 201 | xrcdemo_xrcdemo_rc.o: $(srcdir)/xrcdemo.rc |
ceec2216 | 202 | $(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples --include-dir $(top_srcdir)/include |
250700e4 | 203 | |
4b53b013 VS |
204 | |
205 | # Include dependency info, if present: | |
206 | @IF_GNU_MAKE@-include .deps/*.d | |
207 | ||
b17c1746 | 208 | .PHONY: all install uninstall clean distclean xrcdemo_bundle data |