1 <?xml version="1.0" encoding="ISO-8859-15" ?>
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 <xsl:template match="/" mode="fcode">
7 <xsl:text> # # fcode rules # </xsl:text>
9 <!-- Create linker targets for FCode roms -->
10 <xsl:for-each select="//fcode">
11 <xsl:variable name="outer-conditions">
12 <xsl:text>0</xsl:text>
13 <xsl:for-each select="(ancestor-or-self::*)[@condition!='']">
14 <xsl:call-template name="resolve-condition">
15 <xsl:with-param select="@condition" name="expression"/>
20 <xsl:if test="$outer-conditions = 0">
21 <xsl:if test="(ancestor-or-self::*)">
23 <xsl:variable name="path">
24 <xsl:for-each select="ancestor::build">
25 <xsl:call-template name="get-dirname">
26 <xsl:with-param select="@base" name="path"/>
32 <xsl:text>$(ODIR)/</xsl:text>
33 <xsl:value-of select="@name"/>
34 <xsl:text>:</xsl:text>
36 <xsl:text> $(SRCDIR)/</xsl:text>
37 <xsl:value-of select="$path"/>
38 <xsl:value-of select="@source"/>
40 <!-- FIXME this requires strict spaces in rules.xml -->
41 <xsl:value-of select="document('rules.xml',.)//rule[@target='host'][@entity='fcode']"/>
42 <xsl:text> </xsl:text>