Makefile revision 8003
17977Shsul@eecs.umich.eduDBMENTRY	= fffffc0000010000
27978Sbinkertn@umich.eduINCLUDES        = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev
37977Shsul@eecs.umich.edu
47977Shsul@eecs.umich.eduSOURDIR = ./
57977Shsul@eecs.umich.eduPALCODE  = ../palcode
67977Shsul@eecs.umich.eduINCLUDEH = ../h
77992Ssaidi@eecs.umich.edu
87992Ssaidi@eecs.umich.eduARCHNAME=$(shell uname -m)
97992Ssaidi@eecs.umich.edu
107992Ssaidi@eecs.umich.edu### If we are not compiling on an alpha, we must use cross tools ###    
117992Ssaidi@eecs.umich.eduifneq ($(ARCHNAME), alpha)
127992Ssaidi@eecs.umich.eduCC=alpha-unknown-linux-gnu-gcc
137992Ssaidi@eecs.umich.eduAS=alpha-unknown-linux-gnu-as
147992Ssaidi@eecs.umich.eduCXX=alpha-unknown-linux-gnu-g++
157992Ssaidi@eecs.umich.eduLD=alpha-unknown-linux-gnu-ld
167992Ssaidi@eecs.umich.eduendif
177992Ssaidi@eecs.umich.edu
187992Ssaidi@eecs.umich.edu### Make sure that the M5 variable is set ###
197992Ssaidi@eecs.umich.eduifndef M5
207992Ssaidi@eecs.umich.edu$(error The M5 variable must be set)
217992Ssaidi@eecs.umich.eduendif
227992Ssaidi@eecs.umich.edu
238003Ssaidi@eecs.umich.eduall: console_tl console_ts
247977Shsul@eecs.umich.edu
257977Shsul@eecs.umich.edudbmentry.o: dbmentry.s 
267992Ssaidi@eecs.umich.edu	g++ -I ../h -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ dbmentry.s | \
277992Ssaidi@eecs.umich.edu	$(AS) -m 21164 -o dbmentry.s.o
287977Shsul@eecs.umich.edu
298003Ssaidi@eecs.umich.educonsole_ts.o: console.c
308003Ssaidi@eecs.umich.edu	$(CC)  -g3 $(INCLUDES) -D _TIME_T -D TSUNAMI -nostdinc++ -o console_ts.o -c console.c
318003Ssaidi@eecs.umich.edu
328003Ssaidi@eecs.umich.educonsole_tl.o: console.c
338003Ssaidi@eecs.umich.edu	$(CC)  -g3 $(INCLUDES) -D _TIME_T -D TLASER  -nostdinc++ -o console_tl.o -c console.c
347977Shsul@eecs.umich.edu
357977Shsul@eecs.umich.eduprintf.o: printf.c 
367992Ssaidi@eecs.umich.edu	$(CC)  -g3 $(INCLUDES) -nostdinc++ -o $*.o -c $*.c
377977Shsul@eecs.umich.edu
387978Sbinkertn@umich.edupaljtokern.s.o: paljtokern.s
397997Ssaidi@eecs.umich.edu	g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
407992Ssaidi@eecs.umich.edu	$(AS) -m 21164 -o paljtokern.s.o
417977Shsul@eecs.umich.edu
427978Sbinkertn@umich.edupaljtoslave.s.o: paljtoslave.s
437997Ssaidi@eecs.umich.edu	g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
447992Ssaidi@eecs.umich.edu	$(AS) -m 21164 -o paljtoslave.s.o
457977Shsul@eecs.umich.edu
468003Ssaidi@eecs.umich.educonsole_ts: console_ts.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 
478003Ssaidi@eecs.umich.edu	$(LD) -o console_ts  -N -Ttext $(DBMENTRY) -non_shared \
488003Ssaidi@eecs.umich.edu	dbmentry.s.o console_ts.o printf.o paljtokern.s.o paljtoslave.s.o -lc
498003Ssaidi@eecs.umich.edu
508003Ssaidi@eecs.umich.educonsole_tl: console_tl.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 
518003Ssaidi@eecs.umich.edu	$(LD) -o console_tl  -N -Ttext $(DBMENTRY) -non_shared \
528003Ssaidi@eecs.umich.edu	dbmentry.s.o console_tl.o printf.o paljtokern.s.o paljtoslave.s.o -lc
537977Shsul@eecs.umich.edu
547981Sbinkertn@umich.eduinstall: console
557981Sbinkertn@umich.edu	scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console
567981Sbinkertn@umich.edu
577977Shsul@eecs.umich.educlean:
587978Sbinkertn@umich.edu	rm -f *.o console *.strip paljtokern.c paljtoslave.c
59