summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-11-27 22:50:09 -0800
committerMike Pavone <pavone@retrodev.com>2012-11-27 22:50:09 -0800
commita436212b4188596f592a960b471d4b9ee5edcb1d (patch)
tree0304fb2945e0c913114b59c267fd1a5ea2d50e76
parentbdd96f6316e1a951fb35aae24c0ed3ce88944873 (diff)
Add Makefile
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..68fe8da
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+
+dis : dis.o 68kinst.o
+ $(CC) -o dis dis.o 68kinst.o
+
+test_x86 : test_x86.o gen_x86.o
+ $(CC) -o test_x86 test_x86.o gen_x86.o
+
+gen_fib : gen_fib.o gen_x86.o mem.o
+ $(CC) -o gen_fib gen_fib.o gen_x86.o mem.o
+
+%.o : %.S
+ $(CC) -c -o $@ $<
+
+%.o : %.c
+ $(CC) -ggdb -c -o $@ $<
+
+clean :
+ rm -rf dis test_x86 gen_fib *.o