18013Sbinkertn@umich.edu# Copyright (c) 2003, 2004
28013Sbinkertn@umich.edu# The Regents of The University of Michigan
38013Sbinkertn@umich.edu# All Rights Reserved
48012Ssaidi@eecs.umich.edu#
58026Ssaidi@eecs.umich.edu# This code is part of the M5 simulator.
68012Ssaidi@eecs.umich.edu#
78013Sbinkertn@umich.edu# Permission is granted to use, copy, create derivative works and
88013Sbinkertn@umich.edu# redistribute this software and such derivative works for any purpose,
98013Sbinkertn@umich.edu# so long as the copyright notice above, this grant of permission, and
108013Sbinkertn@umich.edu# the disclaimer below appear in all copies made; and so long as the
118013Sbinkertn@umich.edu# name of The University of Michigan is not used in any advertising or
128013Sbinkertn@umich.edu# publicity pertaining to the use or distribution of this software
138013Sbinkertn@umich.edu# without specific, written prior authorization.
148012Ssaidi@eecs.umich.edu#
158013Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE
168013Sbinkertn@umich.edu# UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND WITHOUT
178013Sbinkertn@umich.edu# WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER EXPRESS OR
188013Sbinkertn@umich.edu# IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF
198013Sbinkertn@umich.edu# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE REGENTS OF
208013Sbinkertn@umich.edu# THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE FOR ANY DAMAGES,
218013Sbinkertn@umich.edu# INCLUDING DIRECT, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
228013Sbinkertn@umich.edu# DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR IN CONNECTION
238013Sbinkertn@umich.edu# WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS HEREAFTER
248013Sbinkertn@umich.edu# ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
258026Ssaidi@eecs.umich.edu#
268026Ssaidi@eecs.umich.edu# Authors: Nathan L. Binkert
278026Ssaidi@eecs.umich.edu#          Ali G. Saidi
288012Ssaidi@eecs.umich.edu
298013Sbinkertn@umich.edu# Makefile for palcode
308013Sbinkertn@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 ###    
338013Sbinkertn@umich.eduifneq ($(shell uname -m), 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
408013Sbinkertn@umich.eduCFLAGS=-I . -I ../h -nostdinc -nostdinc++ -Wa,-m21164
417980Ssaidi@eecs.umich.eduLDFLAGS=-Ttext 0x4000
427977Shsul@eecs.umich.edu
438013Sbinkertn@umich.eduTLOBJS = osfpal.o platform_tlaser.o
448013Sbinkertn@umich.eduTLOBJS_COPY = osfpal_cache_copy.o platform_tlaser.o
458013Sbinkertn@umich.eduTLOBJS_COPY_UNALIGNED = osfpal_cache_copy_unaligned.o platform_tlaser.o
468013Sbinkertn@umich.eduTSOBJS = osfpal.o platform_tsunami.o
478013Sbinkertn@umich.eduTSBOBJS = osfpal.o platform_bigtsunami.o
488013Sbinkertn@umich.eduTSOBJS_COPY = osfpal_cache_copy.o platform_tsunami.o
498013Sbinkertn@umich.eduTSOBJS_COPY_UNALIGNED = osfpal_cache_copy_unaligned.o platform_bigtsunami.o
507995Sehallnor@umich.edu
518013Sbinkertn@umich.eduall: tlaser tsunami tsunami_b64
528013Sbinkertn@umich.edu
538013Sbinkertn@umich.eduall_copy: tlaser tlaser_copy tsunami tsunami_b64 tsunami_copy
548013Sbinkertn@umich.edu
558013Sbinkertn@umich.eduosfpal.o: osfpal.S
568007Ssaidi@eecs.umich.edu	$(CC) $(CFLAGS) -o $@ -c $<
577977Shsul@eecs.umich.edu
588013Sbinkertn@umich.eduosfpal_cache_copy.o: osfpal.S
598013Sbinkertn@umich.edu	$(CC) $(CFLAGS) -DCACHE_COPY -o $@ -c $<
608013Sbinkertn@umich.edu
618013Sbinkertn@umich.eduosfpal_cache_copy_unaligned.o: osfpal.S
628013Sbinkertn@umich.edu	$(CC) $(CFLAGS) -DCACHE_COPY -DCACHE_COPY_UNALIGNED -o $@ -c $<
638013Sbinkertn@umich.edu
648013Sbinkertn@umich.eduplatform_tlaser.o: platform.S
658013Sbinkertn@umich.edu	$(CC) $(CFLAGS) -DTLASER -o $@ -c $<
668013Sbinkertn@umich.edu
678013Sbinkertn@umich.eduplatform_tsunami.o: platform.S
688013Sbinkertn@umich.edu	$(CC) $(CFLAGS) -DTSUNAMI -o $@ -c $<
698013Sbinkertn@umich.edu
708013Sbinkertn@umich.eduplatform_bigtsunami.o: platform.S
718010Ssaidi@eecs.umich.edu	$(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $<
728013Sbinkertn@umich.edu
738007Ssaidi@eecs.umich.edutlaser:  $(TLOBJS)
748013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal $(TLOBJS)
758007Ssaidi@eecs.umich.edu
768013Sbinkertn@umich.edutlaser_copy: $(TLOBJS_COPY) $(TLOBJS_COPY_UNALIGNED)
778013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal_cache $(TLOBJS_COPY)
788013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o tl_osfpal_unalign $(TLOBJS_COPY_UNALIGNED)
797977Shsul@eecs.umich.edu
808007Ssaidi@eecs.umich.edutsunami: $(TSOBJS)
818013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS)
828007Ssaidi@eecs.umich.edu
838010Ssaidi@eecs.umich.edutsunami_b64: $(TSBOBJS)
848013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o tsb_osfpal $(TSBOBJS)
858010Ssaidi@eecs.umich.edu
868013Sbinkertn@umich.edutsunami_copy: $(TSOBJS_COPY) $(TSOBJS_COPY_UNALIGNED)
878013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal_cache $(TSOBJS_COPY)
888013Sbinkertn@umich.edu	$(LD) $(LDFLAGS) -o ts_osfpal_unalign $(TSOBJS_COPY_UNALIGNED)
897977Shsul@eecs.umich.edu
907977Shsul@eecs.umich.educlean:
918007Ssaidi@eecs.umich.edu	rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \
928010Ssaidi@eecs.umich.edu	ts_osfpal_cache ts_osfpal_unalign tsb_osfpal
93