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

TOPDIR = /Users/wb104/azara-2.8

# use this for Windows platform (for path separator)
#ARCHFLAG = -DWINDOWS
# for everything else use this
ARCHFLAG = 

# C compiler
CC = cc 

# compiler flags
CFLAGS = -O -DDO_NOT_HAVE_MALLOC $(ARCHFLAG)
#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$(TOPDIR)/lesstif/include

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

# MOTIF library path, if different from X11
MOTIF_LIB_DIR = -L$(TOPDIR)/lesstif/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

# Python 
PYTHON_INCLUDE_DIR = -I$(TOPDIR)/python2.5/include/python2.5
# shared library flags
# use below for Linux or Irix
#SHARED_FLAGS = -shared
# use below (or similar) for OSX
SHARED_FLAGS = -L$(TOPDIR)/python2.5/lib -bundle -bundle_loader $(TOPDIR)/python2.5/bin/python
# use below for Solaris
#SHARED_FLAGS = -G

# 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
