TOOLKIT_MAIN_LOC = /afs/cs/project/edrc-codes/ateams/ToolKit

PROJ_LOC	=	..
BIN_LOC		=	$(PROJ_LOC)/bin/@sys
DATA_DIR	=	$(PROJ_LOC)/bin/@sys
LIB_LOC		=	$(PROJ_LOC)/lib
SOL_LOC		=	$(PROJ_LOC)/memory

PROJ_INCLUDES	=	-I$(PROJ_LOC)/include

# System Variables
ARCH		=	irix_cxx4
SYS_INCS	=	-I/usr/local/include \
			-I/usr/include
SYS_LIB_DIRS	=	-L/usr/dt/lib \
			-L/usr/local/lib/X11 \
			-L/usr/local/lib
SYS_LIBS	=	$(SYS_LIB_DIRS) -lsocket -lX11 -lm

# System Commands
CXX		=	CC
CC_FLAGS	=	-DANSI -g

# Project Variables
CODES_INCS	= 	-I/afs/cs/project/edrc-codes/ateams/include \
			-I/afs/cs/project/edrc-codes/ateams/RAPID/include
CODES_LIB_DIRS	=	-L/afs/cs/project/edrc-codes/ateams/lib/
CODES_LIBS	=	$(CODES_LIB_DIRS) -lcstream -lRAPID

# ATeam Toolkit Variables
ATEAM_TOOLKIT_INCS	=	-I$(TOOLKIT_MAIN_LOC)/include		\
				-I$(TOOLKIT_MAIN_LOC)/src/agent/include	\
				-I$(TOOLKIT_MAIN_LOC)/src/ateam/include	\
				-I$(TOOLKIT_MAIN_LOC)/src/memory/include \
				-I$(TOOLKIT_MAIN_LOC)/src/interp/include

ATEAM_TOOLKIT_LIBS	=	-L$(TOOLKIT_MAIN_LOC)/lib \
				-lagent -ldata -lmemory -linterp -lutils

# LEDA Variables
LEDA_MAIN	=	/afs/cs.cmu.edu/project/edrc-codes/ateams/LEDA-3.4.1
LEDA_INCS	=	-I$(LEDA_MAIN)/incl
LEDA_LIB_DIRS	=	-L$(LEDA_MAIN)/lib
LEDA_LIBS	=	$(LEDA_LIB_DIRS) -lW -lP -lG -lL

# Acis3.0 specifics
ACIS30_ARCH	=	sgi_so
ACIS30_MAIN	=	/afs/cs.cmu.edu/project/edrc-codes-2/temp/acis/@sys/omega/lib/acis

ACIS30_INCS	= \
			-I$(ACIS30_MAIN)/bool3.0	\
			-I$(ACIS30_MAIN)/covr3.0	\
			-I$(ACIS30_MAIN)/cstr3.0	\
			-I$(ACIS30_MAIN)/eulr3.0	\
			-I$(ACIS30_MAIN)/fct3.0		\
			-I$(ACIS30_MAIN)/intr3.0	\
			-I$(ACIS30_MAIN)/kern3.0	\
			-I$(ACIS30_MAIN)/ofst3.0	\
			-I$(ACIS30_MAIN)/swp3.0

ACIS30_LIB_DIRS	=	-L$(ACIS30_MAIN)/lib/$(ACIS30_ARCH)

ACIS30_LIBS	= \
			-lsweep \
			-loffset \
			-lcover \
			-lfaceter \
			-lboolean \
			-lconstrct \
			-leuler \
			-lintersct \
			-lspline \
			-lkernel

ACIS30_FLAGS	= -rpath $(ACIS30_MAIN)/lib/$(ACIS30_ARCH) \
	-DPOINT_VERSION=0	\
	-DANSI			\
	-D$(ACIS30_ARCH)	\
	-DNO_DTORS		\
	-DX_WINDOWS		\
	-DMOTIF

ACIS30_LIB_FLAGS =	$(ACIS30_LIB_DIRS) \
			$(ACIS30_LIBS)

# start of Acis3.0 SGI
# ACIS30_FLAGS_SGI =	-D$(ACIS30_ARCH_SGI) -DX_WINDOWS
# ACIS30_SYS_LIBS =	-L/usr/lib/X11R5 -L/usr/openwin/lib -lXt -lX11 -lm
# ACIS30_SYS_INCS =	-I/usr/include/X11R5    \
			-I/usr/openwin/include
# end of Acis3.0 SGI

# end of Acis3.0

ACIS_LIB_DIRS	=	$(ACIS30_LIB_DIRS)
ACIS_INCS	=	$(ACIS30_INCS)
ACIS_LIBS	=	$(ACIS30_LIB_FLAGS)
ACIS_FLAGS	=	$(ACIS30_FLAGS)

# Inventor variables:
INVENTOR        =       $(OIVHOME)
OPEN_GL		=	$(OGLHOME)
INVENTOR_INCS   =       -I$(INVENTOR)/include -I$(OPEN_GL)/include
INVENTOR_LIBS   =       -lGLw -lGL -lGLU -ldga -laux \
			-lInventorXt -lInventor -limage
INVENTOR_LIB_DIRS =	-L$(INVENTOR)/lib -L$(OPEN_GL)/lib

ALL_FLAGS	= $(CC_FLAGS) $(ACIS_FLAGS)

ALL_INCLUDES 	=	$(SYS_INCS)		\
			$(CODES_INCS)		\
			$(ATEAM_TOOLKIT_INCS)	\
			$(LEDA_INCS)		\
			$(ACIS_INCS)		\
			$(TCL_INCLUDES)		\
			$(UTIL_INCLUDES)	\
			$(PROJ_INCLUDES)	\
			$(PVM_INCLUDES)

ALL_LIBDIRS	=	$(SYS_LIB_DIRS)		\
			$(CODES_LIB_DIRS)	\
			$(LEDA_LIB_DIRS)	\
			$(ACIS_LIB_DIRS)	\
			-L$(LIB_LOC)

ALL_LIBS	=	$(CODES_LIBS)		\
			$(ATEAM_TOOLKIT_LIBS)	\
			$(LEDA_LIBS)		\
			$(DATA_LIBS)		\
			$(ACIS_LIBS)		\
			$(LEDA_LIBS)		\
			$(UTIL_LIBS)		\
			$(BLT_LIBS)		\
		        $(TCL_LIBS)		\
			$(TK_LIBS)		\
			$(X_LIBS)		\
			$(SYS_LIBS)		\
			$(PVM_LIBS)		\
			$(CCLIBS)

