377
|
1
|
|
2 <project name="Userspace" default="all">
|
393
|
3 <target name="all" depends="hello,init">
|
|
4 </target>
|
|
5
|
|
6 <target name="lib">
|
|
7 <compile sources="lib.c3;ipc.c3" target="arm" output="lib.o"/>
|
|
8 </target>
|
|
9
|
|
10 <target name="hello" depends="lib">
|
|
11 <compile sources="hello.c3"
|
|
12 includes="lib.c3;ipc.c3"
|
|
13 target="arm"
|
|
14 output="hello.o"/>
|
|
15 <link output="hello" layout="app.mmap"
|
|
16 target="arm"
|
|
17 objects="hello.o;lib.o"/>
|
|
18 </target>
|
|
19
|
|
20 <target name="init">
|
|
21 <compile sources="init.c3"
|
|
22 includes="lib.c3;ipc.c3"
|
|
23 target="arm"
|
|
24 output="init.o"/>
|
398
|
25
|
393
|
26 <link
|
|
27 output="init"
|
|
28 layout="app.mmap"
|
|
29 target="arm"
|
398
|
30 objects="init.o;lib.o" />
|
|
31
|
|
32 <objcopy objectfile="init"
|
|
33 imagename="flash"
|
|
34 output="init.bin" />
|
377
|
35 </target>
|
|
36 </project>
|
|
37
|