4 * Copyright (C) 1993-1999 by Jochen Wiedmann and Marcin Orlowski
5 * Copyright (C) 2002-2010 by the FlexCat Open Source Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 // transforms a define into a string
27 #define STR(x) STR2(x)
30 // for setting all necessary version information
32 #define EXE_REVISION 16
33 #define EXE_DATE "29.05.2015"
34 #define EXE_COPYRIGHT "Copyright (C) 2005-2015 FlexCat Open Source Team"
36 // set the EXE_REV_STRING
37 #define EXE_REV_STRING STR(EXE_VERSION) "." STR(EXE_REVISION)
39 // identify the system we are compiling for
40 #if defined(__amigaos4__)
41 #define SYSTEM "AmigaOS4"
42 #define SYSTEMSHORT "OS4"
43 #elif defined(__MORPHOS__)
44 #define SYSTEM "MorphOS"
45 #define SYSTEMSHORT "MOS"
46 #elif defined(__AROS__)
48 #define SYSTEMSHORT SYSTEM
49 #elif defined(__AMIGA__)
50 #define SYSTEM "AmigaOS3"
51 #define SYSTEMSHORT "OS3"
52 #elif defined(__linux__)
53 #define SYSTEM "Linux"
54 #define SYSTEMSHORT "linux"
56 #define SYSTEM "Windows"
57 #define SYSTEMSHORT "WIN"
58 #elif defined(__APPLE__) && defined(__MACH__)
59 #define SYSTEM "MacOSX"
60 #define SYSTEMSHORT "OSX"
62 #warning "Unsupported System - check SYSTEM define"
64 #define SYSTEMSHORT "???"
67 // identify the CPU model
70 #elif defined(__PPC__) || defined(__powerpc__)
72 #elif defined(_M68060) || defined(__M68060) || defined(__mc68060)
74 #elif defined(_M68040) || defined(__M68040) || defined(__mc68040)
76 #elif defined(_M68030) || defined(__M68030) || defined(__mc68030)
78 #elif defined(_M68020) || defined(__M68020) || defined(__mc68020)
80 #elif defined(_M68000) || defined(__M68000) || defined(__mc68000)
82 #elif defined(__i386__)
84 #elif defined(__x86_64__)
87 #warning "Unsupported CPU model - check CPU define"