1<?xml version="1.0" ?>
2<makefile>
3
4    <include file="../../build/bakefiles/common_samples.bkl"/>
5
6    <exe id="wxrc" cond="USE_XRC=='1'"
7         template="wx_util_console" template_append="wx_append_base">
8        <sources>wxrc.cpp</sources>
9        <wx-lib>xml</wx-lib>
10        <wx-lib>base</wx-lib>
11        <install-to>$(BINDIR)</install-to>
12    </exe>
13
14    <if cond="FORMAT=='autoconf'">
15        
16        <!-- Install wxrc as $prefix/bin/wxrc-$version with a wxrc symlink
17             pointing to it, so that users can use wxrc from different
18             versions. -->
19    
20        <set var="versioned_name">wxrc-$(WX_RELEASE)</set>
21        <modify-target target="install_wxrc">
22            <command>
23	        rm -f $(DESTDIR)$(BINDIR)/wxrc$(EXEEXT) $(DESTDIR)$(BINDIR)/$(versioned_name)
24		$(INSTALL_PROGRAM) wxrc$(EXEEXT) $(DESTDIR)$(BINDIR)
25                mv -f $(DESTDIR)$(BINDIR)/wxrc$(EXEEXT) $(DESTDIR)$(BINDIR)/$(versioned_name)
26                (cd $(DESTDIR)$(BINDIR) &amp;&amp; $(LN_S) $(versioned_name) wxrc$(EXEEXT))
27            </command>
28        </modify-target>
29    </if>
30
31</makefile>
32