# Simple makefile for cs4731
# Created: Mark R. Stevens on February 12, 2000
# Contact: stevensm@cs.wpi.edu

default: cs4731

# the objects to be constructed by the makefile
OBJS = gears.o miniglut.o openGL.o bounce.o cs4731GL.o stars.o evil.o Image.o Vector.o Vertex.o sdl.o Matrix.o hill_house.o

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

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

CPP = g++

openGL.o: openGL.h minigl.h openGL.cpp
	$(CPP) $(INCLD) -c openGL.cpp

cs4731GL.o: cs4731GL.h minigl.h cs4731GL.cpp
	$(CPP) $(INCLD) -c cs4731GL.cpp

gears.o: minigl.h cs4731app.h miniglut.h gears.cpp
	$(CPP) $(INCLD) -c gears.cpp

evil.o: minigl.h cs4731app.h miniglut.h evil.cpp
	$(CPP) $(INCLD) -c evil.cpp

bounce.o: minigl.h cs4731app.h miniglut.h bounce.cpp
	$(CPP) $(INCLD) -c bounce.cpp

stars.o: stars.h cs4731app.h miniglut.h stars.cpp
	$(CPP) $(INCLD) -c stars.cpp

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

Vector.o: Vector.h Vector.cpp
	$(CPP) $(INCLD) -c Vector.cpp

Vertex.o: Vertex.h Vertex.cpp
	$(CPP) $(INCLD) -c Vertex.cpp

Matrix.o: Vertex.h Matrix.h Matrix.cpp
	$(CPP) $(INCLD) -c Matrix.cpp

sdl.o: sdl.h sdl.cpp
	$(CPP) $(INCLD) -c -Wno-deprecated  sdl.cpp

miniglut.o: miniglut.h minigl.h cs4731app.h miniglut.cpp
	$(CPP) $(INCLD) -c miniglut.cpp

hill_house.o: hill_house.h cs4731app.h miniglut.h hill_house.cpp
	$(CPP) $(INCLD) -c -Wno-deprecated hill_house.cpp

cs4731: $(OBJS) main.cpp
	$(CPP) $(INCLD) -o cs4731 -Wno-deprecated  main.cpp $(OBJS) $(LIBS)

clean:
	rm -f *.o cs4731




