Makefile (8015:37634fc80b3c) Makefile (8024:27ce7490bd3b)
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.

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

30ifneq ($(shell uname -m), alpha)
31CROSS_COMPILE?=alpha-unknown-linux-gnu-
32endif
33CC=$(CROSS_COMPILE)gcc
34AS=$(CROSS_COMPILE)as
35LD=$(CROSS_COMPILE)ld
36
37DBMENTRY= fffffc0000010000
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.

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

30ifneq ($(shell uname -m), alpha)
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 console.o
38CFLAGS=-I . -I ../h -I$(M5)/dev -I$(M5)/util/m5/ -fno-builtin -Wa,-m21164
39OBJS=dbmentry.o printf.o paljtokern.o paljtoslave.o console.o m5op.o
40
41### Make sure that the M5 variable is set ###
42ifndef M5
43$(error The M5 variable must be set)
44endif
45
46all: console
47
40
41### Make sure that the M5 variable is set ###
42ifndef M5
43$(error The M5 variable must be set)
44endif
45
46all: console
47
48m5op.o: $(M5)/util/m5/m5op.S
49 $(CC) $(CFLAGS) -nostdinc -o $@ -c $<
50
48%.o: %.S
49 $(CC) $(CFLAGS) -nostdinc -o $@ -c $<
50
51%.o: %.c
52 $(CC) -g3 $(CFLAGS) -o $@ -c $<
53
54console: $(OBJS)
55 $(LD) -o console -N -Ttext $(DBMENTRY) -non_shared $(OBJS) -lc
56
57clean:
58 rm -f *.o console
51%.o: %.S
52 $(CC) $(CFLAGS) -nostdinc -o $@ -c $<
53
54%.o: %.c
55 $(CC) -g3 $(CFLAGS) -o $@ -c $<
56
57console: $(OBJS)
58 $(LD) -o console -N -Ttext $(DBMENTRY) -non_shared $(OBJS) -lc
59
60clean:
61 rm -f *.o console