Advertisement
Guest User

make

a guest
Jan 14th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.82 KB | None | 0 0
  1. #OBJS specifies which files to compile as part of the project
  2. OBJS = main.c
  3.  
  4. #CC specifies which compiler we're using
  5. CC = gcc
  6.  
  7. #INCLUDE_PATHS specifies the additional include paths we'll need
  8. INCLUDE_PATHS = -Iinclude
  9.  
  10. #LIBRARY_PATHS specifies the additional library paths we'll need
  11. LIBRARY_PATHS =-L./
  12.  
  13. #COMPILER_FLAGS specifies the additional compilation options we're using
  14. # -w suppresses all warnings
  15. # -Wl,-subsystem,windows gets rid of the console window
  16. COMPILER_FLAGS = -Wall
  17.  
  18. #LINKER_FLAGS specifies the libraries we're linking against
  19. LINKER_FLAGS = -lglew32 -lglfw3 -lopengl32
  20.  
  21. #OBJ_NAME specifies the name of our exectuable
  22. OBJ_NAME = opengl
  23.  
  24. #This is the target that compiles our executable
  25. all : $(OBJS)
  26.     $(CC) $(OBJS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement