summaryrefslogtreecommitdiffstats
path: root/tests/Makefile
blob: b4f75bebea2c1ef19ae3315b78d9bba9bb49c552 (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SRCS=test_main.cpp test_rand.cpp test_set.cpp test_map.cpp test_unordered_set.cpp test_str_set.cpp test_unordered_str_set.cpp test_unordered_map.cpp test_unordered_map_str.cpp test_str.cpp test_algorithms.cpp

TARGET=test_main
CXXFLAGS=-O3 -Wall -std=c++14 -march=native -Wextra -W -Werror -Wshadow -fPIC
CPPFLAGS=-I../include

all:$(TARGET)

$(TARGET):$(patsubst %.cpp, %.o , $(SRCS))
	$(CXX) $^ -o $@

clean:
	$(RM) *.o $(TARGET)

.PHONY:check

check:$(TARGET)
	./$(TARGET)

test_main.o: test_main.cpp catch.hpp
test_rand.o: test_rand.cpp \
	../include/frozen/random.h \
	../include/frozen/bits/algorithms.h \
	catch.hpp
test_algorithms.o: test_algorithms.cpp \
  ../include/frozen/bits/algorithms.h \
  catch.hpp
test_map.o: test_map.cpp ../include/frozen/map.h \
  ../include/frozen/bits/algorithms.h catch.hpp
test_set.o: test_set.cpp ../include/frozen/set.h \
  ../include/frozen/bits/algorithms.h catch.hpp
test_unordered_map.o: test_unordered_map.cpp \
  ../include/frozen/unordered_map.h ../include/frozen/bits/elsa.h \
  ../include/frozen/bits/pmh.h \
  ../include/frozen/bits/algorithms.h \
  ../include/frozen/bits/basic_types.h \
  catch.hpp
test_unordered_map_str.o: test_unordered_map_str.cpp \
  ../include/frozen/unordered_map.h ../include/frozen/bits/elsa.h \
  ../include/frozen/bits/pmh.h \
  ../include/frozen/bits/algorithms.h \
  ../include/frozen/bits/basic_types.h ../include/frozen/string.h \
  catch.hpp
test_unordered_set.o: test_unordered_set.cpp \
  ../include/frozen/unordered_set.h ../include/frozen/bits/pmh.h \
  ../include/frozen/bits/algorithms.h \
  ../include/frozen/bits/basic_types.h ../include/frozen/bits/elsa.h \
  catch.hpp
test_unordered_str_set.o: test_unordered_str_set.cpp \
  ../include/frozen/unordered_set.h ../include/frozen/bits/pmh.h \
  ../include/frozen/bits/algorithms.h \
  ../include/frozen/bits/basic_types.h ../include/frozen/bits/elsa.h \
  ../include/frozen/string.h \
  catch.hpp
test_str_set.o: test_str_set.cpp \
  ../include/frozen/set.h \
  ../include/frozen/bits/algorithms.h \
  ../include/frozen/bits/basic_types.h ../include/frozen/bits/elsa.h \
  ../include/frozen/string.h \
  catch.hpp
test_str.o: test_str.cpp \
  ../include/frozen/bits/basic_types.h ../include/frozen/bits/elsa.h \
  ../include/frozen/string.h ../include/frozen/algorithm.h \
  catch.hpp