13.016 Introduction to Geometric Modeling and Computation
Making the Example Programs
athena% add 13.016 athena% cd /mit/13.016 athena% cd graphics athena% more Makefile EXAMPLE1 = example1-square.o EXAMPLE2 = example2-star.o INC = /mit/13.016/include LIB = /mit/13.016/lib CFLAGS = -ansi -fullwarn -g -I$(INC) LIBRARIES = $(LIB)/libglut.a -lGLU -lGL -lXmu -lXext -lX11 -lm all: example1 example2 example1: $(EXAMPLE1) cc -o $@ $(EXAMPLE1) $(LIBRARIES) example2: $(EXAMPLE2) cc -o $@ $(EXAMPLE2) $(LIBRARIES) athena% make cc -ansi -fullwarn -g -I/mit/13.016/include -c example1-square.c cc -o example1 example1-square.o /mit/13.016/lib/libglut.a -lGLU \ -lGL -lXmu -lXext -lX11 -lm cc -ansi -fullwarn -g -I/mit/13.016/include -c example2-star.c cc -o example2 example2-star.o /mit/13.016/lib/libglut.a -lGLU \ -lGL -lXmu -lXext -lX11 -lm athena%