# System Commands
CXX	= /afs/cs.cmu.edu/misc/sunpro/sun4_55/3.2/opt/SUNWspro/bin/CC
# CC_FLAGS	=	-DANSI -g -DSOLARIS -pto -R /usr/dt/lib:/usr/openwin/lib:/usr/local/lib:/usr0/opengl/lib:/usr0/OpenInventor/lib:/usr/ucblib
CC_FLAGS	=	-DANSI -g -DSOLARIS -pto -R /usr/dt/lib:/usr/openwin/lib:/usr/local/lib:/usr/local/openGL/lib:/usr/local/OpenInventor/lib:/usr/ucblib
EXT		=	.solaris

# 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 

# target library path
TARGET_LIB_DIR	=	../../lib/solaris

# Acis2.1 specifics
#ACIS21_MAIN     =       /afs/cs/local/acis/sun4_55/omega/lib/acis
ACIS21_MAIN     =       /usr/local/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
ACIS21_FLAGS	=	-DACIS_VER=200 -DAGVER=105 -DX_WINDOWS -DMOTIF
ACIS21_LIB_FLAGS =	$(TK21_LIBS) $(TK21_LIBS) \
			$(ACIS21_LIBS) $(ACIS21_LIBS) $(ACIS21_LIBS)

# 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.

# Acis3.0 specifics
ACIS30_ARCH	=	solaris_so
ACIS30_MAIN	=	/afs/cs.cmu.edu/project/edrc-codes-2/temp/acis/sun4_55/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	=	-R $(ACIS30_MAIN)/lib/$(ACIS30_ARCH) \
			-DPOINT_VERSION=0	\
			-DANSI			\
			-D$(ARCH)		\
			-DNO_DTORS		\
			-DX_WINDOWS		\
			-DMOTIF

ACIS30_LIB_FLAGS =	$(ACIS30_LIB_DIRS) \
			$(ACIS30_LIBS)

# 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)
INVENTOR        =       /usr/local/OpenInventor
# OPEN_GL		=	$(OGLHOME)
OPEN_GL		=	/usr/local/openGL
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) $(ACIS_INCS) \
		$(INVENTOR_INCS) $(LOCAL_INCS)

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

LIBS	=	$(LOCAL_LIBS) $(INVENTOR_LIBS) $(TCLTK_LIBS) \
		$(ACIS_LIBS) $(LEDA_LIBS) $(SYS_LIBS)
