Makefile revision 7995
17980Ssaidi@eecs.umich.edu#Makefile for palcode 27980Ssaidi@eecs.umich.edu#Works on alpha-linux and builds elf executable 37977Shsul@eecs.umich.edu 47980Ssaidi@eecs.umich.edu#19 December 2003 - Ali Saidi 57977Shsul@eecs.umich.edu 67984Ssaidi@eecs.umich.eduGAS = alpha-elf-as 77984Ssaidi@eecs.umich.eduCC = alpha-elf-g++ 87984Ssaidi@eecs.umich.eduLD = alpha-elf-ld 97980Ssaidi@eecs.umich.edu#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++ 107980Ssaidi@eecs.umich.eduCFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ 117980Ssaidi@eecs.umich.eduGASFLAGS=-m21164 127980Ssaidi@eecs.umich.eduLDFLAGS=-Ttext 0x4000 137977Shsul@eecs.umich.edu 147995Sehallnor@umich.eduSOURCES=osfpal.s osfpal_cache_copy.s osfpal_cache_copy_unaligned.s platform_tlaser.s \ 157995Sehallnor@umich.edu platform_m5.s 167980Ssaidi@eecs.umich.eduPREPROC := $(SOURCES:.s=.i) 177995Sehallnor@umich.eduTLOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_tlaser.o 187995Sehallnor@umich.eduTSOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_m5.o 197995Sehallnor@umich.edu 207980Ssaidi@eecs.umich.edu%.i: %.s 217980Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) $< > $@ 227977Shsul@eecs.umich.edu 237980Ssaidi@eecs.umich.edu%.o: %.i 247980Ssaidi@eecs.umich.edu $(GAS) $(GASFLAGS) -o $@ $< 257977Shsul@eecs.umich.edu 267985Ssaidi@eecs.umich.eduall: tlaser tsunami 277995Sehallnor@umich.edu 287985Ssaidi@eecs.umich.edutlaser: $(PREPROC) $(TLOBJS) 297995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o 307995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o 317995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o 327977Shsul@eecs.umich.edu 337985Ssaidi@eecs.umich.edutsunami: $(PREPROC) $(TSOBJS) 347995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o 357995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o 367995Sehallnor@umich.edu $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o 377977Shsul@eecs.umich.edu 387977Shsul@eecs.umich.educlean: 397995Sehallnor@umich.edu rm -f *.o *.i tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ 407995Sehallnor@umich.edu ts_osfpal_cache ts_osfpal_unalign