# -----------------------------------------------------------------------------
# Makefile.in for juggler/samples/vrJugglerExampleOOD
# $Id: Makefile.in,v 1.26 2000/01/25 23:25:32 allenb Exp $
#
# Generated for use on IRIX
# -----------------------------------------------------------------------------

.SUFFIXES: .cpp .o

#VTK = /local/vtk2.3
#VTK = /local/vtk3.1
VTK = /local/vtk3.2
VTK_TO_PF = ../..

srcdir		= .

COMPILE		= CC -DHAVE_CONFIG_H $(VJ_INCLUDES) $(EXTRA_INCLUDES) -ptv -woff 1681 -woff 1682 -woff 1014 -woff 3322 -w2 -g -gslim
LINK		= CC  -ptv  -woff 3322 -w2 
VJ_INCLUDES	= -I$(VJ_BASE_DIR)/include -I$(srcdir)
VJ_LIBS		= -B static -L$(VJ_BASE_DIR)/lib32 -lJuggler -lJuggler_ogl -lJuggler_pf -B dynamic -lm -lC
VPATH		= .

# This test program requires the following libraries to be linked:
#
#     -lpf_ogl -lpfdu_ogl -lpfui -lpfutil_ogl -limage -lGLU -lGL -lXext \
#     -lXmu -lX11 -lm -lC
#
# If the library uses POSIX threads, "-lpthread" must also be added to the
# list of libraries.
#
# The proper library path must be specified depending on the Application
# Binary Interface (ABI) used.  For o32 binaries, -L/usr/lib is the
# appropriate path.  For n32 binaries, use -L/usr/lib32.  For 64-bit binaries,
# use -L/usr/lib64.
EXTRA_INCLUDES = -I$(VTK_TO_PF) -I$(VTK)/contrib -I$(VTK)/graphics -I$(VTK)/common -I$(VTK)/patented
EXTRA_LIBS	=  -L$(VTK)/graphics -L$(VTK)/common -L$(VTK)/patented -L$(VTK_TO_PF) -lvtkActorToPF -lVTKGraphics -lVTKCommon -lXt -lpf_ogl -lpfdu_ogl -lpfui -lpfutil_ogl -L/usr/lib32 -L/usr -lGLU -lGL  -lX11 -lXext -lm


# -----------------------------------------------------------------------------
# Targets.
# -----------------------------------------------------------------------------
default: all

all: vrJugglerExampleOOD vrJugglerMedical1

vrJugglerExampleOOD: vrJugglerExampleOOD.o
	$(LINK) $(OBJ_STYLE) -o $@ vrJugglerExampleOOD.o $(VJ_LIBS) $(EXTRA_LIBS)

vrJugglerMedical1: vrJugglerMedical1.o
	$(LINK) $(OBJ_STYLE) -o $@ vrJugglerMedical1.o $(VJ_LIBS) $(EXTRA_LIBS) -lVTKPatented -lVTKGraphics

.cxx.o:
	$(COMPILE) -o $@ -c $<

# -----------------------------------------------------------------------------
# Clean-up.
# -----------------------------------------------------------------------------
clean:
	rm -f Makedepend vrJugglerExampleOOD vrJugglerExampleOOD.ilk vrJugglerExampleOOD.o vrJugglerMedical1 vrJugglerMedical1.o vrJugglerMedical.ilk $(OBJECTS) *core	\
          so_locations *.?db
	rm -rf ./ii_files
