# save as "Makefile" # make sure that all indentations are "tabs" # rather than "blanks", ie ``tab-lXext -lX11 -lm'' # To use this Makefile type # make PROG= # where # .c is the name of the file you wish to compile CC = gcc #linux 313 LDLIBS = -lpthread -L/usr/X11R6/lib -lglut -lGL -lGLU \ -lXi -lXmu -lXext -lX11 -lm #LDLIBS = -L/usr/local/lib -lglut -lGL -lGLU \ # -L/usr/X11R6/lib -lXi -lXmu -lXext -lX11 -lm # solaris #LDLIBS = -L/usr/openwin/lib -lglut -lGL -lGLU \ # -L/usr/X11R6/lib -lXi -lXmu -lXext -lX11 -lm INCLUDE = executable: $(CC) -g $(INCLUDE) $(PROG).c \ $(LDFLAGS) $(LDLIBS) -o $(PROG)