12188SN/A# Copyright (c) 2005-2006 The Regents of The University of Michigan
22188SN/A# All rights reserved.
32188SN/A#
42188SN/A# Redistribution and use in source and binary forms, with or without
52188SN/A# modification, are permitted provided that the following conditions are
62188SN/A# met: redistributions of source code must retain the above copyright
72188SN/A# notice, this list of conditions and the following disclaimer;
82188SN/A# redistributions in binary form must reproduce the above copyright
92188SN/A# notice, this list of conditions and the following disclaimer in the
102188SN/A# documentation and/or other materials provided with the distribution;
112188SN/A# neither the name of the copyright holders nor the names of its
122188SN/A# contributors may be used to endorse or promote products derived from
132188SN/A# this software without specific prior written permission.
142188SN/A#
152188SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
162188SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
172188SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
182188SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
192188SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
202188SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
212188SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
222188SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
232188SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
242188SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
252188SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
262665SN/A#
272665SN/A# Authors: Nathan Binkert
282665SN/A#          Ali Saidi
29287SN/A
302188SN/A### If we are not compiling on an alpha, we must use cross tools ###    
314090Ssaidi@eecs.umich.eduifneq ($(shell uname -m), sun4v)
324090Ssaidi@eecs.umich.eduCROSS_COMPILE?=sparc64-sun-solaris2.10-
332188SN/Aendif
342188SN/ACC=$(CROSS_COMPILE)gcc
352188SN/AAS=$(CROSS_COMPILE)as
362188SN/ALD=$(CROSS_COMPILE)ld
372188SN/A
3813103Skevin.brodsky@arm.comCFLAGS=-O2 -m64 -I../../include
3912464Sjang.hanhwi@gmail.comOBJS=m5.o m5op_sparc.o m5_mmap.o
40287SN/A
41275SN/Aall: m5
42275SN/A
432188SN/A%.o: %.S
442188SN/A	$(CC) $(CFLAGS) -o $@ -c $<
452188SN/A
462188SN/A%.o: %.c
472188SN/A	$(CC)  $(CFLAGS) -o $@ -c $<
482188SN/A
492188SN/Am5: $(OBJS)
504098Ssaidi@eecs.umich.edu	$(CC) -m64 -o $@ $(OBJS)
51275SN/A
52275SN/Aclean:
532188SN/A	rm -f *.o m5
54