Makefile revision 8280
17843SAli.Saidi@ARM.com# Copyright (c) 2011 ARM Limited
27843SAli.Saidi@ARM.com# All rights reserved.
37843SAli.Saidi@ARM.com#
47843SAli.Saidi@ARM.com# The license below extends only to copyright in the software and shall
57843SAli.Saidi@ARM.com# not be construed as granting a license to any other intellectual
67843SAli.Saidi@ARM.com# property including but not limited to intellectual property relating
77843SAli.Saidi@ARM.com# to a hardware implementation of the functionality of the software
87843SAli.Saidi@ARM.com# licensed hereunder.  You may use the software subject to the license
97843SAli.Saidi@ARM.com# terms below provided that you ensure that this notice is replicated
107843SAli.Saidi@ARM.com# unmodified and in its entirety in all distributions of the software,
117843SAli.Saidi@ARM.com# modified or unmodified, in source code or in binary form.
127843SAli.Saidi@ARM.com#
137843SAli.Saidi@ARM.com# Redistribution and use in source and binary forms, with or without
147843SAli.Saidi@ARM.com# modification, are permitted provided that the following conditions are
157843SAli.Saidi@ARM.com# met: redistributions of source code must retain the above copyright
167843SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer;
177843SAli.Saidi@ARM.com# redistributions in binary form must reproduce the above copyright
187843SAli.Saidi@ARM.com# notice, this list of conditions and the following disclaimer in the
197843SAli.Saidi@ARM.com# documentation and/or other materials provided with the distribution;
207843SAli.Saidi@ARM.com# neither the name of the copyright holders nor the names of its
217843SAli.Saidi@ARM.com# contributors may be used to endorse or promote products derived from
227843SAli.Saidi@ARM.com# this software without specific prior written permission.
237843SAli.Saidi@ARM.com#
247843SAli.Saidi@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
257843SAli.Saidi@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
267843SAli.Saidi@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
277843SAli.Saidi@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
287843SAli.Saidi@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
297843SAli.Saidi@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
307843SAli.Saidi@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
317843SAli.Saidi@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
327843SAli.Saidi@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
337843SAli.Saidi@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
347843SAli.Saidi@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
357843SAli.Saidi@ARM.com#
367843SAli.Saidi@ARM.com# Authors: Ali Saidi
378280SPrakash.Ramrakhyani@arm.com#          Prakash Ramrakhyani
387843SAli.Saidi@ARM.com
397843SAli.Saidi@ARM.com
408280SPrakash.Ramrakhyani@arm.com# Need to have CROSS_COMPILE set to /path/to/bin/arm-unknown-linux-gnu-
418280SPrakash.Ramrakhyani@arm.com# or have arm-unknown-linux-gnu in your path
428280SPrakash.Ramrakhyani@arm.com
438280SPrakash.Ramrakhyani@arm.comCROSS_COMPILE?=arm-none-linux-gnueabi-
447843SAli.Saidi@ARM.com
457843SAli.Saidi@ARM.comCC=$(CROSS_COMPILE)gcc
467843SAli.Saidi@ARM.comCPP=$(CROSS_COMPILE)g++
477843SAli.Saidi@ARM.comLD=$(CROSS_COMPILE)ld
487843SAli.Saidi@ARM.com
498280SPrakash.Ramrakhyani@arm.comall: boot.arm
507843SAli.Saidi@ARM.com
518280SPrakash.Ramrakhyani@arm.comboot.o: simple.S
528280SPrakash.Ramrakhyani@arm.com	$(CC) -mfloat-abi=softfp -march=armv7-a -fno-builtin -nostdinc -o boot.o -c simple.S
537843SAli.Saidi@ARM.com
547843SAli.Saidi@ARM.comboot.arm: boot.o
558280SPrakash.Ramrakhyani@arm.com	$(LD) -o boot.arm -N -Ttext 0x80000000 boot.o -non_shared -static
567843SAli.Saidi@ARM.com
577843SAli.Saidi@ARM.com
587843SAli.Saidi@ARM.comclean:	
597843SAli.Saidi@ARM.com	rm *.o boot.arm
607843SAli.Saidi@ARM.com
61