support Linux build of this old 0.069 version (for fun)
authornotaz <notasas@gmail.com>
Sun, 13 Feb 2011 17:48:53 +0000 (17:48 +0000)
committernotaz <notasas@gmail.com>
Sun, 13 Feb 2011 17:48:53 +0000 (17:48 +0000)
Cyclone/Main.cpp
Cyclone/Makefile [new file with mode: 0644]
Cyclone/app.h

index f071bf2..0e03169 100644 (file)
@@ -22,9 +22,9 @@ int Amatch=1; // If one, try to match A68K timing
 int Accu=-1; // Accuracy\r
 int Debug=0; // Debug info\r
 \r
-void ot(char *format, ...)\r
+void ot(const char *format, ...)\r
 {\r
-  va_list valist=NULL;\r
+  va_list valist;\r
   va_start(valist,format);\r
   if (AsmFile) vfprintf(AsmFile,format,valist);\r
   va_end(valist);\r
diff --git a/Cyclone/Makefile b/Cyclone/Makefile
new file mode 100644 (file)
index 0000000..fd600ae
--- /dev/null
@@ -0,0 +1,17 @@
+CFLAGS += -Wall -ggdb
+#LDFLAGS += -lstdc++
+
+OBJS = Main.o Ea.o OpAny.o OpArith.o OpBranch.o OpLogic.o OpMove.o ../Pico/Disa.o
+
+all: cyclone.s
+
+cyclone.s: cyclone_gen
+       ./$<
+
+cyclone_gen: $(OBJS)
+       $(CXX) -o $@ $^ $(LDFLAGS)
+
+clean:
+       $(RM) $(OBJS) cyclone_gen cyclone.s
+
+# .PHONY: cyclone.s
index aabb5b8..082b109 100644 (file)
@@ -32,7 +32,7 @@ extern int Cycles; // Current cycles for opcode
 extern int Amatch; // If one, try to match A68K timing\r
 extern int Accu; // Accuracy\r
 extern int Debug; // Debug info\r
-void ot(char *format, ...);\r
+void ot(const char *format, ...);\r
 void ltorg();\r
 void CheckInterrupt();\r
 int MemHandler(int type,int size);\r