Makefile revision 8003
1955SN/ADBMENTRY	= fffffc0000010000
2955SN/AINCLUDES        = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev
31762SN/A
4955SN/ASOURDIR = ./
5955SN/APALCODE  = ../palcode
6955SN/AINCLUDEH = ../h
7955SN/A
8955SN/AARCHNAME=$(shell uname -m)
9955SN/A
10955SN/A### If we are not compiling on an alpha, we must use cross tools ###    
11955SN/Aifneq ($(ARCHNAME), alpha)
12955SN/ACC=alpha-unknown-linux-gnu-gcc
13955SN/AAS=alpha-unknown-linux-gnu-as
14955SN/ACXX=alpha-unknown-linux-gnu-g++
15955SN/ALD=alpha-unknown-linux-gnu-ld
16955SN/Aendif
17955SN/A
18955SN/A### Make sure that the M5 variable is set ###
19955SN/Aifndef M5
20955SN/A$(error The M5 variable must be set)
21955SN/Aendif
22955SN/A
23955SN/Aall: console_tl console_ts
24955SN/A
25955SN/Adbmentry.o: dbmentry.s 
26955SN/A	g++ -I ../h -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ dbmentry.s | \
27955SN/A	$(AS) -m 21164 -o dbmentry.s.o
282665Ssaidi@eecs.umich.edu
294762Snate@binkert.orgconsole_ts.o: console.c
30955SN/A	$(CC)  -g3 $(INCLUDES) -D _TIME_T -D TSUNAMI -nostdinc++ -o console_ts.o -c console.c
315522Snate@binkert.org
326143Snate@binkert.orgconsole_tl.o: console.c
334762Snate@binkert.org	$(CC)  -g3 $(INCLUDES) -D _TIME_T -D TLASER  -nostdinc++ -o console_tl.o -c console.c
345522Snate@binkert.org
35955SN/Aprintf.o: printf.c 
365522Snate@binkert.org	$(CC)  -g3 $(INCLUDES) -nostdinc++ -o $*.o -c $*.c
37955SN/A
385522Snate@binkert.orgpaljtokern.s.o: paljtokern.s
394202Sbinkertn@umich.edu	g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
405742Snate@binkert.org	$(AS) -m 21164 -o paljtokern.s.o
41955SN/A
424381Sbinkertn@umich.edupaljtoslave.s.o: paljtoslave.s
434381Sbinkertn@umich.edu	g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
448334Snate@binkert.org	$(AS) -m 21164 -o paljtoslave.s.o
45955SN/A
46955SN/Aconsole_ts: console_ts.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 
474202Sbinkertn@umich.edu	$(LD) -o console_ts  -N -Ttext $(DBMENTRY) -non_shared \
48955SN/A	dbmentry.s.o console_ts.o printf.o paljtokern.s.o paljtoslave.s.o -lc
494382Sbinkertn@umich.edu
504382Sbinkertn@umich.educonsole_tl: console_tl.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 
514382Sbinkertn@umich.edu	$(LD) -o console_tl  -N -Ttext $(DBMENTRY) -non_shared \
526654Snate@binkert.org	dbmentry.s.o console_tl.o printf.o paljtokern.s.o paljtoslave.s.o -lc
535517Snate@binkert.org
548614Sgblack@eecs.umich.eduinstall: console
557674Snate@binkert.org	scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console
566143Snate@binkert.org
576143Snate@binkert.orgclean:
586143Snate@binkert.org	rm -f *.o console *.strip paljtokern.c paljtoslave.c
598233Snate@binkert.org