# Date: Wed, 18 Feb 1998 18:33:23 -0500 (EST) # From: Chen Li # To: Chee Yap # Subject: makefile on slinky and set up to run it ####################################################### # This sample Makefile allows you to make a OpenGL application # whose source is exactly one .c file. # # # To use this Makefile, you must type: # # make PROG=xxxx # ---- # where # xxxx.c is the name of the file you wish to compile, or # ---- # PROG = hw1 CC = gcc LDLIBS = -L/usr/X11R6/lib -L/usr/unsupported/installers/chenli/lib -lglut -lGL -lGLU -lXmu -lXi -lXext -lX11 -lm -lsocket -lnsl INCLUDE = -I/usr/unsupported/installers/chenli/include executable: $(CC) -g $(INCLUDE) $(PROG).c \ $(LDFLAGS) $(LDLIBS) -o $(PROG) hw1: $(CC) -g $(INCLUDE) hw1.c \ $(LDFLAGS) $(LDLIBS) -o hw1 # end of Makefile