# makefile for simpflex14 for OS X
# valid as of OSX 26.1.2

# specify the name of the program
TARGET = simpflexcube

# specify the compiler to use
CC = g++ 
DEBUG = 
#DEBUG = -g -DDEBUG_LAYOUT

# specify compiler flags
CFLAGS = ${DEBUG} -DGL_SILENCE_DEPRECATION
DIR_INCLUDES = -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers \
			-I/System/Library/Frameworks/GLUT.framework/Versions/A/Headers \
			-I./ArcBall -I./GLUT_toolkit -I./HeightField -I./Interface -I/Users/scshca/include
LIBS = -framework GLUT -framework OpenGL -lobjc

# specify the object files that go to make up the program
OBJS = ${CPP_SRC:.cpp=.o}

CPP_SRC = main.cpp \
		Interface/IsosurfaceWindow.cpp \
		Interface/IsosurfacePane.cpp \
		Interface/ContourTreePane.cpp \
		Interface/LogCollapsePane.cpp \
		Interface/ColourSelectionPane.cpp \
		GLUT_toolkit/GLUTWindow.cpp \
		GLUT_toolkit/GLUTHorizPane.cpp \
		GLUT_toolkit/GLUTVertPane.cpp \
		GLUT_toolkit/GLUTCheckBox.cpp \
		GLUT_toolkit/GLUTStaticText.cpp \
		GLUT_toolkit/GLUTCheckableBox.cpp \
		GLUT_toolkit/GLUTPane.cpp \
		GLUT_toolkit/GLUTString.cpp \
		GLUT_toolkit/GLUTRadioButton.cpp \
		GLUT_toolkit/GLUTRadioGroup.cpp \
		GLUT_toolkit/GLUTLabelledRadioButton.cpp \
		GLUT_toolkit/GLUTArcBall.cpp \
		GLUT_toolkit/GLUTHorizSlider.cpp \
		GLUT_toolkit/GLUTTextButton.cpp \
		GLUT_toolkit/GLUTVertSlider.cpp \
		GLUT_toolkit/sphere.cpp \
		GLUT_toolkit/writetofile.cpp \
		HeightField/HeightField_Collapse.cpp \
		HeightField/HeightField_Construction.cpp \
		HeightField/HeightField_Contour_Follow.cpp \
		HeightField/HeightField_Debug.cpp \
		HeightField/HeightField_Draw_Trees.cpp \
		HeightField/HeightField_Flexible.cpp \
		HeightField/HeightField_Layout.cpp \
		HeightField/HeightField_Marching_Cubes.cpp \
		HeightField/HeightField_Utilities.cpp \
		HeightField/FollowCubeTables.cpp \
		HeightField/Superarc.cpp \
		HeightField/Supernode.cpp \
		ArcBall/Ball.cpp \
		ArcBall/BallMath.cpp \
		ArcBall/BallAux.cpp 

main:	${OBJS} 
	$(CC) -o ${TARGET} ${CFLAGS} ${DIR_INCLUDES} ${OBJS} ${LIB_INCLUDES} ${LIBS}

clean:	
	- rm core ${OBJS} ${TARGET}

depend:
	makedepend -m -fmakefile ${C_SRC} ${CPP_SRC} ${DIR_INCLUDES}

#SUFFIX RULES:  any file with one of these suffixes is significant
.SUFFIXES: .o .cpp .c

# SUFFIX RULE 1:  how to turn a .cpp file into a .o file
.cpp.o:
	$(CC) -c $(CFLAGS) ${DIR_INCLUDES} $*.cpp -o $*.o

# DO NOT DELETE

main.o: ./GLUT_toolkit/GLUTWindow.h ./GLUT_toolkit/GLUTHorizPane.h
main.o: ./GLUT_toolkit/GLUTPane.h ./Interface/IsosurfaceWindow.h
main.o: ./Interface/IsosurfacePane.h ./HeightField/HeightField.h
main.o: ./HeightField/Component.h ./HeightField/Superarc.h
main.o: ./HeightField/Supernode.h ./HeightField/Array3D.h
main.o: ./GLUT_toolkit/GLUTArcBall.h ./ArcBall/Ball.h ./ArcBall/BallAux.h
main.o: ./GLUT_toolkit/GLUTToolbox.h ./GLUT_toolkit/GLUTCheckBox.h
main.o: ./GLUT_toolkit/GLUTCheckableBox.h ./GLUT_toolkit/GLUTStaticText.h
main.o: ./GLUT_toolkit/GLUTHorizSlider.h
main.o: ./GLUT_toolkit/GLUTLabelledRadioButton.h
main.o: ./GLUT_toolkit/GLUTRadioButton.h ./GLUT_toolkit/GLUTRadioGroup.h
main.o: ./GLUT_toolkit/GLUTVertPane.h ./GLUT_toolkit/GLUTString.h
main.o: ./GLUT_toolkit/GLUTTextButton.h ./GLUT_toolkit/GLUTVertSlider.h
main.o: ./Interface/ContourTreePane.h ./Interface/LogCollapsePane.h
main.o: ./Interface/ColourSelectionPane.h
Interface/IsosurfaceWindow.o: ./Interface/IsosurfaceWindow.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTWindow.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTHorizPane.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTPane.h
Interface/IsosurfaceWindow.o: ./Interface/IsosurfacePane.h
Interface/IsosurfaceWindow.o: ./HeightField/HeightField.h
Interface/IsosurfaceWindow.o: ./HeightField/Component.h
Interface/IsosurfaceWindow.o: ./HeightField/Superarc.h
Interface/IsosurfaceWindow.o: ./HeightField/Supernode.h
Interface/IsosurfaceWindow.o: ./HeightField/Array3D.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTArcBall.h ./ArcBall/Ball.h
Interface/IsosurfaceWindow.o: ./ArcBall/BallAux.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTToolbox.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTCheckBox.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTCheckableBox.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTStaticText.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTHorizSlider.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTLabelledRadioButton.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTRadioButton.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTRadioGroup.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTVertPane.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTString.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTTextButton.h
Interface/IsosurfaceWindow.o: ./GLUT_toolkit/GLUTVertSlider.h
Interface/IsosurfaceWindow.o: ./Interface/ContourTreePane.h
Interface/IsosurfaceWindow.o: ./Interface/LogCollapsePane.h
Interface/IsosurfaceWindow.o: ./Interface/ColourSelectionPane.h
Interface/IsosurfacePane.o: ./Interface/IsosurfacePane.h
Interface/IsosurfacePane.o: ./GLUT_toolkit/GLUTWindow.h
Interface/IsosurfacePane.o: ./GLUT_toolkit/GLUTHorizPane.h
Interface/IsosurfacePane.o: ./GLUT_toolkit/GLUTPane.h
Interface/IsosurfacePane.o: ./HeightField/HeightField.h
Interface/IsosurfacePane.o: ./HeightField/Component.h
Interface/IsosurfacePane.o: ./HeightField/Superarc.h
Interface/IsosurfacePane.o: ./HeightField/Supernode.h ./HeightField/Array3D.h
Interface/IsosurfacePane.o: ./GLUT_toolkit/GLUTArcBall.h ./ArcBall/Ball.h
Interface/IsosurfacePane.o: ./ArcBall/BallAux.h ./GLUT_toolkit/sphere.h
Interface/IsosurfacePane.o: ./GLUT_toolkit/writetofile.h
Interface/ContourTreePane.o: ./Interface/ContourTreePane.h
Interface/ContourTreePane.o: ./GLUT_toolkit/GLUTPane.h
Interface/ContourTreePane.o: ./HeightField/HeightField.h
Interface/ContourTreePane.o: ./HeightField/Component.h
Interface/ContourTreePane.o: ./HeightField/Superarc.h
Interface/ContourTreePane.o: ./HeightField/Supernode.h
Interface/ContourTreePane.o: ./HeightField/Array3D.h
Interface/ContourTreePane.o: ./Interface/IsosurfacePane.h
Interface/ContourTreePane.o: ./GLUT_toolkit/GLUTWindow.h
Interface/ContourTreePane.o: ./GLUT_toolkit/GLUTHorizPane.h
Interface/ContourTreePane.o: ./GLUT_toolkit/GLUTArcBall.h ./ArcBall/Ball.h
Interface/ContourTreePane.o: ./ArcBall/BallAux.h
Interface/LogCollapsePane.o: ./Interface/LogCollapsePane.h
Interface/LogCollapsePane.o: ./GLUT_toolkit/GLUTPane.h
Interface/LogCollapsePane.o: ./HeightField/HeightField.h
Interface/LogCollapsePane.o: ./HeightField/Component.h
Interface/LogCollapsePane.o: ./HeightField/Superarc.h
Interface/LogCollapsePane.o: ./HeightField/Supernode.h
Interface/LogCollapsePane.o: ./HeightField/Array3D.h
Interface/ColourSelectionPane.o: ./Interface/ColourSelectionPane.h
Interface/ColourSelectionPane.o: ./GLUT_toolkit/GLUTPane.h
Interface/ColourSelectionPane.o: ./HeightField/HeightField.h
Interface/ColourSelectionPane.o: ./HeightField/Component.h
Interface/ColourSelectionPane.o: ./HeightField/Superarc.h
Interface/ColourSelectionPane.o: ./HeightField/Supernode.h
Interface/ColourSelectionPane.o: ./HeightField/Array3D.h
GLUT_toolkit/GLUTWindow.o: ./GLUT_toolkit/GLUTWindow.h
GLUT_toolkit/GLUTWindow.o: ./GLUT_toolkit/GLUTHorizPane.h
GLUT_toolkit/GLUTWindow.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTWindow.o: ./GLUT_toolkit/writetofile.h
GLUT_toolkit/GLUTHorizPane.o: ./GLUT_toolkit/GLUTHorizPane.h
GLUT_toolkit/GLUTHorizPane.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTVertPane.o: ./GLUT_toolkit/GLUTVertPane.h
GLUT_toolkit/GLUTVertPane.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTCheckBox.o: ./GLUT_toolkit/GLUTCheckBox.h
GLUT_toolkit/GLUTCheckBox.o: ./GLUT_toolkit/GLUTHorizPane.h
GLUT_toolkit/GLUTCheckBox.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTCheckBox.o: ./GLUT_toolkit/GLUTCheckableBox.h
GLUT_toolkit/GLUTCheckBox.o: ./GLUT_toolkit/GLUTStaticText.h
GLUT_toolkit/GLUTCheckBox.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTStaticText.o: ./GLUT_toolkit/GLUTStaticText.h
GLUT_toolkit/GLUTStaticText.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTStaticText.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTCheckableBox.o: ./GLUT_toolkit/GLUTCheckableBox.h
GLUT_toolkit/GLUTCheckableBox.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTPane.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTString.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTRadioButton.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTRadioGroup.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTVertPane.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTLabelledRadioButton.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTHorizPane.h
GLUT_toolkit/GLUTRadioButton.o: ./GLUT_toolkit/GLUTStaticText.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTRadioGroup.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTVertPane.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTLabelledRadioButton.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTHorizPane.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTRadioButton.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTStaticText.h
GLUT_toolkit/GLUTRadioGroup.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTLabelledRadioButton.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTHorizPane.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTRadioButton.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTRadioGroup.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTVertPane.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTStaticText.h
GLUT_toolkit/GLUTLabelledRadioButton.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTArcBall.o: ./GLUT_toolkit/GLUTArcBall.h
GLUT_toolkit/GLUTArcBall.o: ./GLUT_toolkit/GLUTPane.h ./ArcBall/Ball.h
GLUT_toolkit/GLUTArcBall.o: ./ArcBall/BallAux.h ./GLUT_toolkit/sphere.h
GLUT_toolkit/GLUTHorizSlider.o: ./GLUT_toolkit/GLUTHorizSlider.h
GLUT_toolkit/GLUTHorizSlider.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTHorizSlider.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTTextButton.o: ./GLUT_toolkit/GLUTTextButton.h
GLUT_toolkit/GLUTTextButton.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTTextButton.o: ./GLUT_toolkit/GLUTString.h
GLUT_toolkit/GLUTVertSlider.o: ./GLUT_toolkit/GLUTVertSlider.h
GLUT_toolkit/GLUTVertSlider.o: ./GLUT_toolkit/GLUTPane.h
GLUT_toolkit/GLUTVertSlider.o: ./GLUT_toolkit/GLUTString.h
HeightField/HeightField_Collapse.o: ./HeightField/HeightField.h
HeightField/HeightField_Collapse.o: ./HeightField/Component.h
HeightField/HeightField_Collapse.o: ./HeightField/Superarc.h
HeightField/HeightField_Collapse.o: ./HeightField/Supernode.h
HeightField/HeightField_Collapse.o: ./HeightField/Array3D.h
HeightField/HeightField_Collapse.o: HeightField/PriorityIndex.h
HeightField/HeightField_Construction.o: ./HeightField/HeightField.h
HeightField/HeightField_Construction.o: ./HeightField/Component.h
HeightField/HeightField_Construction.o: ./HeightField/Superarc.h
HeightField/HeightField_Construction.o: ./HeightField/Supernode.h
HeightField/HeightField_Construction.o: ./HeightField/Array3D.h
HeightField/HeightField_Contour_Follow.o: ./HeightField/HeightField.h
HeightField/HeightField_Contour_Follow.o: ./HeightField/Component.h
HeightField/HeightField_Contour_Follow.o: ./HeightField/Superarc.h
HeightField/HeightField_Contour_Follow.o: ./HeightField/Supernode.h
HeightField/HeightField_Contour_Follow.o: ./HeightField/Array3D.h
HeightField/HeightField_Contour_Follow.o: HeightField/FollowCubeTables.h
HeightField/HeightField_Debug.o: ./HeightField/HeightField.h
HeightField/HeightField_Debug.o: ./HeightField/Component.h
HeightField/HeightField_Debug.o: ./HeightField/Superarc.h
HeightField/HeightField_Debug.o: ./HeightField/Supernode.h
HeightField/HeightField_Debug.o: ./HeightField/Array3D.h
HeightField/HeightField_Draw_Trees.o: ./HeightField/HeightField.h
HeightField/HeightField_Draw_Trees.o: ./HeightField/Component.h
HeightField/HeightField_Draw_Trees.o: ./HeightField/Superarc.h
HeightField/HeightField_Draw_Trees.o: ./HeightField/Supernode.h
HeightField/HeightField_Draw_Trees.o: ./HeightField/Array3D.h
HeightField/HeightField_Flexible.o: ./HeightField/HeightField.h
HeightField/HeightField_Flexible.o: ./HeightField/Component.h
HeightField/HeightField_Flexible.o: ./HeightField/Superarc.h
HeightField/HeightField_Flexible.o: ./HeightField/Supernode.h
HeightField/HeightField_Flexible.o: ./HeightField/Array3D.h
HeightField/HeightField_Layout.o: ./HeightField/HeightField.h
HeightField/HeightField_Layout.o: ./HeightField/Component.h
HeightField/HeightField_Layout.o: ./HeightField/Superarc.h
HeightField/HeightField_Layout.o: ./HeightField/Supernode.h
HeightField/HeightField_Layout.o: ./HeightField/Array3D.h
HeightField/HeightField_Marching_Cubes.o: ./HeightField/HeightField.h
HeightField/HeightField_Marching_Cubes.o: ./HeightField/Component.h
HeightField/HeightField_Marching_Cubes.o: ./HeightField/Superarc.h
HeightField/HeightField_Marching_Cubes.o: ./HeightField/Supernode.h
HeightField/HeightField_Marching_Cubes.o: ./HeightField/Array3D.h
HeightField/HeightField_Marching_Cubes.o: HeightField/FollowCubeTables.h
HeightField/HeightField_Utilities.o: ./HeightField/HeightField.h
HeightField/HeightField_Utilities.o: ./HeightField/Component.h
HeightField/HeightField_Utilities.o: ./HeightField/Superarc.h
HeightField/HeightField_Utilities.o: ./HeightField/Supernode.h
HeightField/HeightField_Utilities.o: ./HeightField/Array3D.h
HeightField/FollowCubeTables.o: HeightField/FollowCubeTables.h
ArcBall/Ball.o: ./ArcBall/Ball.h ./ArcBall/BallAux.h ArcBall/BallMath.h
ArcBall/BallMath.o: ArcBall/BallMath.h ./ArcBall/BallAux.h
ArcBall/BallAux.o: ./ArcBall/BallAux.h
