COMPILER = CC CPELIB = -lcave_ogl -lglut CPE_DIR = -L/home/vr/CAVE/lib -L. CPE_INC_DIR = -I/home/vr/CAVE/include # These are assorted other libraries that must be linked with GLLIBS = -lGL -lGLU XLIBS = -lX11 -lXt -lXi OTHERLIBS = -lm -limage LIBS = $(CPE_DIR) $(CPELIB) $(XLIBS) $(GLLIBS) $(OTHERLIBS) CFLAGS = -32 -mips2 -O $(CPE_INC_DIR) -woff 3554 -I. -DSGI OBJS = main.o hoverbots.o objects.o util.o all: run collidetest: collidetest.o $(COMPILER) $(CFLAGS) collidetest.o -o collidetest $(LIBS) atest: atest.o $(COMPILER) $(CFLAGS) atest.o -o atest $(LIBS) # Does linking of the files and libraries run: $(OBJS) @echo "Currently compiling" $(COMPILER) $(CFLAGS) $(OBJS) -o run $(LIBS) @echo "Compiled and linked" # Compiles the files if necessary .C.o: $(COMPILER) $(CFLAGS) -c $@ $*.C #run: *.C *.h # $(COMPILER) $(CFLAGS) -c $@ $*.C #clean up code clean: rm run rm -f *.o @echo "All Neat Now"