view user/build.xml @ 398:c0d9837acde8

x86 target refactor
author Windel Bouwman
date Thu, 29 May 2014 12:13:37 +0200
parents 6ae782a085e0
children 0fb6633c42f6
line wrap: on
line source


<project name="Userspace" default="all">
    <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" />

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