summaryrefslogtreecommitdiff
path: root/util/m5/Makefile
blob: 6e4ad31a36b396735ddbae1fa18e49cac63c124e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
AS=as
CC=cc
LD=cc

CCFLAGS=-O2
#LDFLAGS=-non_shared

all: m5

m5: m5op.o m5.o
	$(LD) $(LDFLAGS) -o $@ $>
	strip $@

clean:
	@rm -f m5 *.o *.d *~ .#*

.SUFFIXES:
.SUFFIXES:.o .c .s

# C Compilation
.c.o:
	$(CC) $(CCFLAGS) -o $@ -c $<

# Assembly
.s.o:
	$(AS) $(ASFLAGS) -o $@ $<