Makefile revision 7997
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++ 107997Ssaidi@eecs.umich.eduCFLAGS=-I . -I ../h -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 147985Ssaidi@eecs.umich.eduSOURCES=osfpal.s platform_tlaser.s platform_m5.s 157980Ssaidi@eecs.umich.eduPREPROC := $(SOURCES:.s=.i) 167985Ssaidi@eecs.umich.eduTLOBJS = osfpal.o platform_tlaser.o 177985Ssaidi@eecs.umich.eduTSOBJS = osfpal.o platform_m5.o 187980Ssaidi@eecs.umich.edu 197980Ssaidi@eecs.umich.edu%.i: %.s 207980Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) $< > $@ 217977Shsul@eecs.umich.edu 227980Ssaidi@eecs.umich.edu%.o: %.i 237980Ssaidi@eecs.umich.edu $(GAS) $(GASFLAGS) -o $@ $< 247977Shsul@eecs.umich.edu 257985Ssaidi@eecs.umich.eduall: tlaser tsunami 267985Ssaidi@eecs.umich.edu 277985Ssaidi@eecs.umich.edutlaser: $(PREPROC) $(TLOBJS) 287985Ssaidi@eecs.umich.edu $(LD) $(LDFLAGS) -o tl_osfpal $(TLOBJS) 297977Shsul@eecs.umich.edu 307985Ssaidi@eecs.umich.edutsunami: $(PREPROC) $(TSOBJS) 317985Ssaidi@eecs.umich.edu $(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS) 327977Shsul@eecs.umich.edu 337977Shsul@eecs.umich.educlean: 347997Ssaidi@eecs.umich.edu rm -f *.o *.i osfpal ts_osfpal tl_osfpal 357985Ssaidi@eecs.umich.edu 36