Makefile (8013:2dfcde2e9998) Makefile (8015:37634fc80b3c)
1# Copyright (c) 2005
2# The Regents of The University of Michigan
3# All Rights Reserved
4#
5# This code is part of the M5 simulator, developed by Nathan Binkert,
6# Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions
7# from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew
8# Schultz.

--- 22 unchanged lines hidden (view full) ---

31CROSS_COMPILE?=alpha-unknown-linux-gnu-
32endif
33CC=$(CROSS_COMPILE)gcc
34AS=$(CROSS_COMPILE)as
35LD=$(CROSS_COMPILE)ld
36
37DBMENTRY= fffffc0000010000
38CFLAGS=-I . -I ../h -I$(M5)/dev -fno-builtin -Wa,-m21164
1# Copyright (c) 2005
2# The Regents of The University of Michigan
3# All Rights Reserved
4#
5# This code is part of the M5 simulator, developed by Nathan Binkert,
6# Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions
7# from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew
8# Schultz.

--- 22 unchanged lines hidden (view full) ---

31CROSS_COMPILE?=alpha-unknown-linux-gnu-
32endif
33CC=$(CROSS_COMPILE)gcc
34AS=$(CROSS_COMPILE)as
35LD=$(CROSS_COMPILE)ld
36
37DBMENTRY= fffffc0000010000
38CFLAGS=-I . -I ../h -I$(M5)/dev -fno-builtin -Wa,-m21164
39OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o
40TLOBJS+=$(OBJS) console_tl.o
41TSOBJS+=$(OBJS) console_ts.o
39OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o console.o
42
43### Make sure that the M5 variable is set ###
44ifndef M5
45$(error The M5 variable must be set)
46endif
47
40
41### Make sure that the M5 variable is set ###
42ifndef M5
43$(error The M5 variable must be set)
44endif
45
48all: console_tl console_ts
46all: console
49
50%.o: %.S
51 $(CC) $(CFLAGS) -nostdinc -o $@ -c $<
52
47
48%.o: %.S
49 $(CC) $(CFLAGS) -nostdinc -o $@ -c $<
50
53console_ts.o: console.c
54 $(CC) -g3 $(CFLAGS) -D TSUNAMI -o $@ -c $<
55
56console_tl.o: console.c
57 $(CC) -g3 $(CFLAGS) -D TLASER -o $@ -c $<
58
59printf.o: printf.c
51%.o: %.c
60 $(CC) -g3 $(CFLAGS) -o $@ -c $<
61
52 $(CC) -g3 $(CFLAGS) -o $@ -c $<
53
62console_ts: $(TSOBJS)
63 $(LD) -o console_ts -N -Ttext $(DBMENTRY) -non_shared $(TSOBJS) -lc
54console: $(OBJS)
55 $(LD) -o console -N -Ttext $(DBMENTRY) -non_shared $(OBJS) -lc
64
56
65console_tl: $(TLOBJS)
66 $(LD) -o console_tl -N -Ttext $(DBMENTRY) -non_shared $(TLOBJS) -lc
67
68clean:
57clean:
69 rm -f *.o console_t?
58 rm -f *.o console