############################ # # Messages: # # 1. The version of GLUT installed on the system is 3.6. The handout # distributed in class describes version 1.0. So if you want to use # new functions, check out the GLUT homepage: # http://reality.sgi.com/opengl/glut3/glut3.html # # 2. Make sure /usr/pkg/Mesa/lib is in your LD_LIBRARY_PATH. For example, # put the following line at the end of your .environset file: # setenv LD_LIBRARY_PATH /usr/pkg/Mesa/lib:$LD_LIBRARY_PATH # # 3. The demo programs included with Mesa (the OpenGL clone) are in # /usr/pkg/Mesa/lib/Mesa/demos/ # The source files for those demos are in # /usr/project/courses/cps124/Mesa/demos/ # ############################# LDLIBS = GLDLIBS = -framework AGL -framework OpenGL -framework GLUT -framework Foundation LDFLAGS = $(LDLIBS) $(GLDLIBS) -lm #LINKLIBS = -framework OpenGL -framework GLUT # -lglut -lMesaGLU -lMesaGL -lX11 -lm -lXmu -lXext -lXi # # define SOUP to turn on experiments # CFLAGS = -g -O0 $(INCLUDEPATH) # -DSOUP CC = gcc -Wall PROGS = grid OBJS = tools.o matrix.o io.o SRCS = tools.c matrix.c io.c HDRS = tools.h matrix.h io.h queue.h default: $(PROGS) grid.tgz: tar -czvf $@ $(SRCS) $(HDRS) Makefile grid: grid.o $(OBJS) $(CC) -o $@ $< $(OBJS) $(LDFLAGS) foo: foo.o $(OBJS) $(CC) -o $@ $< $(OBJS) $(LDFLAGS) clean:: $(RM) $(PROGS) $(RM) $(OBJS) %.o:: %.c $(COMPILE.c) $< -o $@