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"/>
16 <!-- cleans all compilation artifacts -->
17 <target name="clean" description="cleans all compilation artifacts">
21 <include name="platform_config.h"/>
26 <!-- make the emu runtime tools -->
27 <target name="make" depends="clean,emu-dump,emu-lejosrun" description="makes the emu runtime tools">
30 <!-- make emu-dump -->
31 <target name="emu-dump" depends="platform_config" description="makes emu-dump">
32 <cc subsystem="console"
42 <include name="dump.c"/>
43 <include name="load.c"/>
46 <pathelement location="."/>
47 <pathelement location="../../javavm"/>
49 <versioninfo refid="lejos nxt 0.1"/>
53 <!-- make platform_config.h -->
54 <target name="platform_config" description="makes platform_config.h">
55 <cc subsystem="console"
65 <include name="dump_config.c"/>
68 <pathelement location="."/>
70 <versioninfo refid="lejos nxt 0.1"/>
72 <exec executable="${basedir}/dump_config" failonerror="true" dir=".">
73 <redirector outputproperty="platform_config.h">
74 <outputmapper type="merge" to="platform_config.h" />
79 <!-- make emu-lejosrun -->
80 <target name="emu-lejosrun" description="makes emu-lejosrun">
81 <cc subsystem="console"
82 outfile="emu-lejosrun"
90 <fileset dir="../../javavm">
91 <include name="interpreter.c"/>
92 <include name="threads.c"/>
93 <include name="exceptions.c"/>
94 <include name="memory.c"/>
95 <include name="language.c"/>
96 <include name="poll.c"/>
99 <include name="verbose.c"/>
100 <include name="sensors.c"/>
101 <include name="tvmemul.c"/>
102 <include name="traceemul.c"/>
103 <include name="nativeemul.c"/>
104 <include name="load.c"/>
105 <include name="opcodeinfo.c"/>
108 <pathelement location="."/>
109 <pathelement location="../../javavm"/>
111 <versioninfo refid="lejos nxt 0.1"/>