Makefile revision 7985:3e932649220c
12817Sksewell@umich.edu
22817Sksewell@umich.eduall: console
32817Sksewell@umich.edu
42817Sksewell@umich.eduDBMENTRY	= fffffc0000010000
52817Sksewell@umich.eduINCLUDES        = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev
62817Sksewell@umich.edu
72817Sksewell@umich.eduSOURDIR = ./
82817Sksewell@umich.eduPALCODE  = ../palcode
92817Sksewell@umich.eduINCLUDEH = ../h
102817Sksewell@umich.eduCC=gcc
112817Sksewell@umich.eduAS=gas
122817Sksewell@umich.edu
132817Sksewell@umich.edudbmentry.o: dbmentry.s 
142817Sksewell@umich.edu	$(AS)  $(INCLUDES) -nointrinsics -o $*.o $*.s
152817Sksewell@umich.edu
162817Sksewell@umich.educonsole.o: console.c
172817Sksewell@umich.edu	$(CC)  -g3 $(INCLUDES) -nointrinsics -o $*.o -c $*.c
182817Sksewell@umich.edu
192817Sksewell@umich.eduprintf.o: printf.c 
202817Sksewell@umich.edu	$(CC)  -g3 $(INCLUDES) -nointrinsics -o $*.o -c $*.c
212817Sksewell@umich.edu
222817Sksewell@umich.edupaljtokern.s.o: paljtokern.s
232817Sksewell@umich.edu	g++ -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
242817Sksewell@umich.edu	gas -m 21164 -o paljtokern.s.o
252817Sksewell@umich.edu
262817Sksewell@umich.edupaljtoslave.s.o: paljtoslave.s
272817Sksewell@umich.edu	g++ -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
282817Sksewell@umich.edu	gas -m 21164 -o paljtoslave.s.o
294202Sbinkertn@umich.edu
302817Sksewell@umich.edupaljtokern.c: paljtokern.s.o
312817Sksewell@umich.edu	echo 'unsigned int palJToKern[] = {' > paljtokern.c
322817Sksewell@umich.edu	dis paljtokern.s.o | awk '{print "0x"$$2","}' >> paljtokern.c
334202Sbinkertn@umich.edu	echo "0x0\n};" >> paljtokern.c
342817Sksewell@umich.edu
354202Sbinkertn@umich.edupaljtoslave.c: paljtoslave.s.o
364486Sbinkertn@umich.edu	echo "unsigned int palJToSlave[] = {" > paljtoslave.c
374486Sbinkertn@umich.edu	dis paljtoslave.s.o | awk '{print "0x"$$2","}' >> paljtoslave.c
384486Sbinkertn@umich.edu	echo "0x0\n};" >> paljtoslave.c
394486Sbinkertn@umich.edu
404202Sbinkertn@umich.edupaljtokern.c.o: paljtokern.c
414202Sbinkertn@umich.edu	$(CC) -g3 -nointrinsics -o paljtokern.c.o -c paljtokern.c
424202Sbinkertn@umich.edu
439341SAndreas.Sandberg@arm.compaljtoslave.c.o: paljtoslave.c
444202Sbinkertn@umich.edu	$(CC) -g3 -nointrinsics -o paljtoslave.c.o -c paljtoslave.c
455597Sgblack@eecs.umich.edu
464202Sbinkertn@umich.educonsole: console.o dbmentry.o printf.o paljtokern.c.o paljtoslave.c.o 
474202Sbinkertn@umich.edu	$(LD) -o console  -N -T $(DBMENTRY) -non_shared \
484202Sbinkertn@umich.edu	dbmentry.o console.o printf.o paljtokern.c.o paljtoslave.c.o -lc
494202Sbinkertn@umich.edu
504202Sbinkertn@umich.eduinstall: console
514202Sbinkertn@umich.edu	scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console
524202Sbinkertn@umich.edu
534202Sbinkertn@umich.educlean:
549919Ssteve.reinhardt@amd.com	rm -f *.o console *.strip paljtokern.c paljtoslave.c
554202Sbinkertn@umich.edu