summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-04 19:13:12 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-04 19:13:12 -0800
commit854a8a9abf29e5cab28871f7a81d0fd1e7474b3d (patch)
tree54651ed6d72de7191718ba8e26e015e2ee2720ef /Makefile
parente54fddc285255b26e7e0ca69db3efb009cfc9c15 (diff)
M68K to x86 translation works for a limited subset of instructions and addressing modes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 68fe8da..4275750 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,12 @@
+all : dis trans
+
dis : dis.o 68kinst.o
$(CC) -o dis dis.o 68kinst.o
+trans : trans.o 68kinst.o gen_x86.o m68k_to_x86.o runtime.o mem.o
+ $(CC) -o trans trans.o 68kinst.o gen_x86.o m68k_to_x86.o runtime.o mem.o
+
test_x86 : test_x86.o gen_x86.o
$(CC) -o test_x86 test_x86.o gen_x86.o
@@ -12,7 +17,10 @@ gen_fib : gen_fib.o gen_x86.o mem.o
$(CC) -c -o $@ $<
%.o : %.c
- $(CC) -ggdb -c -o $@ $<
+ $(CC) -ggdb -std=gnu99 -c -o $@ $<
+
+%.bin : %.s68
+ vasmm68k_mot -Fbin -m68000 -spaces -o $@ $<
clean :
- rm -rf dis test_x86 gen_fib *.o
+ rm -rf dis trans test_x86 gen_fib *.o