comparison user/build.xml @ 402:0fb6633c42f6

Moved several files to logical locations
author Windel Bouwman
date Thu, 19 Feb 2015 00:13:07 +0100
parents c0d9837acde8
children a284749c5729
comparison
equal deleted inserted replaced
401:994c00d55fd5 402:0fb6633c42f6
1 1
2 <project name="Userspace" default="all"> 2 <project name="Userspace" default="all">
3 <target name="all" depends="hello,init"> 3 <target name="all" depends="hello,init">
4 </target> 4 </target>
5 5
6 <target name="lib"> 6 <target name="hello">
7 <compile sources="lib.c3;ipc.c3" target="arm" output="lib.o"/> 7 <compile sources="hello.c3;lib/*.c3"
8 </target>
9
10 <target name="hello" depends="lib">
11 <compile sources="hello.c3"
12 includes="lib.c3;ipc.c3"
13 target="arm" 8 target="arm"
14 output="hello.o"/> 9 output="obj/hello.o"/>
15 <link output="hello" layout="app.mmap" 10 <link output="obj/hello.elf" layout="app.mmap"
16 target="arm" 11 target="arm"
17 objects="hello.o;lib.o"/> 12 objects="obj/hello.o"/>
18 </target> 13 </target>
19 14
20 <target name="init"> 15 <target name="init">
21 <compile sources="init.c3" 16 <compile sources="init/init.c3;lib/*.c3"
22 includes="lib.c3;ipc.c3"
23 target="arm" 17 target="arm"
24 output="init.o"/> 18 output="obj/init.o"/>
25 19
26 <link 20 <link
27 output="init" 21 output="obj/init.elf"
28 layout="app.mmap" 22 layout="app.mmap"
29 target="arm" 23 target="arm"
30 objects="init.o;lib.o" /> 24 objects="obj/init.o" />
31 25
32 <objcopy objectfile="init" 26 <objcopy objectfile="obj/init.elf"
33 imagename="flash" 27 imagename="flash"
34 output="init.bin" /> 28 format="bin"
29 output="obj/init.bin" />
35 </target> 30 </target>
36 </project> 31 </project>
37 32