summaryrefslogtreecommitdiff
path: root/util/m5/Makefile
diff options
context:
space:
mode:
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 $@ $<