/*
 *  Insert the current version of the program as an Amiga version-string
 *
 *  Copyright (c) 1999-2000 Sigbjørn (CISC) Skjæret
 *
 *
 * You are free to use this at wish in your projects,
 * but give credit where it belongs (include this whole comment if possible).
 *
 */

#include "version.h"

#define AQuote(string) #string								/* Put quotes around the whole thing */
#define AVersion(major,minor) AQuote(major ## . ## minor)	/* Concatenate the two version-strings */
#define AmVersion(major,minor) AVersion(major,minor)		/* We need to do it this way to elimate the blank spaces */


//#define AmDate __AMIGADATE__								/* Enable this to set compile-date (SAS/C) */

#ifndef AmDate
	#define AmDate "(11.04.00)"								/* Set project-date here, if not defined compile-date earlier */
#endif


#ifndef AmCPU												/* Figure out what CPU we are compiling for if not defined earlier (SAS/C) */

	#ifdef __PPC__
		#define AmCPU "PPC"
	#else

		#ifdef _M68060
			#define AmCPU "060"

		#elif defined _M68040
			#define AmCPU "040"

		#elif defined _M68030
			#ifdef _M68881
				#define AmCPU "030/881"
			#else
				#define AmCPU "030"
			#endif

		#elif defined _M68020
			#ifdef _M68881
				#define AmCPU "020/881"
			#else
				#define AmCPU "020"
			#endif

		#elif defined _M68000
			#define AmCPU "000"

		#else
			#define AmCPU "???"								/* Just in case .. shouldn't be a problem with SAS/C though */
		#endif

	#endif

#endif


/* The following will need slight modification from project to project .. I'm sure you'll figure it out. ;) */

static const char AmigaVersion[]="$VER: Amiga LAME " AmVersion(LAME_MAJOR_VERSION,LAME_MINOR_VERSION) " " AmDate \
                                      " GPL psycho-acoustic (GPSYCHO) and noise shaping model " AmVersion(PSY_MAJOR_VERSION,PSY_MINOR_VERSION) " [" AmCPU "]";
