Makefile revision 8012
18012Ssaidi@eecs.umich.edu#Copyright (c) 2005 28012Ssaidi@eecs.umich.edu#The Regents of The University of Michigan 38012Ssaidi@eecs.umich.edu#All Rights Reserved 48012Ssaidi@eecs.umich.edu# 58012Ssaidi@eecs.umich.edu#This code is part of the M5 simulator, developed by Nathan Binkert, 68012Ssaidi@eecs.umich.edu#Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions 78012Ssaidi@eecs.umich.edu#from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew 88012Ssaidi@eecs.umich.edu#Schultz. 98012Ssaidi@eecs.umich.edu# 108012Ssaidi@eecs.umich.edu#Permission is granted to use, copy, create derivative works and 118012Ssaidi@eecs.umich.edu#redistribute this software and such derivative works for any purpose, 128012Ssaidi@eecs.umich.edu#so long as the copyright notice above, this grant of permission, and 138012Ssaidi@eecs.umich.edu#the disclaimer below appear in all copies made; and so long as the 148012Ssaidi@eecs.umich.edu#name of The University of Michigan is not used in any advertising or 158012Ssaidi@eecs.umich.edu#publicity pertaining to the use or distribution of this software 168012Ssaidi@eecs.umich.edu#without specific, written prior authorization. 178012Ssaidi@eecs.umich.edu# 188012Ssaidi@eecs.umich.edu#THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE 198012Ssaidi@eecs.umich.edu#UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND WITHOUT 208012Ssaidi@eecs.umich.edu#WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER EXPRESS OR 218012Ssaidi@eecs.umich.edu#IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF 228012Ssaidi@eecs.umich.edu#MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE REGENTS OF 238012Ssaidi@eecs.umich.edu#THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE FOR ANY DAMAGES, 248012Ssaidi@eecs.umich.edu#INCLUDING DIRECT, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL 258012Ssaidi@eecs.umich.edu#DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR IN CONNECTION 268012Ssaidi@eecs.umich.edu#WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS HEREAFTER 278012Ssaidi@eecs.umich.edu#ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 288012Ssaidi@eecs.umich.edu 297977Shsul@eecs.umich.eduDBMENTRY = fffffc0000010000 308008Ssaidi@eecs.umich.eduCFLAGS=-I . -I ../h -I$(M5)/dev -nostdinc++ -Wa,-m21164 317992Ssaidi@eecs.umich.edu 327992Ssaidi@eecs.umich.eduARCHNAME=$(shell uname -m) 337992Ssaidi@eecs.umich.edu 347992Ssaidi@eecs.umich.edu### If we are not compiling on an alpha, we must use cross tools ### 357992Ssaidi@eecs.umich.eduifneq ($(ARCHNAME), alpha) 368012Ssaidi@eecs.umich.eduCROSS_COMPILE?=alpha-unknown-linux-gnu- 377992Ssaidi@eecs.umich.eduendif 388012Ssaidi@eecs.umich.eduCC=$(CROSS_COMPILE)gcc 398012Ssaidi@eecs.umich.eduAS=$(CROSS_COMPILE)as 408012Ssaidi@eecs.umich.eduLD=$(CROSS_COMPILE)ld 417992Ssaidi@eecs.umich.edu 428008Ssaidi@eecs.umich.eduOBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o 438008Ssaidi@eecs.umich.eduTLOBJS+=$(OBJS) console_tl.o 448008Ssaidi@eecs.umich.eduTSOBJS+=$(OBJS) console_ts.o 458008Ssaidi@eecs.umich.edu 467992Ssaidi@eecs.umich.edu### Make sure that the M5 variable is set ### 477992Ssaidi@eecs.umich.eduifndef M5 487992Ssaidi@eecs.umich.edu$(error The M5 variable must be set) 497992Ssaidi@eecs.umich.eduendif 507992Ssaidi@eecs.umich.edu 518003Ssaidi@eecs.umich.eduall: console_tl console_ts 527977Shsul@eecs.umich.edu 538008Ssaidi@eecs.umich.edu%.o: %.S 548008Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) -nostdinc -o $@ -c $< 557977Shsul@eecs.umich.edu 568003Ssaidi@eecs.umich.educonsole_ts.o: console.c 578008Ssaidi@eecs.umich.edu $(CC) -g3 $(CFLAGS) -D _TIME_T -D TSUNAMI -o $@ -c $< 588003Ssaidi@eecs.umich.edu 598003Ssaidi@eecs.umich.educonsole_tl.o: console.c 608008Ssaidi@eecs.umich.edu $(CC) -g3 $(CFLAGS) -D _TIME_T -D TLASER -o $@ -c $< 617977Shsul@eecs.umich.edu 627977Shsul@eecs.umich.eduprintf.o: printf.c 638008Ssaidi@eecs.umich.edu $(CC) -g3 $(CFLAGS) -o $@ -c $< 647977Shsul@eecs.umich.edu 658008Ssaidi@eecs.umich.educonsole_ts: $(TSOBJS) 668008Ssaidi@eecs.umich.edu $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc 677977Shsul@eecs.umich.edu 688008Ssaidi@eecs.umich.educonsole_tl: $(TLOBJS) 698008Ssaidi@eecs.umich.edu $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc 707977Shsul@eecs.umich.edu 717977Shsul@eecs.umich.educlean: 728008Ssaidi@eecs.umich.edu rm -f *.o console_t? 73