Guest User

Untitled

a guest
Apr 5th, 2020
173
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. NAME = Rubik
  3. SRC = *.cpp
  4. OBJ = $(SRC:.cpp=.o)
  5. BREW_INC = -I ~/glfw/include
  6. GLFW_LINK = -L ~/glfw/lib -lglfw -lGL -lGLU -lglut -lGL
  7.  
  8.  
  9. RED = "\033[1;38;2;225;20;20m"
  10. ORANGE = "\033[1;38;2;255;120;10m"
  11. YELLO = "\033[1;38;2;255;200;0m"
  12. GREEN = "\033[1;38;2;0;170;101m"
  13. LG = "\033[1;38;2;167;244;66m"
  14. BLUE = "\033[1;38;2;50;150;250m"
  15. PURPLE = "\033[1;38;2;150;75;255m"
  16. WHITE = "\033[1;38;2;255;250;232m"
  17.  
  18. all: $(NAME)
  19.  
  20. $(NAME): $(SRC)
  21.     @echo $(YELLO)Making $(NAME)
  22.     @g++ -std=c++11 $(SRC) -o $(NAME) $(BREW_INC) $(GLFW_LINK) -pthread
  23.     @echo $(GREEN)Done!
  24.  
  25. clean:
  26.     @echo $(YELLO)Cleaning o files
  27.     @/bin/rm -f $(OBJ)
  28.  
  29. fclean: clean
  30.     @echo $(YELLO)Removing excutable
  31.     @rm -f $(NAME)
  32.  
  33. re: fclean all
RAW Paste Data