changeset 16:54fba9ef781b

Add Makefile
author Mike Pavone <pavone@retrodev.com>
date Tue, 27 Nov 2012 22:50:09 -0800
parents c0f339564819
children de0085d4ea40
files Makefile
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Tue Nov 27 22:50:09 2012 -0800
@@ -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