From d53d0992aa1818615278e176a1005602797a6b9f Mon Sep 17 00:00:00 2001 From: marcobaye Date: Tue, 19 Jul 2016 08:11:58 +0000 Subject: [PATCH] moved version info to separate header file git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@72 4df02467-bbd4-4a76-a152-e7ce94205b78 --- src/Makefile | 2 +- src/Makefile.dos | 2 +- src/Makefile.mingw | 2 +- src/Makefile.riscos | 2 +- src/acme.c | 9 +-------- src/version.h | 18 ++++++++++++++++++ 6 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 src/version.h diff --git a/src/Makefile b/src/Makefile index 4218057..0f48254 100644 --- a/src/Makefile +++ b/src/Makefile @@ -17,7 +17,7 @@ acme: $(OBJS) strip acme -acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h acme.h acme.c +acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h version.h acme.h acme.c alu.o: config.h platform.h cpu.h dynabuf.h encoding.h global.h input.h section.h symbol.h tree.h alu.h alu.c diff --git a/src/Makefile.dos b/src/Makefile.dos index b63b2aa..4d79983 100644 --- a/src/Makefile.dos +++ b/src/Makefile.dos @@ -18,7 +18,7 @@ acme: $(OBJS) djp acme.exe djp acmepmod.exe -acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h acme.h acme.c +acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h version.h acme.h acme.c alu.o: config.h platform.h cpu.h dynabuf.h encoding.h global.h input.h section.h symbol.h tree.h alu.h alu.c diff --git a/src/Makefile.mingw b/src/Makefile.mingw index 61a54cb..3376f38 100644 --- a/src/Makefile.mingw +++ b/src/Makefile.mingw @@ -21,7 +21,7 @@ acme.exe: acme.o alu.o cliargs.o cpu.o dynabuf.o encoding.o flow.o global.o inpu -acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h acme.h _dos.h acme.c +acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h version.h acme.h _dos.h acme.c alu.o: config.h platform.h cpu.h dynabuf.h encoding.h global.h input.h section.h symbol.h tree.h alu.h alu.c diff --git a/src/Makefile.riscos b/src/Makefile.riscos index ae17f47..2c65b3c 100644 --- a/src/Makefile.riscos +++ b/src/Makefile.riscos @@ -16,7 +16,7 @@ acme: $(OBJS) $(CC) $(CFLAGS) -o !Unsqueezed $(OBJS) $(LIBS) Squeeze -f -v !Unsqueezed !ACME.!RunImage -acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h acme.h acme.c +acme.o: config.h platform.h acme.h alu.h cpu.h dynabuf.h encoding.h flow.h global.h input.h macro.h mnemo.h output.h pseudoopcodes.h section.h symbol.h version.h acme.h acme.c alu.o: config.h platform.h cpu.h dynabuf.h encoding.h global.h input.h section.h symbol.h tree.h alu.h alu.c diff --git a/src/acme.c b/src/acme.c index dd5fc17..68dea1d 100644 --- a/src/acme.c +++ b/src/acme.c @@ -14,14 +14,6 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -#define RELEASE "0.95.7" // update before release (FIXME) -#define CODENAME "Fenchurch" // update before release -#define CHANGE_DATE "22 Feb" // update before release -#define CHANGE_YEAR "2016" // update before release -//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/" // FIXME -#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME - #include "acme.h" #include #include @@ -42,6 +34,7 @@ #include "pseudoopcodes.h" #include "section.h" #include "symbol.h" +#include "version.h" // constants diff --git a/src/version.h b/src/version.h new file mode 100644 index 0000000..9c476ce --- /dev/null +++ b/src/version.h @@ -0,0 +1,18 @@ +// ACME - a crossassembler for producing 6502/65c02/65816 code. +// Copyright (C) 1998-2016 Marco Baye +// Have a look at "acme.c" for further info +// +// version info +#ifndef version_H +#define version_H + + +#define RELEASE "0.95.7" // update before release (FIXME) +#define CODENAME "Fenchurch" // update before release +#define CHANGE_DATE "19 Jul" // update before release +#define CHANGE_YEAR "2016" // update before release +//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/" // FIXME +#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME + + +#endif