# Makefile 15-462 # Shayan Sarkar # Jan 16, 2002 # Simplified for lecture 2 # Frank Pfenning INCLUDE = LIBRARIES = -lGL -lGLU -lglut COMPILER = gcc COMPILERFLAGS = -O2 $(INCLUDE) .c.o: $(COMPILER) -c $(COMPILERFLAGS) $< all: smooth flat smooth: smooth.o $(COMPILER) $(COMPILERFLAGS) -o smooth smooth.o $(LIBRARIES) flat: flat.o $(COMPILER) $(COMPILERFLAGS) -o flat flat.o $(LIBRARIES) clean: -rm -rf core *.o *~ "#"*"#" smooth flat