Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #OBJS specifies which files to compile as part of the project
- OBJS = main.c
- #CC specifies which compiler we're using
- CC = gcc
- #INCLUDE_PATHS specifies the additional include paths we'll need
- INCLUDE_PATHS = -Iinclude
- #LIBRARY_PATHS specifies the additional library paths we'll need
- LIBRARY_PATHS =-L./
- #COMPILER_FLAGS specifies the additional compilation options we're using
- # -w suppresses all warnings
- # -Wl,-subsystem,windows gets rid of the console window
- COMPILER_FLAGS = -Wall
- #LINKER_FLAGS specifies the libraries we're linking against
- LINKER_FLAGS = -lglew32 -lglfw3 -lopengl32
- #OBJ_NAME specifies the name of our exectuable
- OBJ_NAME = opengl
- #This is the target that compiles our executable
- all : $(OBJS)
- $(CC) $(OBJS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement