forked from Moatasem-Elsayed/cpp-manage-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
15 lines (14 loc) · 735 Bytes
/
Makefile
File metadata and controls
15 lines (14 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CXX = g++
BUILD_DIRECTORY=build/
$(BUILD_DIRECTORY)pusher_git: $(BUILD_DIRECTORY)main.o $(BUILD_DIRECTORY)gitmanager.o $(BUILD_DIRECTORY)decorator.o
@$(CXX) $(BUILD_DIRECTORY)main.o $(BUILD_DIRECTORY)gitmanager.o $(BUILD_DIRECTORY)decorator.o -o $(BUILD_DIRECTORY)pusher_git
$(BUILD_DIRECTORY)main.o: main.cpp $(BUILD_DIRECTORY)
@$(CXX) --std=c++17 -c main.cpp -o $(BUILD_DIRECTORY)main.o
$(BUILD_DIRECTORY)gitmanager.o: gitmanager.cpp $(BUILD_DIRECTORY)
@$(CXX) --std=c++17 -c gitmanager.cpp -o $(BUILD_DIRECTORY)gitmanager.o
$(BUILD_DIRECTORY)decorator.o: decorator.cpp $(BUILD_DIRECTORY)
@$(CXX) --std=c++17 -c decorator.cpp -o $(BUILD_DIRECTORY)decorator.o
$(BUILD_DIRECTORY):
@mkdir build
clean:
@rm -rf $(BUILD_DIRECTORY)