Makefile.x86 revision 12157
15790Sgblack@eecs.umich.edu# Copyright (c) 2005-2006 The Regents of The University of Michigan 25790Sgblack@eecs.umich.edu# All rights reserved. 35790Sgblack@eecs.umich.edu# 45790Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 55790Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are 65790Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright 75790Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 85790Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 95790Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 105790Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution; 115790Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its 125790Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from 135790Sgblack@eecs.umich.edu# this software without specific prior written permission. 145790Sgblack@eecs.umich.edu# 155790Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 165790Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 175790Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 185790Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 195790Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 205790Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 215790Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 225790Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 235790Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 245790Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 255790Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265790Sgblack@eecs.umich.edu# 275790Sgblack@eecs.umich.edu# Authors: Nathan Binkert 285790Sgblack@eecs.umich.edu# Ali Saidi 295790Sgblack@eecs.umich.edu 305790Sgblack@eecs.umich.eduCC=gcc 315790Sgblack@eecs.umich.eduAS=as 325790Sgblack@eecs.umich.eduLD=ld 335790Sgblack@eecs.umich.edu 3412157Sandreas.sandberg@arm.comCFLAGS=-O2 -DM5OP_ADDR=0xFFFF0000 -I$(PWD)/../../include 355790Sgblack@eecs.umich.eduOBJS=m5.o m5op_x86.o 365790Sgblack@eecs.umich.edu 375790Sgblack@eecs.umich.eduall: m5 385790Sgblack@eecs.umich.edu 395790Sgblack@eecs.umich.edu%.o: %.S 405790Sgblack@eecs.umich.edu $(CC) $(CFLAGS) -o $@ -c $< 415790Sgblack@eecs.umich.edu 425790Sgblack@eecs.umich.edu%.o: %.c 435790Sgblack@eecs.umich.edu $(CC) $(CFLAGS) -o $@ -c $< 445790Sgblack@eecs.umich.edu 455790Sgblack@eecs.umich.edum5: $(OBJS) 465790Sgblack@eecs.umich.edu $(CC) -o $@ $(OBJS) 475790Sgblack@eecs.umich.edu 485790Sgblack@eecs.umich.educlean: 495790Sgblack@eecs.umich.edu rm -f *.o m5 50