summaryrefslogtreecommitdiff
path: root/util/m5/Makefile
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2003-11-03 20:35:05 -0800
committerSteve Reinhardt <stever@eecs.umich.edu>2003-11-03 20:35:05 -0800
commite4b52476bc00fe8c0115ee5ec6e9551447cb04a3 (patch)
tree0671e5be86419c60743915af2f3503fa6de28ac4 /util/m5/Makefile
parent02795babaf52cbf6f8c29bbb2aecfc0e60b46b63 (diff)
parent29474bdf027fe3396e0be2f6acbe2a6b89136bc2 (diff)
downloadgem5-e4b52476bc00fe8c0115ee5ec6e9551447cb04a3.tar.xz
Automerge
--HG-- extra : convert_revision : 2ca18ecbf04a1de72391073d0a5309fdbbdfefda
Diffstat (limited to 'util/m5/Makefile')
-rw-r--r--util/m5/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/util/m5/Makefile b/util/m5/Makefile
new file mode 100644
index 000000000..6e4ad31a3
--- /dev/null
+++ b/util/m5/Makefile
@@ -0,0 +1,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 $@ $<