restructure the repository to be Cyclone only
[cyclone68000.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4849d98
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+CFLAGS += -Wall -ggdb
+CXXFLAGS += $(CFLAGS)
+
+OBJS = Main.o Ea.o OpAny.o OpArith.o OpBranch.o OpLogic.o OpMove.o Disa/Disa.o
+
+all: Cyclone.s
+
+Cyclone.s: cyclone_gen
+       ./$<
+
+cyclone_gen: $(OBJS)
+       $(CXX) -o $@ $^ $(LDFLAGS)
+
+clean:
+       $(RM) $(OBJS) cyclone_gen Cyclone.s