diff user/build.xml @ 393:6ae782a085e0

Added init program
author Windel Bouwman
date Sat, 17 May 2014 21:17:40 +0200
parents d056b552d3f4
children c0d9837acde8
line wrap: on
line diff
--- a/user/build.xml	Fri May 16 13:05:10 2014 +0200
+++ b/user/build.xml	Sat May 17 21:17:40 2014 +0200
@@ -1,12 +1,32 @@
 
 <project name="Userspace" default="all">
-   <target name="all" depends="hello">
-   </target>
-   <target name="hello">
-     <compile sources="lib.c3;ipc.c3;hello.c3" target="arm" output="hello.o"/>
-     <link output="hello.bin" layout="app.mmap"
-        target="arm"
-        objects="hello.o"/>
+    <target name="all" depends="hello,init">
+    </target>
+
+    <target name="lib">
+        <compile sources="lib.c3;ipc.c3" target="arm" output="lib.o"/>
+    </target>
+
+    <target name="hello" depends="lib">
+        <compile sources="hello.c3"
+                 includes="lib.c3;ipc.c3"
+                 target="arm"
+                 output="hello.o"/>
+        <link output="hello" layout="app.mmap"
+            target="arm"
+            objects="hello.o;lib.o"/>
+    </target>
+
+    <target name="init">
+        <compile sources="init.c3"
+            includes="lib.c3;ipc.c3"
+            target="arm"
+            output="init.o"/>
+        <link
+            output="init"
+            layout="app.mmap"
+            target="arm"
+            objects="init.o;lib.o"/>
     </target>
 </project>