gem5/system/alpha/console/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

2003-11-14 16:52:42 +01:00
DBMENTRY = fffffc0000010000
CFLAGS=-I . -I ../h -I$(M5)/dev -nostdinc++ -Wa,-m21164
ARCHNAME=$(shell uname -m)
### If we are not compiling on an alpha, we must use cross tools ###
ifneq ($(ARCHNAME), alpha)
CC=alpha-unknown-linux-gnu-gcc
AS=alpha-unknown-linux-gnu-as
LD=alpha-unknown-linux-gnu-ld
endif
OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o
TLOBJS+=$(OBJS) console_tl.o
TSOBJS+=$(OBJS) console_ts.o
### Make sure that the M5 variable is set ###
ifndef M5
$(error The M5 variable must be set)
endif
all: console_tl console_ts
2003-11-14 16:52:42 +01:00
%.o: %.S
$(CC) $(CFLAGS) -nostdinc -o $@ -c $<
2003-11-14 16:52:42 +01:00
console_ts.o: console.c
$(CC) -g3 $(CFLAGS) -D _TIME_T -D TSUNAMI -o $@ -c $<
console_tl.o: console.c
$(CC) -g3 $(CFLAGS) -D _TIME_T -D TLASER -o $@ -c $<
2003-11-14 16:52:42 +01:00
printf.o: printf.c
$(CC) -g3 $(CFLAGS) -o $@ -c $<
console_ts: $(TSOBJS)
$(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc
console_tl: $(TLOBJS)
$(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc
2003-11-14 16:52:42 +01:00
install: console
scp console zizzer.eecs.umich.edu:/z/m5/system/testing/binaries/console
2003-11-14 16:52:42 +01:00
clean:
rm -f *.o console_t?