Makefile revision 7978
17977Shsul@eecs.umich.edu
27977Shsul@eecs.umich.eduall: console
37977Shsul@eecs.umich.edu
47977Shsul@eecs.umich.eduDBMENTRY	= fffffc0000010000
57978Sbinkertn@umich.eduINCLUDES        = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev
67977Shsul@eecs.umich.edu
77977Shsul@eecs.umich.eduSOURDIR = ./
87977Shsul@eecs.umich.eduPALCODE  = ../palcode
97977Shsul@eecs.umich.eduINCLUDEH = ../h
107977Shsul@eecs.umich.edu
117977Shsul@eecs.umich.edudbmentry.o: dbmentry.s 
127978Sbinkertn@umich.edu	$(AS)  $(INCLUDES) -nointrinsics -o $*.o $*.s
137977Shsul@eecs.umich.edu
147977Shsul@eecs.umich.educonsole.o: console.c 
157978Sbinkertn@umich.edu	$(CC)  -g3 $(INCLUDES) -nointrinsics -o $*.o -c $*.c
167977Shsul@eecs.umich.edu
177977Shsul@eecs.umich.eduprintf.o: printf.c 
187978Sbinkertn@umich.edu	$(CC)  -g3 $(INCLUDES) -nointrinsics -o $*.o -c $*.c
197977Shsul@eecs.umich.edu
207978Sbinkertn@umich.edupaljtokern.s.o: paljtokern.s
217978Sbinkertn@umich.edu	g++ -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \
227978Sbinkertn@umich.edu	gas -m 21164 -o paljtokern.s.o
237977Shsul@eecs.umich.edu
247978Sbinkertn@umich.edupaljtoslave.s.o: paljtoslave.s
257978Sbinkertn@umich.edu	g++ -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \
267978Sbinkertn@umich.edu	gas -m 21164 -o paljtoslave.s.o
277977Shsul@eecs.umich.edu
287978Sbinkertn@umich.edupaljtokern.c: paljtokern.s.o
297978Sbinkertn@umich.edu	echo 'unsigned int palJToKern[] = {' > paljtokern.c
307978Sbinkertn@umich.edu	dis paljtokern.s.o | awk '{print "0x"$$2","}' >> paljtokern.c
317978Sbinkertn@umich.edu	echo "0x0\n};" >> paljtokern.c
327978Sbinkertn@umich.edu
337978Sbinkertn@umich.edupaljtoslave.c: paljtoslave.s.o
347978Sbinkertn@umich.edu	echo "unsigned int palJToSlave[] = {" > paljtoslave.c
357978Sbinkertn@umich.edu	dis paljtoslave.s.o | awk '{print "0x"$$2","}' >> paljtoslave.c
367978Sbinkertn@umich.edu	echo "0x0\n};" >> paljtoslave.c
377978Sbinkertn@umich.edu
387978Sbinkertn@umich.edupaljtokern.c.o: paljtokern.c
397978Sbinkertn@umich.edu	$(CC) -g3 -nointrinsics -o paljtokern.c.o -c paljtokern.c
407978Sbinkertn@umich.edu
417978Sbinkertn@umich.edupaljtoslave.c.o: paljtoslave.c
427978Sbinkertn@umich.edu	$(CC) -g3 -nointrinsics -o paljtoslave.c.o -c paljtoslave.c
437978Sbinkertn@umich.edu
447978Sbinkertn@umich.educonsole: console.o dbmentry.o printf.o paljtokern.c.o paljtoslave.c.o 
457978Sbinkertn@umich.edu	$(LD) -o console  -N -T $(DBMENTRY) -non_shared \
467978Sbinkertn@umich.edu	dbmentry.o console.o printf.o paljtokern.c.o paljtoslave.c.o -lc
477977Shsul@eecs.umich.edu
487977Shsul@eecs.umich.educlean:
497978Sbinkertn@umich.edu	rm -f *.o console *.strip paljtokern.c paljtoslave.c
50