-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (27 loc) · 1.11 KB
/
makefile
File metadata and controls
34 lines (27 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# All Targets
all: fs
# Tool invocations
fs: bin/Main.o bin/Files.o bin/FileSystem.o bin/Commands.o bin/Environment.o
@echo 'Building target: fs'
@echo 'Invoking: C++ Linker'
g++ -o bin/fs bin/Main.o bin/Files.o bin/FileSystem.o bin/Commands.o bin/Environment.o
@echo 'Finished building target: fs'
@echo ' '
# Depends on the source and header files
bin/Main.o: src/Main.cpp
g++ -g -Wall -Weffc++ -std=c++11 -c -Iinclude -o bin/Main.o src/Main.cpp
# Depends on the source and header files
bin/Files.o: src/Files.cpp
g++ -g -Wall -Weffc++ -std=c++11 -c -Iinclude -o bin/Files.o src/Files.cpp
# Depends on the source and header files
bin/FileSystem.o: src/FileSystem.cpp
g++ -g -Wall -Weffc++ -std=c++11 -c -Iinclude -o bin/FileSystem.o src/FileSystem.cpp
# Depends on the source and header files
bin/Commands.o: src/Commands.cpp
g++ -g -Wall -Weffc++ -std=c++11 -c -Iinclude -o bin/Commands.o src/Commands.cpp
# Depends on the source and header files
bin/Environment.o: src/Environment.cpp
g++ -g -Wall -Weffc++ -std=c++11 -c -Iinclude -o bin/Environment.o src/Environment.cpp
#Clean the build directory
clean:
rm -f bin/*