include /usr/include/make/commondefs
include /usr/include/make/commonrules

include /usr/local/CAVERN/CAVERN_MAKEFILE_INCLUDES

DIRT= *.o *~ Makedepend flame thrower throwerm flame2 flame2m manyload CAVERN_DEFAULT_DB

#############################################################################

# Use this define for N32 compiling
#PERFORMER_LIB=-L/usr/local/CAVE/lib -lpfcave_ogl_n32 -lpfdu -lpfutil -lpf -lGL -lXi -lX11 -lm -lfpe -lC -limage
# Use this for regular -32 compiling

PERFORMER_LIB=-L/usr/local/CAVE/lib -lpfcave_ogl -lpfdu -lpfutil -lpf -lGL -lXi -lX11 -lm -lfpe -lC -limage
 
CAVE_INC=-I/usr/local/CAVE/include -DOPENGL

all:
         make flame thrower throwerm flame2 flame2m manyload

#ptused is needed to make sure the libcavern.a library gets instantiations of all
#classes that are formed from templates.

.c++.o:
         CC -ptused -MDupdate Makedepend  $(CAVERN_CFLAGS) $(CAVE_INC) -c $*.c++

flame: flame.o
         CC -MDupdate Makedepend -o flame flame.o $(CAVERN_LIB) $(PERFORMER_LIB)

flame2: flame2.o
         CC -MDupdate Makedepend -o flame2 flame2.o $(CAVERN_LIB) $(PERFORMER_LIB)

flame2m: flame2m.o
         CC -MDupdate Makedepend -o flame2m flame2m.o $(CAVERN_LIB) $(PERFORMER_LIB)

manyload: manyload.o
         CC -MDupdate Makedepend -o manyload manyload.o  $(CAVERN_LIB) $(PERFORMER_LIB)
 

thrower: thrower.o
         CC -MDupdate Makedepend -o thrower thrower.o $(CAVERN_LIB)

throwerm: throwerm.o
         CC -MDupdate Makedepend -o throwerm throwerm.o $(CAVERN_LIB)