Makefile revision 8008
17977Shsul@eecs.umich.eduDBMENTRY = fffffc0000010000 28008Ssaidi@eecs.umich.eduCFLAGS=-I . -I ../h -I$(M5)/dev -nostdinc++ -Wa,-m21164 37992Ssaidi@eecs.umich.edu 47992Ssaidi@eecs.umich.eduARCHNAME=$(shell uname -m) 57992Ssaidi@eecs.umich.edu 67992Ssaidi@eecs.umich.edu### If we are not compiling on an alpha, we must use cross tools ### 77992Ssaidi@eecs.umich.eduifneq ($(ARCHNAME), alpha) 87992Ssaidi@eecs.umich.eduCC=alpha-unknown-linux-gnu-gcc 97992Ssaidi@eecs.umich.eduAS=alpha-unknown-linux-gnu-as 107992Ssaidi@eecs.umich.eduLD=alpha-unknown-linux-gnu-ld 117992Ssaidi@eecs.umich.eduendif 127992Ssaidi@eecs.umich.edu 138008Ssaidi@eecs.umich.eduOBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o 148008Ssaidi@eecs.umich.eduTLOBJS+=$(OBJS) console_tl.o 158008Ssaidi@eecs.umich.eduTSOBJS+=$(OBJS) console_ts.o 168008Ssaidi@eecs.umich.edu 177992Ssaidi@eecs.umich.edu### Make sure that the M5 variable is set ### 187992Ssaidi@eecs.umich.eduifndef M5 197992Ssaidi@eecs.umich.edu$(error The M5 variable must be set) 207992Ssaidi@eecs.umich.eduendif 217992Ssaidi@eecs.umich.edu 228003Ssaidi@eecs.umich.eduall: console_tl console_ts 237977Shsul@eecs.umich.edu 248008Ssaidi@eecs.umich.edu%.o: %.S 258008Ssaidi@eecs.umich.edu $(CC) $(CFLAGS) -nostdinc -o $@ -c $< 267977Shsul@eecs.umich.edu 278003Ssaidi@eecs.umich.educonsole_ts.o: console.c 288008Ssaidi@eecs.umich.edu $(CC) -g3 $(CFLAGS) -D _TIME_T -D TSUNAMI -o $@ -c $< 298003Ssaidi@eecs.umich.edu 308003Ssaidi@eecs.umich.educonsole_tl.o: console.c 318008Ssaidi@eecs.umich.edu $(CC) -g3 $(CFLAGS) -D _TIME_T -D TLASER -o $@ -c $< 327977Shsul@eecs.umich.edu 337977Shsul@eecs.umich.eduprintf.o: printf.c 348008Ssaidi@eecs.umich.edu $(CC) -g3 $(CFLAGS) -o $@ -c $< 357977Shsul@eecs.umich.edu 368008Ssaidi@eecs.umich.educonsole_ts: $(TSOBJS) 378008Ssaidi@eecs.umich.edu $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc 387977Shsul@eecs.umich.edu 398008Ssaidi@eecs.umich.educonsole_tl: $(TLOBJS) 408008Ssaidi@eecs.umich.edu $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc 417977Shsul@eecs.umich.edu 427981Sbinkertn@umich.eduinstall: console 437981Sbinkertn@umich.edu scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console 447981Sbinkertn@umich.edu 457977Shsul@eecs.umich.educlean: 468008Ssaidi@eecs.umich.edu rm -f *.o console_t? 47