Guest User

Untitled

a guest
Dec 14th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #Is it in debug mode?
  2. DEBUG=yes
  3.  
  4. SHELL='sh -x'
  5.  
  6. CC = G++
  7.  
  8. #OBJS specifies which files to compile as part of the project
  9. OBJS = src/main.cpp
  10.  
  11. #OBJ_NAME specifies the name of the executable
  12. OBJ_NAME = Game
  13.  
  14. INCLUDE_PATHS = -IC:/mingw_dev_lib/include/SDL2
  15.  
  16. LIBRARY_PATHS = -LC:/mingw_dev_lib/lib
  17.  
  18. COMPILER_FLAGS = -w -Wl,-subsystem,windows
  19.  
  20. LINKER_FLAGS = -lmingw32 -lSDL2main -lSDL2 -lSDL2_image
  21.  
  22. #This is the target that compiles the executable
  23. all : $(OBJS)
  24. ifeq ($(DEBUG),yes)
  25. g++ $(OBJS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) -g $(LINKER_FLAGS) -o Debug$(OBJ_NAME)
  26. else
  27. g++ $(OBJS) $(INCLUDE_PATHS) $(LIBRARY_PATHS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o Release$(OBJ_NAME)
  28. endif
Add Comment
Please, Sign In to add comment