Makefile revision 8003
1DBMENTRY = fffffc0000010000 2INCLUDES = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev 3 4SOURDIR = ./ 5PALCODE = ../palcode 6INCLUDEH = ../h 7 8ARCHNAME=$(shell uname -m) 9 10### If we are not compiling on an alpha, we must use cross tools ### 11ifneq ($(ARCHNAME), alpha) 12CC=alpha-unknown-linux-gnu-gcc 13AS=alpha-unknown-linux-gnu-as 14CXX=alpha-unknown-linux-gnu-g++ 15LD=alpha-unknown-linux-gnu-ld 16endif 17 18### Make sure that the M5 variable is set ### 19ifndef M5 20$(error The M5 variable must be set) 21endif 22 23all: console_tl console_ts 24 25dbmentry.o: dbmentry.s 26 g++ -I ../h -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ dbmentry.s | \ 27 $(AS) -m 21164 -o dbmentry.s.o 28 29console_ts.o: console.c 30 $(CC) -g3 $(INCLUDES) -D _TIME_T -D TSUNAMI -nostdinc++ -o console_ts.o -c console.c 31 32console_tl.o: console.c 33 $(CC) -g3 $(INCLUDES) -D _TIME_T -D TLASER -nostdinc++ -o console_tl.o -c console.c 34 35printf.o: printf.c 36 $(CC) -g3 $(INCLUDES) -nostdinc++ -o $*.o -c $*.c 37 38paljtokern.s.o: paljtokern.s 39 g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \ 40 $(AS) -m 21164 -o paljtokern.s.o 41 42paljtoslave.s.o: paljtoslave.s 43 g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \ 44 $(AS) -m 21164 -o paljtoslave.s.o 45 46console_ts: console_ts.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 47 $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared \ 48 dbmentry.s.o console_ts.o printf.o paljtokern.s.o paljtoslave.s.o -lc 49 50console_tl: console_tl.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 51 $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared \ 52 dbmentry.s.o console_tl.o printf.o paljtokern.s.o paljtoslave.s.o -lc 53 54install: console 55 scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console 56 57clean: 58 rm -f *.o console *.strip paljtokern.c paljtoslave.c 59