Makefile revision 8012
18012Ssaidi@eecs.umich.edu#Copyright (c) 2003, 2004 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 297980Ssaidi@eecs.umich.edu#Makefile for palcode 307980Ssaidi@eecs.umich.edu#Works on alpha-linux and builds elf executable 317977Shsul@eecs.umich.edu 328012Ssaidi@eecs.umich.edu### If we are not compiling on an alpha, we must use cross tools ### 338012Ssaidi@eecs.umich.eduifneq ($(ARCHNAME), alpha) 348012Ssaidi@eecs.umich.eduCROSS_COMPILE?=alpha-unknown-linux-gnu- 358012Ssaidi@eecs.umich.eduendif 368012Ssaidi@eecs.umich.eduCC=$(CROSS_COMPILE)gcc 378012Ssaidi@eecs.umich.eduAS=$(CROSS_COMPILE)as 388012Ssaidi@eecs.umich.eduLD=$(CROSS_COMPILE)ld 398012Ssaidi@eecs.umich.edu 408007Ssaidi@eecs.umich.eduCFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164 417980Ssaidi@eecs.umich.eduLDFLAGS=-Ttext 0x4000 427977Shsul@eecs.umich.edu 438007Ssaidi@eecs.umich.eduTLOBJS = osfpal.o platform_tlaser.o 448007Ssaidi@eecs.umich.eduTLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o 458007Ssaidi@eecs.umich.eduTSOBJS = osfpal.o platform_m5.o 468010Ssaidi@eecs.umich.eduTSBOBJS = osfpal.o platform_m5b.o 478007Ssaidi@eecs.umich.eduTSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o 487995Sehallnor@umich.edu 498007Ssaidi@eecs.umich.edu%.o: %.S 508007Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) -o $@ -c $< 517977Shsul@eecs.umich.edu 528010Ssaidi@eecs.umich.eduall: tsunami tsunami_b64 538010Ssaidi@eecs.umich.edu 548010Ssaidi@eecs.umich.eduplatform_m5b.o: platform_m5.S 558010Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $< 568010Ssaidi@eecs.umich.edu 578007Ssaidi@eecs.umich.edutlaser: $(TLOBJS) 587995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o 598007Ssaidi@eecs.umich.edu 608007Ssaidi@eecs.umich.edutlaser_copy: $(TLOBJS_COPY) $(TLOBJS) 617995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o 627995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o 637977Shsul@eecs.umich.edu 648007Ssaidi@eecs.umich.edutsunami: $(TSOBJS) 657995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o 668007Ssaidi@eecs.umich.edu 678010Ssaidi@eecs.umich.edutsunami_b64: $(TSBOBJS) 688010Ssaidi@eecs.umich.edu $(LD) $(LDFLAGS) -o tsb_osfpal osfpal.o platform_m5b.o 698010Ssaidi@eecs.umich.edu 708007Ssaidi@eecs.umich.edutsunami_copy: $(TSOBJS) $(TSOBJS_COPY) 717995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o 727995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o 737977Shsul@eecs.umich.edu 747977Shsul@eecs.umich.educlean: 758007Ssaidi@eecs.umich.edu rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ 768010Ssaidi@eecs.umich.edu ts_osfpal_cache ts_osfpal_unalign tsb_osfpal 77