1 <!-- ant file to make the emu runtime tools -->
3 <project name="emu-runtime-tools" default="make" basedir=".">
4 <!-- cpptasks task & type def
5 <taskdef resource="cpptasks.tasks">
7 <pathelement location="../../../jtools/3rdparty/lib/cpptasks.jar"/>
10 <typedef resource="cpptasks.types">
12 <pathelement location="../../../jtools/3rdparty/lib/cpptasks.jar"/>
17 <!-- cleans all compilation artifacts -->
18 <target name="clean" description="cleans all compilation artifacts">
22 <include name="platform_config.h"/>
27 <!-- make the emu runtime tools -->
28 <target name="make" depends="clean,emu-dump,emu-lejosrun" description="makes the emu runtime tools">
31 <!-- make emu-dump -->
32 <target name="emu-dump" depends="platform_config" description="makes emu-dump">
33 <cc subsystem="console"
43 <include name="dump.c"/>
44 <include name="load.c"/>
47 <pathelement location="."/>
48 <pathelement location="../../javavm"/>
50 <versioninfo refid="leJOS NXJ 0.5"/>
54 <!-- make platform_config.h -->
55 <target name="platform_config" description="makes platform_config.h">
56 <cc subsystem="console"
66 <include name="dump_config.c"/>
69 <pathelement location="."/>
71 <versioninfo refid="leJOS NXJ 0.5"/>
73 <exec executable="${basedir}/dump_config" failonerror="true" dir=".">
74 <redirector outputproperty="platform_config.h">
75 <outputmapper type="merge" to="platform_config.h" />
80 <!-- make emu-lejosrun -->
81 <target name="emu-lejosrun" description="makes emu-lejosrun">
82 <cc subsystem="console"
83 outfile="emu-lejosrun"
91 <fileset dir="../../javavm">
92 <include name="interpreter.c"/>
93 <include name="threads.c"/>
94 <include name="exceptions.c"/>
95 <include name="memory.c"/>
96 <include name="language.c"/>
97 <include name="poll.c"/>
100 <include name="verbose.c"/>
101 <include name="sensors.c"/>
102 <include name="tvmemul.c"/>
103 <include name="traceemul.c"/>
104 <include name="nativeemul.c"/>
105 <include name="load.c"/>
106 <include name="opcodeinfo.c"/>
109 <pathelement location="."/>
110 <pathelement location="../../javavm"/>
112 <versioninfo refid="leJOS NXJ 0.5"/>