Makefile revision 7980
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 67980Ssaidi@eecs.umich.eduGAS = as 77980Ssaidi@eecs.umich.eduCC = g++ 87980Ssaidi@eecs.umich.eduLD = 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 147980Ssaidi@eecs.umich.eduSOURCES=platform_tlaser.s osfpal.s 157980Ssaidi@eecs.umich.eduPREPROC := $(SOURCES:.s=.i) 167980Ssaidi@eecs.umich.eduOBJS := $(SOURCES:.s=.o) 177980Ssaidi@eecs.umich.edu 187980Ssaidi@eecs.umich.edu%.i: %.s 197980Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) $< > $@ 207977Shsul@eecs.umich.edu 217980Ssaidi@eecs.umich.edu%.o: %.i 227980Ssaidi@eecs.umich.edu $(GAS) $(GASFLAGS) -o $@ $< 237977Shsul@eecs.umich.edu 247977Shsul@eecs.umich.edu 257980Ssaidi@eecs.umich.eduall: $(PREPROC) $(OBJS) 267980Ssaidi@eecs.umich.edu ld $(LDFLAGS) -o osfpal $(OBJS) 277977Shsul@eecs.umich.edu 287977Shsul@eecs.umich.educlean: 297980Ssaidi@eecs.umich.edu rm -f *.o *.i osfpal 30