############################################################## # This version is for using on Debian machines # Set the env variable as below when running "triangle" program # # setenv LD_LIBRARY_PATH /home/cs352/fall03/local-linux/lib ############################################################## # LPATH tells the linker where to find libraries LPATH = -L/usr/openwin/lib -L/home/cs352/fall03/local-linux/lib # IPATH tells the compiler where to look for include files. IPATH = -I/home/cs352/fall03/local-linux/include # GLLIBS are the GLUT and OpenGL (or Mesa) libraries needed by the linker. GLLIBS = -lglut -lGLU -lGL # XLIBS are the X libraries needed by the linker because GLUT and OpenGL # call X routines. XLIBS = # MISCLIBS are miscellaneous libs that are needed by the linker. # -lm denotes the math library. MISCLIBS = -lm LIBS = $(LPATH) $(GLLIBS) $(XLIBS) $(MISCLIBS) # compiler CC = gcc # compiler flags: # -g tells the compiler to produce symbolic information that a debugger # (like gdb) needs. # -Wall tells the compiler to print warnings about pretty much everything. CFLAGS = -g -Wall all : triangle triangle : triangle.o $(CC) $(CFLAGS) -o triangle triangle.o $(LIBS) # The default way to convert .c files into .o files. .c.o: ; $(CC) -c $(CFLAGS) $(IPATH) $< clean: $(RM) *.o triangle