-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (16 loc) · 712 Bytes
/
Makefile
File metadata and controls
25 lines (16 loc) · 712 Bytes
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
CPPFLAGS=-flto -fwhole-program -Ofast -march=native -std=c++17 -Wall -Wextra -Wshadow -Wstrict-aliasing -pedantic -Wc++17-compat -Wduplicated-branches -Wduplicated-cond -Wempty-body -Wtautological-compare -DNDEBUG
spellChecker: main.o hash.o FileReader.o App.o Autocorrect.o
g++ $(CPPFLAGS) -o spellChecker main.o hash.o FileReader.o App.o Autocorrect.o
main.o: main.cpp *.h *.hpp
g++ $(CPPFLAGS) -c main.cpp
hash.o: hash.cpp *.h *.hpp
g++ $(CPPFLAGS) -c hash.cpp
FileReader.o: FileReader.cpp *.h *.hpp
g++ $(CPPFLAGS) -c FileReader.cpp
App.o: App.cpp *.h *.hpp
g++ $(CPPFLAGS) -c App.cpp
Autocorrect.o: Autocorrect.cpp *.h *.hpp
g++ $(CPPFLAGS) -c Autocorrect.cpp
clean:
rm spellChecker
rm *.o