From: notaz Date: Sun, 13 Feb 2011 17:48:53 +0000 (+0000) Subject: support Linux build of this old 0.069 version (for fun) X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30e2e2d5bf6e04f2ed323e28e1f9dfe99ad4d5f;p=cyclone68000.git support Linux build of this old 0.069 version (for fun) --- diff --git a/Cyclone/Main.cpp b/Cyclone/Main.cpp index f071bf2..0e03169 100644 --- a/Cyclone/Main.cpp +++ b/Cyclone/Main.cpp @@ -22,9 +22,9 @@ int Amatch=1; // If one, try to match A68K timing int Accu=-1; // Accuracy int Debug=0; // Debug info -void ot(char *format, ...) +void ot(const char *format, ...) { - va_list valist=NULL; + va_list valist; va_start(valist,format); if (AsmFile) vfprintf(AsmFile,format,valist); va_end(valist); diff --git a/Cyclone/Makefile b/Cyclone/Makefile new file mode 100644 index 0000000..fd600ae --- /dev/null +++ b/Cyclone/Makefile @@ -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 diff --git a/Cyclone/app.h b/Cyclone/app.h index aabb5b8..082b109 100644 --- a/Cyclone/app.h +++ b/Cyclone/app.h @@ -32,7 +32,7 @@ extern int Cycles; // Current cycles for opcode extern int Amatch; // If one, try to match A68K timing extern int Accu; // Accuracy extern int Debug; // Debug info -void ot(char *format, ...); +void ot(const char *format, ...); void ltorg(); void CheckInterrupt(); int MemHandler(int type,int size);