-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (25 loc) · 1017 Bytes
/
makefile
File metadata and controls
31 lines (25 loc) · 1017 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
26
27
28
29
30
31
# Set the C++ compiler options:
# -std=c++17 compiles using the C++17 standard (or at least as
# much as is implemented by the compiler, e.g. for g++ see
# http://gcc.gnu.org/projects/cxx0x.html)
# -Wall turns on all warnings
# -Wextra turns on even more warnings
# -Werror causes warnings to be errors
# -Wfatal-errors stops the compiler after the first error
# -Wno-sign-compare turns off warnings for comparing signed and
# unsigned numbers
# -Wnon-virtual-dtor warns about non-virtual destructors
# -g puts debugging info into the executables (makes them larger)
CPPFLAGS = -std=c++17 -Wall -Wextra -Werror -Wfatal-errors -Wno-sign-compare -Wnon-virtual-dtor -g
main_test: series.o database.o menu.o main.o
g++ -o main_test series.o database.o menu.o main.o -lncurses
database:
g++ -c $(CPPFLAGS) database.cpp
series:
g++ -c $(CPPFLAGS) series.cpp
menu:
g++ -c $(CPPFLAGS) menu.cpp
main:
g++ -c $(CPPFLAGS) main.cpp
clean:
rm -f main_test series.o database.o menu.o main.o