COMPILER = CC CAVELIBS= -lcave_ogl -lgeo #CAVE_DIR = -L/home/vr/CAVE/lib32/mips4 CAVE_DIR = -L/home/vr/CAVE/lib CAVE_INC_DIR = -I/home/vr/CAVE/include CLIPLIB = -L/home/users/arns/motion/clip/vclip_1.0/lib CLIPINC = -I/home/users/arns/motion/clip/vclip_1.0/include # These are assorted other libraries that must be linked with GLLIBS = -lGL -lGLU XLIBS = -lX11 -lXt -lXi OTHERLIBS = -lm -limage LIBS = $(CAVE_DIR) $(CAVELIBS) $(XLIBS) $(GLLIBS) $(CLIPLIB) -lvclip $(OTHERLIBS) #CFLAGS = -n32 -mips4 -O $(CAVE_INC_DIR) $(CLIPINC) -I. -DSGI -woff 3322 CFLAGS = -o32 -O $(CAVE_INC_DIR) $(CLIPINC) -I. -DSGI -woff 3322 OBJS = stuff.o stick.o disk.o model.o main.o all: sticks # Does linking of the files and libraries sticks: $(OBJS) @echo "Currently compiling" $(COMPILER) $(CFLAGS) $(OBJS) -o sticks $(LIBS) @echo "Compiled and linked" # Compiles the files if necessary .C.o: $(COMPILER) $(CFLAGS) -c $@ $*.C #clean up code clean: strip sticks rm -f *.o @echo "All Neat Now"