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
--- /dev/null
+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
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