mirror of https://gitlab.com/rnger/amath
138 lines
5.2 KiB
C
138 lines
5.2 KiB
C
/*
|
|
* Copyright (c) 2015-2017 Carsten Sonne Larsen <cs@innolan.dk>
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
* documentation and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*
|
|
*/
|
|
|
|
#ifndef AMATH_TEXT_START_H
|
|
#define AMATH_TEXT_START_H
|
|
/******************************************************************************/
|
|
/**
|
|
* @file start.h
|
|
* @brief Start message and version text
|
|
*
|
|
*/
|
|
/******************************************************************************/
|
|
#include "clib.h"
|
|
/******************************************************************************/
|
|
#if defined(INTELCPU) || defined(i386) || defined(i486) || \
|
|
defined(intel) || defined(x86) || defined(i86pc) || \
|
|
defined(__i386__) || defined(_M_IX86)
|
|
# ifdef TXTCPU
|
|
# undef TXTCPU
|
|
# endif
|
|
# define TXTCPU "i386"
|
|
#endif
|
|
#if defined(__x86_64__) || defined(_M_AMD64)
|
|
# define TXTCPU "amd64"
|
|
#endif
|
|
/******************************************************************************/
|
|
#if defined(__powerpc__) || defined(__powerpc64__)
|
|
# define TXTCPU "PowerPC"
|
|
#endif
|
|
/******************************************************************************/
|
|
#if defined(__arm__) || defined(_M_ARM)
|
|
# define TXTCPU "arm"
|
|
#endif
|
|
#if defined(__aarch64__) || defined(_M_ARM64)
|
|
# define TXTCPU "arm64"
|
|
#endif
|
|
/******************************************************************************/
|
|
#ifdef mc68000
|
|
# define TXTCPU "68000+"
|
|
#endif
|
|
/******************************************************************************/
|
|
#ifdef mc68020
|
|
# ifdef TXTCPU
|
|
# undef TXTCPU
|
|
# endif
|
|
# define TXTCPU "68020"
|
|
#endif
|
|
/******************************************************************************/
|
|
#ifdef mc68030
|
|
# ifdef TXTCPU
|
|
# undef TXTCPU
|
|
# endif
|
|
# define TXTCPU "68030"
|
|
#endif
|
|
/******************************************************************************/
|
|
#ifdef mc68040
|
|
# ifdef TXTCPU
|
|
# undef TXTCPU
|
|
# endif
|
|
# define TXTCPU "68040"
|
|
#endif
|
|
/******************************************************************************/
|
|
#ifdef mc68060
|
|
# ifdef TXTCPU
|
|
# undef TXTCPU
|
|
# endif
|
|
# define TXTCPU "68060"
|
|
#endif
|
|
/******************************************************************************/
|
|
#ifndef TXTCPU
|
|
#error what cpu is this ?!
|
|
//#define TXTCPU EMPTYSTRING
|
|
#endif
|
|
/******************************************************************************/
|
|
#if defined(TXTCPU) && defined(__HAVE_68881__)
|
|
# define TXTFPU SPACE "FPU"
|
|
#else
|
|
# define TXTFPU EMPTYSTRING
|
|
#endif
|
|
/******************************************************************************/
|
|
#if defined(WITHTEST) && !defined(ANSICONSOLE)
|
|
# define TXTOPTS "TEST"
|
|
#endif
|
|
#if !defined(WITHTEST) && defined(ANSICONSOLE)
|
|
# define TXTOPTS "ANSI"
|
|
#endif
|
|
#if defined(WITHTEST) && defined(ANSICONSOLE)
|
|
# define TXTOPTS "ANSI, TEST"
|
|
#endif
|
|
#ifdef TXTOPTS
|
|
# define TXTOPTMSG SPACE "(OPT: " TXTOPTS ")"
|
|
#else
|
|
# define TXTOPTMSG EMPTYSTRING
|
|
#endif
|
|
/******************************************************************************/
|
|
#define TXTARCH TXTCPU TXTFPU
|
|
#define RELDATESTAMP "(24-01-2017)"
|
|
#define TXTDOSVERSION "\0$VER: amath 1.62" SPACE RELDATESTAMP SPACE TXTARCH
|
|
#define TXTTITLE "amath version 1.6.2"
|
|
#define TXTCOPYRIGHT "(c) 2017 Carsten Sonne Larsen"
|
|
#define TXTSTARTMSG TXTTITLE SPACE TXTCOPYRIGHT
|
|
/******************************************************************************/
|
|
#define TXTVERSMSG TXTTITLE SPACE RELDATESTAMP SPACE TXTARCH
|
|
#define TXTCOMPMSG "Compiled with " COMP_NAME SPACE COMP_VERS TXTOPTMSG
|
|
/******************************************************************************/
|
|
#define TXTEXTCOPYRIGHT \
|
|
"This software contains copyrighted material by:" NEWLINE \
|
|
"The Regents of the University of California" NEWLINE \
|
|
"The NetBSD Foundation, Inc." NEWLINE \
|
|
"Sun Microsystems, Inc." NEWLINE "Ryan Juckett" NEWLINE NEWLINE \
|
|
"Portions of the code have been contributed by:" NEWLINE \
|
|
"Stephen L. Moshier" NEWLINE "Stefan Haubenthal" NEWLINE \
|
|
"Ryan Juckett" NEWLINE "Chris Torek" NEWLINE "Mike Hibler"
|
|
/******************************************************************************/
|
|
#endif |