Makefile revision 7997
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
237992Ssaidi@eecs.umich.eduall: console
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
297981Sbinkertn@umich.educonsole.o: console.c
307992Ssaidi@eecs.umich.edu	$(CC)  -g3 $(INCLUDES) -D _TIME_T -nostdinc++ -o $*.o -c $*.c
317977Shsul@eecs.umich.edu
327977Shsul@eecs.umich.eduprintf.o: printf.c 
337992Ssaidi@eecs.umich.edu	$(CC)  -g3 $(INCLUDES) -nostdinc++ -o $*.o -c $*.c
347977Shsul@eecs.umich.edu
357978Sbinkertn@umich.edupaljtokern.s.o: paljtokern.s
367997Ssaidi@eecs.umich.edu	g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
377992Ssaidi@eecs.umich.edu	$(AS) -m 21164 -o paljtokern.s.o
387977Shsul@eecs.umich.edu
397978Sbinkertn@umich.edupaljtoslave.s.o: paljtoslave.s
407997Ssaidi@eecs.umich.edu	g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
417992Ssaidi@eecs.umich.edu	$(AS) -m 21164 -o paljtoslave.s.o
427977Shsul@eecs.umich.edu
437992Ssaidi@eecs.umich.educonsole: console.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 
447992Ssaidi@eecs.umich.edu	$(LD) -o console  -N -Ttext $(DBMENTRY) -non_shared \
457992Ssaidi@eecs.umich.edu	dbmentry.s.o console.o printf.o paljtokern.s.o paljtoslave.s.o -lc
467977Shsul@eecs.umich.edu
477981Sbinkertn@umich.eduinstall: console
487981Sbinkertn@umich.edu	scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console
497981Sbinkertn@umich.edu
507977Shsul@eecs.umich.educlean:
517978Sbinkertn@umich.edu	rm -f *.o console *.strip paljtokern.c paljtoslave.c
52