Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################
- ## COMPILER ##
- CXX = g++
- ## FLAGS ##
- CXXFLAGS = -std=c++11 -I $(INCLDIR) -g
- ## INCLUDES DIRECTORY ##
- INCLDIR = src/includes/
- ## MAIN ##
- SRCS = $(addsuffix .cc, $(addprefix src/, main))
- ## OTHER CPP FILES ##
- SRCS += $(addsuffix .cc, $(addprefix src/, game-handler graph))
- ## OBJ CREATION ##
- OBJS = $(SRCS:.cc=.o)
- ## EXEC NAME ##
- EXEC = game
- ###############################################################################
- # Multi threaded make of the final binary #
- multi:
- $(MAKE) -j all
- # Produce the final binary #
- all: $(OBJS)
- $(CXX) $(OBJS) -o $(EXEC)
- # Produce test binary, and launch #
- check: simple medium complex
- ./$(EXEC) tests/transactions.txt
- simple: multi
- ./$(EXEC) tests/Transactions_Simples.txt
- medium: multi
- ./$(EXEC) tests/Transactions_Guerres.txt
- complex: multi
- ./$(EXEC) tests/Transactions_Complexes.txt
- # Clean repository #
- clean:
- $(RM) $(OBJS) $(EXEC)
- .PHONY: multi all check clean
- ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement