To compile the two programs, run the following commands in the root directory of the project:
g++ -Wall -o bezier Bezier.cpp -lm -lGL -lGLU -lglut -lGLEW
g++ -Wall -o terrain Terrain.cpp -lm -lGL -lGLU -lglut -lGLEW
Then to run the executables, run the following commands:
./bezier
./terrain