# this file contains all the paths to the software packages on
# Solaris machines, specifically Bedlam and Anarchy

CODES_HOME	=	$(HOME)/Codes/ateams
EXE_NAME	=	$(CODES_HOME)/bin/AsmTk

# System Commands
CXX		=	CC
CC_FLAGS	=	-DANSI -g -DSOLARIS -pto
EXT		=	.solaris

# target library path
TARGET_LIB_DIR	=	$(CODES_HOME)/lib

# local variables
LOCAL_LIB_DIRS	=	-L$(TARGET_LIB_DIR)
LOCAL_LIBS	=	-lcstream -lRAPID
LOCAL_INCS	=	-I$(CODES_HOME)/cstream/include \
			-I$(CODES_HOME)/RAPID/include

# System Variables
ARCH		=	solaris_cxx4
SYS_INCS	=	-I/usr/include\
			-I/usr/local/include\
			-I../cstream

SYS_LIB_DIRS	=	-L/usr/dt/lib \
			-L/afs/cs/misc/X11/sun4_55/omega/usr/local/lib/X11\
			-L/afs/cs/misc/motif/sun4_55/omega/usr/local/lib

SYS_LIBS	=	-lXm -lXt -lX11 -lm 

# the tcl/tk inlcudes and libraries
TCLTK_INCS	=	-I/afs/cs/project/edrc-codes/tcl7.6/include
TCLTK_LIBS	=	-ltk4.2 -ltcl7.6
# no TCLTK_LIB_DIRS required (shared libraries); However one needs to include
# /usr/include/lib in LD_LIBRARY_PATH

# LEDA Variables
LEDA_HOME	=	$(HOME)/Afs/Codes/ateams/sachdev/LEDA
LEDA_INCS	=	-I$(LEDA_HOME)/LEDA-3.4.1/incl
LEDA_LIB_DIRS	=	-L$(LEDA_HOME)/LEDA-3.4.1/lib
LEDA_LIBS	=	-lW -lP -lG -lL

# Acis2.1 specifics
ACIS21_MAIN	=	/afs/cs/local/acis/sun4_55/omega/lib/acis

ACIS21_INCS	=	-I$(ACIS21_MAIN)/3dt2.1\
			-I$(ACIS21_MAIN)/acis2.1

ACIS21_LIB_DIRS	=	-L$(ACIS21_MAIN)/acis2.1/lib/$(ARCH)\
			-L$(ACIS21_MAIN)/rbase2.1/lib/$(ARCH)\
			-L$(ACIS21_MAIN)/ag1.51/lib/$(ARCH)\
			-L$(ACIS21_MAIN)/tb2.1/lib/$(ARCH)\
			-L$(ACIS21_MAIN)/3dt2.1/lib/$(ARCH)\
			-L$(ACIS21_MAIN)/br2.1/lib/$(ARCH)
ACIS21_LIBS	=	-lmeshhusk -lfaceter -lerror -lkernapi -lkernbody\
			-lkernbool -lkerndata -lkernint -lkerngeom -lkernutil\
			-lkernwire -lsg_husk -lagspline\
			-lrnd_husk -laglib -ltestbed -lct_husk
TK21_LIBS	=	-lbr_husk -lgeomhusk -lgihusk -lpmhusk -lfacet\
			-lrender -lmain
ACIS_FLAGS	=	-DACIS_VER=200 -DAGVER=105 -DX_WINDOWS -DMOTIF
# note: even though this make file is for ACIS_VER 210 and AGVER 151, the
# versions have to be defined as 200 and 105 to be consistent with the
# include files.

# 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

# combine everything
INCS	=	$(TCLTK_INCS) $(SYS_INCS) $(LEDA_INCS) $(ACIS21_INCS) \
		$(INVENTOR_INCS) $(LOCAL_INCS)

LIB_DIRS =	$(SYS_LIB_DIRS) $(LEDA_LIB_DIRS) $(ACIS21_LIB_DIRS) \
		$(INVENTOR_LIB_DIRS) $(TCLTK_LIB_DIRS) $(LOCAL_LIB_DIRS)

LIBS	=	$(LOCAL_LIBS) $(INVENTOR_LIBS) $(TCLTK_LIBS) \
		$(TK21_LIBS) $(TK21_LIBS) \
		$(ACIS21_LIBS) $(ACIS21_LIBS) $(ACIS21_LIBS) \
		$(LEDA_LIBS) $(SYS_LIBS)
