Makefile revision 8008
1DBMENTRY = fffffc0000010000 2CFLAGS=-I . -I ../h -I$(M5)/dev -nostdinc++ -Wa,-m21164 3 4ARCHNAME=$(shell uname -m) 5 6### If we are not compiling on an alpha, we must use cross tools ### 7ifneq ($(ARCHNAME), alpha) 8CC=alpha-unknown-linux-gnu-gcc 9AS=alpha-unknown-linux-gnu-as 10LD=alpha-unknown-linux-gnu-ld 11endif 12 13OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o 14TLOBJS+=$(OBJS) console_tl.o 15TSOBJS+=$(OBJS) console_ts.o 16 17### Make sure that the M5 variable is set ### 18ifndef M5 19$(error The M5 variable must be set) 20endif 21 22all: console_tl console_ts 23 24%.o: %.S 25 $(CC) $(CFLAGS) -nostdinc -o $@ -c $< 26 27console_ts.o: console.c 28 $(CC) -g3 $(CFLAGS) -D _TIME_T -D TSUNAMI -o $@ -c $< 29 30console_tl.o: console.c 31 $(CC) -g3 $(CFLAGS) -D _TIME_T -D TLASER -o $@ -c $< 32 33printf.o: printf.c 34 $(CC) -g3 $(CFLAGS) -o $@ -c $< 35 36console_ts: $(TSOBJS) 37 $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc 38 39console_tl: $(TLOBJS) 40 $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc 41 42install: console 43 scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console 44 45clean: 46 rm -f *.o console_t? 47