# This makefile will use the latest version (at least the one I have) to # compile a program. It will only work on SGI workstations running 6.2 and # higher. # # To use this makefile for your own program change the line SRC to list # all the source (.c) files you need to compile. And PROG to give the # name of the executable. # # Rob # ------------------------------------------------------------------------ PROG1 = ex1 OBJ1 = ex1.o PROG2 = ex2 OBJ2 = ex2.o PROG3 = ex3 OBJ3 = ex3.o PROG4 = ex4 OBJ4 = ex4.o # Location of the glut libraries GLUT = /users/c/cs4451/glut # Link flags LIBS = -lglut -lGLU -lGL -lXmu -lXi -lXext -lX11 -lm LDFLAGS = -g -n32 -L$(GLUT)/sgilib # Compile flags CFLAGS = -g -n32 -I$(GLUT)/include all: $(PROG1) $(PROG2) $(PROG3) $(PROG4) $(PROG1): $(OBJ1) $(CC) -o $(PROG1) $(OBJ1) $(LDFLAGS) $(LIBS) $(PROG2): $(OBJ2) $(CC) -o $(PROG2) $(OBJ2) $(LDFLAGS) $(LIBS) $(PROG3): $(OBJ3) $(CC) -o $(PROG3) $(OBJ3) $(LDFLAGS) $(LIBS) $(PROG4): $(OBJ4) $(CC) -o $(PROG4) $(OBJ4) $(LDFLAGS) $(LIBS) clean: -rm -f $(OBJ) $(PROG) core *~