view user/build.xml @ 404:a284749c5729

Improved build scripts
author Windel Bouwman
date Thu, 19 Feb 2015 14:08:17 +0100
parents 0fb6633c42f6
children
line wrap: on
line source


<project name="Userspace" default="all">
    <target name="all" depends="hello,init">
    </target>

    <target name="hello">
        <compile sources="hello/hello.c3;lib/*.c3"
                 target="arm"
                 output="obj/hello.o"/>
        <link output="obj/hello.elf" layout="app.mmap"
            target="arm"
            objects="obj/hello.o"/>
    </target>

    <target name="init">
        <compile sources="init/init.c3;lib/*.c3"
            target="arm"
            output="obj/init.o"/>

        <link
            output="obj/init.elf"
            layout="app.mmap"
            target="arm"
            objects="obj/init.o" />

        <objcopy objectfile="obj/init.elf"
            imagename="flash"
            format="bin"
            output="obj/init.bin" />
    </target>
</project>