Makefile
contents ::
  Makefile
  hello.c

#
# A simple Makefile for OpenGL
#

# Paths for libraries and includes for linking (don't change!)

XLIBS =  -L/usr/X11R6/lib -lXext -lXmu -lXt -lXi -lSM -lICE -lpthread
COPTS =  -O3 -g3 -I/usr/include 
LOPTS =  -O3 -g3  -fullwarn -L/usr/lib -lglut -lGLU -lGL -lm $(XLIBS)


# The list of code files, object files, and the compiler to use

# Define our source code (change)
CFILES = hello.c

# Define the .o files to correspond with the .c files
OFILES = $(CFILES:.c=.o)

# Use the C compiler
CC = gcc

# Name of the compiled output (change)
TARGET = dots


# Makefile terminal commands:  make == make default

default: clean go

.c.o: $(CFILES) 
         $(CC) -c $< $(COPTS)

go: $(OFILES) 
         $(CC) $(OFILES)  -o $(TARGET) $(LOPTS)

clean:
         rm -f $(OFILES)  core $(TARGET)





James Little