1DBMENTRY = fffffc0000010000
| 1DBMENTRY = fffffc0000010000
|
2INCLUDES = -I$(PALCODE) -I$(INCLUDEH) -I$(M5)/dev
| 2CFLAGS=-I . -I ../h -I$(M5)/dev -nostdinc++ -Wa,-m21164
|
3
| 3
|
4SOURDIR = ./ 5PALCODE = ../palcode 6INCLUDEH = ../h 7
| |
8ARCHNAME=$(shell uname -m) 9 10### If we are not compiling on an alpha, we must use cross tools ### 11ifneq ($(ARCHNAME), alpha) 12CC=alpha-unknown-linux-gnu-gcc 13AS=alpha-unknown-linux-gnu-as
| 4ARCHNAME=$(shell uname -m) 5 6### If we are not compiling on an alpha, we must use cross tools ### 7ifneq ($(ARCHNAME), alpha) 8CC=alpha-unknown-linux-gnu-gcc 9AS=alpha-unknown-linux-gnu-as
|
14CXX=alpha-unknown-linux-gnu-g++
| |
15LD=alpha-unknown-linux-gnu-ld 16endif 17
| 10LD=alpha-unknown-linux-gnu-ld 11endif 12
|
| 13OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o 14TLOBJS+=$(OBJS) console_tl.o 15TSOBJS+=$(OBJS) console_ts.o 16
|
18### Make sure that the M5 variable is set ### 19ifndef M5 20$(error The M5 variable must be set) 21endif 22 23all: console_tl console_ts 24
| 17### Make sure that the M5 variable is set ### 18ifndef M5 19$(error The M5 variable must be set) 20endif 21 22all: console_tl console_ts 23
|
25dbmentry.o: dbmentry.s 26 g++ -I ../h -I ../palcode -E -P -nostdinc -nostdinc++ -x c++ dbmentry.s | \ 27 $(AS) -m 21164 -o dbmentry.s.o
| 24%.o: %.S 25 $(CC) $(CFLAGS) -nostdinc -o $@ -c $<
|
28 29console_ts.o: console.c
| 26 27console_ts.o: console.c
|
30 $(CC) -g3 $(INCLUDES) -D _TIME_T -D TSUNAMI -nostdinc++ -o console_ts.o -c console.c
| 28 $(CC) -g3 $(CFLAGS) -D _TIME_T -D TSUNAMI -o $@ -c $<
|
31 32console_tl.o: console.c
| 29 30console_tl.o: console.c
|
33 $(CC) -g3 $(INCLUDES) -D _TIME_T -D TLASER -nostdinc++ -o console_tl.o -c console.c
| 31 $(CC) -g3 $(CFLAGS) -D _TIME_T -D TLASER -o $@ -c $<
|
34 35printf.o: printf.c
| 32 33printf.o: printf.c
|
36 $(CC) -g3 $(INCLUDES) -nostdinc++ -o $*.o -c $*.c
| 34 $(CC) -g3 $(CFLAGS) -o $@ -c $<
|
37
| 35
|
38paljtokern.s.o: paljtokern.s 39 g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtokern.s | \ 40 $(AS) -m 21164 -o paljtokern.s.o
| 36console_ts: $(TSOBJS) 37 $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc
|
41
| 38
|
42paljtoslave.s.o: paljtoslave.s 43 g++ -I ../h -E -P -nostdinc -nostdinc++ -x c++ paljtoslave.s | \ 44 $(AS) -m 21164 -o paljtoslave.s.o
| 39console_tl: $(TLOBJS) 40 $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc
|
45
| 41
|
46console_ts: console_ts.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 47 $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared \ 48 dbmentry.s.o console_ts.o printf.o paljtokern.s.o paljtoslave.s.o -lc 49 50console_tl: console_tl.o dbmentry.o printf.o paljtokern.s.o paljtoslave.s.o 51 $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared \ 52 dbmentry.s.o console_tl.o printf.o paljtokern.s.o paljtoslave.s.o -lc 53
| |
54install: console 55 scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console 56 57clean:
| 42install: console 43 scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console 44 45clean:
|
58 rm -f *.o console *.strip paljtokern.c paljtoslave.c
| 46 rm -f *.o console_t?
|
| |