AllenYuan

makefile

Apr 21st, 2020
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # command: g++ - use the g++ compiler
  4. # options:
  5. #   -Wall : enables extra warning flags
  6. #   -std=c++11 : compile c++11 code
  7. #   -O0 : optimization level 0 (don't optimize the code)
  8. #   -g : generate debug information
  9. #   -o main : write the compiler output to a file called 'main'
  10. #   -lglfw -lglew : use the glfw and glew libraries
  11. #   -framework OpenGL : use the OpenGL framework
  12. # argument:
  13. #   main.cpp : the target file to compile
  14.  
  15. g++ -Wall -std=c++11 -O0 -g -o main -lglfw -lglew -framework OpenGL main.cpp
Advertisement
Add Comment
Please, Sign In to add comment