-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (36 loc) · 708 Bytes
/
Makefile
File metadata and controls
50 lines (36 loc) · 708 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
NAME = a.out
SRCS = main.cpp
FLAGS = -std=c++98 -Wall -Wextra -Werror -fsanitize=address -g
COMP=clang++
ifeq ($(shell uname), Linux)
COMP = g++ -DLINUX
endif
all : $(NAME)
$(NAME) :
$(COMP) -o $(NAME) $(FLAGS) $(SRCS)
clean :
rm -f *.hpp.gch
rm -rf *.dSYM
fclean : clean
rm -f $(NAME)
rm -f *.out
re : fclean all
c : re
clear
./$(NAME)
vector: fclean
$(COMP) -o vector.out $(FLAGS) tests/vector_tests.cpp
clear
./vector.out
vector_tle: fclean
$(COMP) -o vector.out $(FLAGS) tests/vector_tle_tests.cpp
clear
./vector.out
stack: fclean
$(COMP) -o stack.out $(FLAGS) tests/stack_tests.cpp
clear
./stack.out
map:
$(COMP) -o map.out $(FLAGS) tests/Map_tests.cpp
clear
./map.out