# Simple makefile for OpenGL sample programs
# Created: Matt Ward
# Contact: matt@cs.wpi.edu


# the objects to be constructed by the makefile
RAST_OBJS = Image.o
VECTOR_OBJS = 

# must change depending on your machine's configuration
LIBS = -lglut -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lm

# include must change depending upon machine configuration
INCLD = -I/usr/local/include

Image.o: Image.h Image.cpp
	g++ $(INCLD) -c Image.cpp


raster: $(RAST_OBJS) raster_main.cpp
	g++ $(INCLD) -o raster raster_main.cpp $(RAST_OBJS) $(LIBS)

vector: $(VECTOR_OBJS) vector_main.cpp
	g++ $(INCLD) -o vector vector_main.cpp $(VECTOR_OBJS) $(LIBS)

clean:
	rm -f *.o raster vector
