Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. ###############################################################################
  2.  
  3. ## COMPILER ##
  4. CXX = g++
  5.  
  6. ## FLAGS ##
  7. CXXFLAGS = -std=c++11 -I $(INCLDIR) -g
  8.  
  9. ## INCLUDES DIRECTORY ##
  10. INCLDIR = src/includes/
  11.  
  12. ## MAIN ##
  13. SRCS = $(addsuffix .cc, $(addprefix src/, main))
  14.  
  15. ## OTHER CPP FILES ##
  16. SRCS += $(addsuffix .cc, $(addprefix src/, game-handler graph))
  17.  
  18. ## OBJ CREATION ##
  19. OBJS = $(SRCS:.cc=.o)
  20.  
  21. ## EXEC NAME ##
  22. EXEC = game
  23.  
  24. ###############################################################################
  25.  
  26. # Multi threaded make of the final binary #
  27. multi:
  28. $(MAKE) -j all
  29.  
  30. # Produce the final binary #
  31. all: $(OBJS)
  32. $(CXX) $(OBJS) -o $(EXEC)
  33.  
  34. # Produce test binary, and launch #
  35. check: simple medium complex
  36. ./$(EXEC) tests/transactions.txt
  37.  
  38. simple: multi
  39. ./$(EXEC) tests/Transactions_Simples.txt
  40. medium: multi
  41. ./$(EXEC) tests/Transactions_Guerres.txt
  42. complex: multi
  43. ./$(EXEC) tests/Transactions_Complexes.txt
  44.  
  45. # Clean repository #
  46. clean:
  47. $(RM) $(OBJS) $(EXEC)
  48.  
  49. .PHONY: multi all check clean
  50.  
  51. ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement