Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Is it in debug mode?
- DEBUG=yes
- SHELL='sh -x'
- CC = G++
- #OBJS specifies which files to compile as part of the project
- OBJS = src/main.cpp
- #OBJ_NAME specifies the name of the executable
- OBJ_NAME = Game
- INCLUDE_PATHS = -IC:/mingw_dev_lib/include/SDL2
- LIBRARY_PATHS = -LC:/mingw_dev_lib/lib
- COMPILER_FLAGS = -w -Wl,-subsystem,windows
- LINKER_FLAGS = -lmingw32 -lSDL2main -lSDL2 -lSDL2_image
- #This is the target that compiles the executable
- all : $(OBJS)
- ifeq ($(DEBUG),yes)
- g++ $(OBJS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) -g $(LINKER_FLAGS) -o Debug$(OBJ_NAME)
- else
- g++ $(OBJS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o Release$(OBJ_NAME)
- endif
Add Comment
Please, Sign In to add comment