# this file specifies environment for makefiles and source code
# X11 and Motif stuff used in global, plot1, plot2, viewer
# XPM stuff used in plot2
# GL stuff used in viewer
# ENDIAN_FLAG used in global
# rest used in many or all makefiles

# C compiler
CC = cc

# compiler flags
#CFLAGS = -g
CFLAGS = -O

# linker flags
#LFLAGS = -p

# generic library
#LIB = -lmalloc

# math library
MATH_LIB = -lm

# X11 include path
#X11_INCLUDE_DIR = -I/usr/X11R6/include

# MOTIF include path, if different from X11
#MOTIF_INCLUDE_DIR = -I/usr/X11R6/include

# X11 library path
#X11_LIB_DIR = -L/usr/X11R6/lib

# MOTIF library path, if different from X11
#MOTIF_LIB_DIR = -L/usr/X11R6/lib

# whether XPM used (available)
XPM_FLAG = -DUSE_XPM

# Xpm library (if used, otherwise comment out)
XPM_LIB = -lXpm

# X11 libraries
X11_LIB = -lX11 -lPW
# non-SGI platforms do not need PW
#X11_LIB = -lX11
# below uses shared libraries
#X11_LIB = -lX11_s -lPW

# Motif libraries
MOTIF_LIB = -lXm -lXt
# below uses shared libraries
#MOTIF_LIB = -lXm_s -lXt_s

# GL include path
#GL_INCLUDE_DIR = $(X11_INCLUDE_DIR) -I/usr/local/mesa/include

# GL library path
#GL_LIB_DIR = $(X11_LIB_DIR) -I/usr/local/mesa/lib

# GL libraries
GL_LIB = -lglut -lGLU -lGL -lXmu -lX11 -lXext

# set up ENDIAN_FLAG as required
#   WRITE_ENDIAN_PAR if want endianess written to par file
#   BIG_ENDIAN_DATA if want data files to be big endian by default
#   LITTLE_ENDIAN_DATA if want data files to be little endian by default
#   FLIP_SWAP if want input data files to have swap flipped
# not all of these make sense in combination
# some examples of what you might do:
#ENDIAN_FLAG = -DWRITE_ENDIAN_PAR
#ENDIAN_FLAG = -DBIG_ENDIAN_DATA
#ENDIAN_FLAG = -DLITTLE_ENDIAN_DATA
