CCL Home Page
Up Directory CCL machine
/*machine.h
  Eric Pepke
  May 29, 1991

  Defines some machine-specific stuff
*/

#ifndef _H_L_MACHINE
#define _H_L_MACHINE

/*Names of libraries*/
#define LIBMALLOC	"malloc"	/*Faster MALLOC library*/
#define LIBHDF		"df"		/*NCSA HDF library*/

/*Supported machine types*/
#define IRIS4D          1               /*Silicon Graphics IRIS 4D*/
#define RS6000          2               /*IBM RS-6000*/
#define CRAYYMP		3		/*Cray Y/MP (computation only)*/
#define CONVEX		4		/*Convex*/

/*Attempt to guess the machine type based on built-in processor directives*/
#ifdef sgi
#define MACHINE         IRIS4D          /*4D cpp defines sgi*/
#else
#ifdef __sgi
#define MACHINE		IRIS4D		/*-ansi cpp defines sgi*/
#else
#define MACHINE         RS6000          /*Must be a 6000*/
#endif
#endif

/*If this machine cannot be guessed, put in a #define MACHINE here*/

/*Depending on the machine, define (or don't) the following flags:
        GL4D            GL library as defined on the IRIS4D is present
        FMATH           math routines have float as well as double versions
	MATHF		math routines have float with f at end
        MALLOCH         there is a malloc.h available and we're using the lib
        FONTS4D         fonts as defined on the IRIS4D are present
        CURSORS4D       cursors as defined on the IRIS4D are present
	MENUS4D		menus are defined as on the IRIS4D
	WINDOWS4D	windows are defined as on the IRIS4D
        IRISNTSC        NTSC functions as defined on the IRIS4D are present
        IRIS            the machine is some kind of IRIS, 4D or not
        PROTO           use ANSI C prototypes (never been tested without)
        DIRENT          Directory is struct dirent else it is struct direct
	FORTRAN_	FORTRAN routines need an underscore after the name
	SOCKETS		sockets are available and are to be used
	STDLIB		stdlib.h is present
	HDFDEF		HDF library is defined
	INTERWINDRAG	can drag between windows
	WINNOCLOSE	never actually close windows, just hide 'em	
	GETPWNAM	use getpwnam call to determine ~name
	MENUSFROM0	menus items are defined starting from 0 instead of 1 	
	NOHIDEFRAME	cannot hide window frames
	GRAPHICS	version has graphics at all
	INTERACTIVE	version has interactive functions at all
	TERMIO		machine has terminal IO, needed for some recorders
	SCAVENGECOLORS	try to scavenge colors from existing color map
*/

#if MACHINE == IRIS4D

#define GL4D
#define FMATH
#define MALLOCH
#define FONTS4D
#define CURSORS4D
#define IRISNTSC
#define IRIS
#define PROTO
#define SOCKETS
#define FORTRAN_
#define STDLIB
#define INTERWINDRAG
#define GETPWNAM
#define MENUS4D
#define WINDOWS4D
#define GRAPHICS
#define INTERACTIVE
#define TERMIO
#define SCAVENGECOLORS

/*Cannot seem to hide the window frame under IRIX version 4*/
#define NOHIDEFRAME

#else
#if MACHINE == RS6000

#define GL4D
#define PROTO
#define GETPWNAM
#define NOHIDEFRAME
#define INTERWINDRAG
#define MENUS4D
#define WINDOWS4D
#define GRAPHICS
#define INTERACTIVE
#define TERMIO
#define STDLIB

/* Insert a #define MENUSFROM0 for version 3.1.5 */

#undef _ANSI_C_SOURCE			/*Gotta do this; I don't know why.*/
#define DIRENT

#else
#if MACHINE == CONVEX

#define PROTO
#define FORTRAN_
#define MATHF
#define SOCKETS
#define STDLIB

#else

Hey!  No machine is defined!
#endif
#endif
#endif

#endif

/*Remove the #if 0 and #endif to include the NCSA HDF library*/
#if 1
#define HDFDEF
#endif

/*Remove the #if 0 and #endif to make this a computational node*/
/*This is experimental only.  Don't use this feature in the release version*/
#if 0
#define COMPONLY
#endif

/*If it's computation only, no interaction or graphics.*/
#ifdef COMPONLY
#undef GRAPHICS
#undef INTERACTIVE
#endif

/*Release version*/
#if 0
#define RELEASE
#endif
Modified: Sun Nov 17 17:00:00 1996 GMT
Page accessed 4634 times since Sat Apr 17 21:54:20 1999 GMT