title: How to build GLFW3 project on Linux?
body: <p>I've compiled glfw3 and the included examples using cmake and make without problems. Onto writing my first project. Being new to opengl and glfw, and unexperienced with C and CMake, i'm struggling to understand the example build files, or even which libraries to link and/or compiler parameters to use in my project.</p>
  
  <p>Let's say i have just one folder with one file, <code>boing.c</code> for now. How would i compile it?</p>
  
  <p>Simply running <code>gcc -lglfw3 -lm -lGL -lGLU boing.c</code> gives a wall of undefined references, starting with sin and atan2, followed by various gl and glfw stuff. What am i missing?</p>
  
  <p>How would i go about writing a makefile? Is there a cmake template or sample, that i just didn't understand how to use or adapt? Does anyone know about an open source project (or better, a small example or template) using glfw3 -- so i can look around?</p>
  
  <p>I'm guessing cmake would be best, when i want to go multi-platform at some point. But how do i just get the **** thing to compile without too much hassle, so i can get started on some tutorials..?</p>
  
  <p>I'm a moderate noob using 32bit Ubuntu raring. Just using Vim for now.</p>