title: unrecognized command line option ‘-framework’
body: <p>I am trying to compile the minimalist C opengl code in <a href="https://github.com/fogleman/HelloGL" rel="nofollow noreferrer">https://github.com/fogleman/HelloGL</a> on my Ubuntu 18.04 system, but I get the following error:</p>
  <pre><code>gcc -c -o build/matrix.o -std=c99 -O3 src/matrix.c    
  gcc -o main build/shader.o build/main.o build/util.o build/matrix.o  -lglew -lglfw3 -framework Cocoa 
  -framework OpenGL -framework IOKit -framework CoreVideo -lm    
  gcc: error: Cocoa: No such file or directory    
  gcc: error: OpenGL: No such file or directory    
  gcc: error: IOKit: No such file or directory    
  gcc: error: CoreVideo: No such file or directory    
  gcc: error: unrecognized command line option ‘-framework’    
  gcc: error: unrecognized command line option ‘-framework’    
  gcc: error: unrecognized command line option ‘-framework’   
  gcc: error: unrecognized command line option ‘-framework’    
  Makefile:24: recipe for target 'main' failed
  </code></pre>
  <p>I do realize the reason for this is the following line in the MakeFIle, which is made for OSX (presumably):</p>
  <pre><code>LIBS = -lglew -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo
  </code></pre>
  <p>Is there a way of adapting this line to make it work on a <strong>GNU/Linux</strong> system?
  Or does it need to have to be linked to the Cocoa framework?</p>