grub2: bring back build of aros-side grub2 tools
[AROS.git] / tools / flexcat / src / version.h
blob3523160df0f5af4dfadf8546ba609acd0eb0c908
1 /*
2 * $Id$
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.
23 #ifndef _VERSION_H_
24 #define _VERSION_H_
26 // transforms a define into a string
27 #define STR(x) STR2(x)
28 #define STR2(x) #x
30 // for setting all necessary version information
31 #define EXE_VERSION 2
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__)
47 #define SYSTEM "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"
55 #elif defined(_WIN32)
56 #define SYSTEM "Windows"
57 #define SYSTEMSHORT "WIN"
58 #elif defined(__APPLE__) && defined(__MACH__)
59 #define SYSTEM "MacOSX"
60 #define SYSTEMSHORT "OSX"
61 #else
62 #warning "Unsupported System - check SYSTEM define"
63 #define SYSTEM "???"
64 #define SYSTEMSHORT "???"
65 #endif
67 // identify the CPU model
68 #if defined(__arm__)
69 #define CPU "ARM"
70 #elif defined(__PPC__) || defined(__powerpc__)
71 #define CPU "PPC"
72 #elif defined(_M68060) || defined(__M68060) || defined(__mc68060)
73 #define CPU "m68060"
74 #elif defined(_M68040) || defined(__M68040) || defined(__mc68040)
75 #define CPU "m68040"
76 #elif defined(_M68030) || defined(__M68030) || defined(__mc68030)
77 #define CPU "m68030"
78 #elif defined(_M68020) || defined(__M68020) || defined(__mc68020)
79 #define CPU "m68k"
80 #elif defined(_M68000) || defined(__M68000) || defined(__mc68000)
81 #define CPU "m68000"
82 #elif defined(__i386__)
83 #define CPU "x86"
84 #elif defined(__x86_64__)
85 #define CPU "x86_64"
86 #else
87 #warning "Unsupported CPU model - check CPU define"
88 #define CPU "???"
89 #endif
91 #endif // _VERSION_H_