]>
Commit | Line | Data |
---|---|---|
e86755d7 | 1 | CXX = g++ |
d50a7626 | 2 | CXXFLAGS = -std=gnu++11 -Wall -Wextra -pedantic -Werror -O2 -Wstrict-overflow=2 |
e86755d7 SW |
3 | LFLAGS = |
4 | ||
5 | SRCS = sliding_tile.cc sliding_tile_lib.cc | |
6 | MAIN = sliding_tile | |
0baac4a7 | 7 | LIBS = -lgflags |
e86755d7 SW |
8 | TESTLIBS = -lgtest_main -lgtest -lgmock |
9 | ||
10 | OBJS = $(SRCS:.cc=.o) | |
11 | TEST_SRCS=$(wildcard *_test.cc) | |
12 | TESTS=$(subst .cc,,$(TEST_SRCS)) | |
13 | ||
14 | .PHONY: depend clean test | |
e86755d7 SW |
15 | |
16 | all: $(MAIN) $(TESTS) | |
17 | ||
18 | test: $(TESTS) | |
d4aebc72 | 19 | for t in $(TESTS); do if ./$$t; then :; else exit $$?; fi ;done |
e86755d7 SW |
20 | |
21 | clean: | |
b778703f | 22 | rm -f *.o $(MAIN) $(TESTS) Makefile.bak |
e86755d7 SW |
23 | |
24 | $(MAIN): $(OBJS) | |
25 | $(CXX) $(CXXFLAGS) -o $@ $^ $(LFLAGS) $(LIBS) | |
26 | ||
27 | %_test: %_test.o %.o | |
28 | $(CXX) $(CXXFLAGS) -o $@ $^ $(LFLAGS) $(LIBS) $(TESTLIBS) | |
29 | ||
8ff0a7b8 | 30 | depend: $(SRCS) $(TEST_SRCS) |
e86755d7 SW |
31 | makedepend $^ |
32 | ||
33 | # DO NOT DELETE THIS LINE -- make depend depends on it. | |
34 | ||
8e682800 SW |
35 | sliding_tile.o: sliding_tile_lib.h /usr/include/gflags/gflags.h |
36 | sliding_tile.o: /usr/include/gflags/gflags_declare.h /usr/include/stdint.h | |
37 | sliding_tile.o: /usr/include/features.h /usr/include/stdc-predef.h | |
38 | sliding_tile.o: /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h | |
d85437b1 | 39 | sliding_tile.o: /usr/include/gnu/stubs.h /usr/include/bits/wchar.h |
8e682800 | 40 | sliding_tile_lib.o: sliding_tile_lib.h |
8ff0a7b8 SW |
41 | sliding_tile_lib_test.o: sliding_tile_lib.h /usr/include/gtest/gtest.h |
42 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-internal.h | |
43 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-port.h | |
44 | sliding_tile_lib_test.o: /usr/include/ctype.h /usr/include/features.h | |
45 | sliding_tile_lib_test.o: /usr/include/stdc-predef.h /usr/include/sys/cdefs.h | |
46 | sliding_tile_lib_test.o: /usr/include/bits/wordsize.h | |
d85437b1 | 47 | sliding_tile_lib_test.o: /usr/include/gnu/stubs.h /usr/include/bits/types.h |
8ff0a7b8 SW |
48 | sliding_tile_lib_test.o: /usr/include/bits/typesizes.h /usr/include/endian.h |
49 | sliding_tile_lib_test.o: /usr/include/bits/endian.h | |
50 | sliding_tile_lib_test.o: /usr/include/bits/byteswap.h | |
51 | sliding_tile_lib_test.o: /usr/include/bits/byteswap-16.h | |
52 | sliding_tile_lib_test.o: /usr/include/xlocale.h /usr/include/stdlib.h | |
53 | sliding_tile_lib_test.o: /usr/include/bits/waitflags.h | |
54 | sliding_tile_lib_test.o: /usr/include/bits/waitstatus.h | |
55 | sliding_tile_lib_test.o: /usr/include/sys/types.h /usr/include/time.h | |
56 | sliding_tile_lib_test.o: /usr/include/sys/select.h /usr/include/bits/select.h | |
57 | sliding_tile_lib_test.o: /usr/include/bits/sigset.h /usr/include/bits/time.h | |
58 | sliding_tile_lib_test.o: /usr/include/sys/sysmacros.h | |
59 | sliding_tile_lib_test.o: /usr/include/bits/pthreadtypes.h | |
60 | sliding_tile_lib_test.o: /usr/include/alloca.h | |
61 | sliding_tile_lib_test.o: /usr/include/bits/stdlib-float.h | |
62 | sliding_tile_lib_test.o: /usr/include/stdio.h /usr/include/libio.h | |
63 | sliding_tile_lib_test.o: /usr/include/_G_config.h /usr/include/wchar.h | |
64 | sliding_tile_lib_test.o: /usr/include/bits/stdio_lim.h | |
65 | sliding_tile_lib_test.o: /usr/include/bits/sys_errlist.h | |
66 | sliding_tile_lib_test.o: /usr/include/string.h /usr/include/sys/stat.h | |
67 | sliding_tile_lib_test.o: /usr/include/bits/stat.h /usr/include/unistd.h | |
68 | sliding_tile_lib_test.o: /usr/include/bits/posix_opt.h | |
69 | sliding_tile_lib_test.o: /usr/include/bits/environments.h | |
70 | sliding_tile_lib_test.o: /usr/include/bits/confname.h /usr/include/getopt.h | |
71 | sliding_tile_lib_test.o: /usr/include/strings.h /usr/include/regex.h | |
72 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-message.h | |
73 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-string.h | |
74 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-filepath.h | |
75 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-type-util.h | |
76 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-death-test.h | |
77 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-death-test-internal.h | |
78 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-param-test.h | |
79 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-param-util.h | |
80 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-linked_ptr.h | |
81 | sliding_tile_lib_test.o: /usr/include/assert.h | |
82 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-printers.h | |
83 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-param-util-generated.h | |
84 | sliding_tile_lib_test.o: /usr/include/gtest/gtest_prod.h | |
85 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-test-part.h | |
86 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-typed-test.h | |
87 | sliding_tile_lib_test.o: /usr/include/gtest/gtest_pred_impl.h | |
88 | sliding_tile_lib_test.o: /usr/include/gmock/gmock.h | |
89 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-actions.h | |
90 | sliding_tile_lib_test.o: /usr/include/errno.h /usr/include/bits/errno.h | |
91 | sliding_tile_lib_test.o: /usr/include/linux/errno.h /usr/include/asm/errno.h | |
92 | sliding_tile_lib_test.o: /usr/include/asm-generic/errno.h | |
93 | sliding_tile_lib_test.o: /usr/include/asm-generic/errno-base.h | |
94 | sliding_tile_lib_test.o: /usr/include/gmock/internal/gmock-internal-utils.h | |
95 | sliding_tile_lib_test.o: /usr/include/gmock/internal/gmock-generated-internal-utils.h | |
96 | sliding_tile_lib_test.o: /usr/include/gmock/internal/gmock-port.h | |
97 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-cardinalities.h | |
98 | sliding_tile_lib_test.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h | |
99 | sliding_tile_lib_test.o: /usr/include/bits/local_lim.h | |
100 | sliding_tile_lib_test.o: /usr/include/linux/limits.h | |
101 | sliding_tile_lib_test.o: /usr/include/bits/posix2_lim.h | |
102 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-actions.h | |
103 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-function-mockers.h | |
104 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-spec-builders.h | |
105 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-matchers.h | |
106 | sliding_tile_lib_test.o: /usr/include/math.h /usr/include/bits/huge_val.h | |
107 | sliding_tile_lib_test.o: /usr/include/bits/huge_valf.h | |
108 | sliding_tile_lib_test.o: /usr/include/bits/huge_vall.h | |
109 | sliding_tile_lib_test.o: /usr/include/bits/inf.h /usr/include/bits/nan.h | |
110 | sliding_tile_lib_test.o: /usr/include/bits/mathdef.h | |
111 | sliding_tile_lib_test.o: /usr/include/bits/mathcalls.h | |
112 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-nice-strict.h | |
113 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-matchers.h | |
114 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-more-actions.h | |
115 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-more-matchers.h |