]>
Commit | Line | Data |
---|---|---|
e86755d7 SW |
1 | CXX = g++ |
2 | CXXFLAGS = -std=gnu++11 -Wall -Wextra -pedantic -O2 | |
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 | ||
35 | sliding_tile.o: sliding_tile_lib.h | |
8ff0a7b8 SW |
36 | sliding_tile_lib_test.o: sliding_tile_lib.h /usr/include/gtest/gtest.h |
37 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-internal.h | |
38 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-port.h | |
39 | sliding_tile_lib_test.o: /usr/include/ctype.h /usr/include/features.h | |
40 | sliding_tile_lib_test.o: /usr/include/stdc-predef.h /usr/include/sys/cdefs.h | |
41 | sliding_tile_lib_test.o: /usr/include/bits/wordsize.h | |
42 | sliding_tile_lib_test.o: /usr/include/gnu/stubs.h /usr/include/gnu/stubs-32.h | |
43 | sliding_tile_lib_test.o: /usr/include/bits/types.h | |
44 | sliding_tile_lib_test.o: /usr/include/bits/typesizes.h /usr/include/endian.h | |
45 | sliding_tile_lib_test.o: /usr/include/bits/endian.h | |
46 | sliding_tile_lib_test.o: /usr/include/bits/byteswap.h | |
47 | sliding_tile_lib_test.o: /usr/include/bits/byteswap-16.h | |
48 | sliding_tile_lib_test.o: /usr/include/xlocale.h /usr/include/stdlib.h | |
49 | sliding_tile_lib_test.o: /usr/include/bits/waitflags.h | |
50 | sliding_tile_lib_test.o: /usr/include/bits/waitstatus.h | |
51 | sliding_tile_lib_test.o: /usr/include/sys/types.h /usr/include/time.h | |
52 | sliding_tile_lib_test.o: /usr/include/sys/select.h /usr/include/bits/select.h | |
53 | sliding_tile_lib_test.o: /usr/include/bits/sigset.h /usr/include/bits/time.h | |
54 | sliding_tile_lib_test.o: /usr/include/sys/sysmacros.h | |
55 | sliding_tile_lib_test.o: /usr/include/bits/pthreadtypes.h | |
56 | sliding_tile_lib_test.o: /usr/include/alloca.h | |
57 | sliding_tile_lib_test.o: /usr/include/bits/stdlib-float.h | |
58 | sliding_tile_lib_test.o: /usr/include/stdio.h /usr/include/libio.h | |
59 | sliding_tile_lib_test.o: /usr/include/_G_config.h /usr/include/wchar.h | |
60 | sliding_tile_lib_test.o: /usr/include/bits/stdio_lim.h | |
61 | sliding_tile_lib_test.o: /usr/include/bits/sys_errlist.h | |
62 | sliding_tile_lib_test.o: /usr/include/string.h /usr/include/sys/stat.h | |
63 | sliding_tile_lib_test.o: /usr/include/bits/stat.h /usr/include/unistd.h | |
64 | sliding_tile_lib_test.o: /usr/include/bits/posix_opt.h | |
65 | sliding_tile_lib_test.o: /usr/include/bits/environments.h | |
66 | sliding_tile_lib_test.o: /usr/include/bits/confname.h /usr/include/getopt.h | |
67 | sliding_tile_lib_test.o: /usr/include/strings.h /usr/include/regex.h | |
68 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-message.h | |
69 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-string.h | |
70 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-filepath.h | |
71 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-type-util.h | |
72 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-death-test.h | |
73 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-death-test-internal.h | |
74 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-param-test.h | |
75 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-param-util.h | |
76 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-linked_ptr.h | |
77 | sliding_tile_lib_test.o: /usr/include/assert.h | |
78 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-printers.h | |
79 | sliding_tile_lib_test.o: /usr/include/gtest/internal/gtest-param-util-generated.h | |
80 | sliding_tile_lib_test.o: /usr/include/gtest/gtest_prod.h | |
81 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-test-part.h | |
82 | sliding_tile_lib_test.o: /usr/include/gtest/gtest-typed-test.h | |
83 | sliding_tile_lib_test.o: /usr/include/gtest/gtest_pred_impl.h | |
84 | sliding_tile_lib_test.o: /usr/include/gmock/gmock.h | |
85 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-actions.h | |
86 | sliding_tile_lib_test.o: /usr/include/errno.h /usr/include/bits/errno.h | |
87 | sliding_tile_lib_test.o: /usr/include/linux/errno.h /usr/include/asm/errno.h | |
88 | sliding_tile_lib_test.o: /usr/include/asm-generic/errno.h | |
89 | sliding_tile_lib_test.o: /usr/include/asm-generic/errno-base.h | |
90 | sliding_tile_lib_test.o: /usr/include/gmock/internal/gmock-internal-utils.h | |
91 | sliding_tile_lib_test.o: /usr/include/gmock/internal/gmock-generated-internal-utils.h | |
92 | sliding_tile_lib_test.o: /usr/include/gmock/internal/gmock-port.h | |
93 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-cardinalities.h | |
94 | sliding_tile_lib_test.o: /usr/include/limits.h /usr/include/bits/posix1_lim.h | |
95 | sliding_tile_lib_test.o: /usr/include/bits/local_lim.h | |
96 | sliding_tile_lib_test.o: /usr/include/linux/limits.h | |
97 | sliding_tile_lib_test.o: /usr/include/bits/posix2_lim.h | |
98 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-actions.h | |
99 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-function-mockers.h | |
100 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-spec-builders.h | |
101 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-matchers.h | |
102 | sliding_tile_lib_test.o: /usr/include/math.h /usr/include/bits/huge_val.h | |
103 | sliding_tile_lib_test.o: /usr/include/bits/huge_valf.h | |
104 | sliding_tile_lib_test.o: /usr/include/bits/huge_vall.h | |
105 | sliding_tile_lib_test.o: /usr/include/bits/inf.h /usr/include/bits/nan.h | |
106 | sliding_tile_lib_test.o: /usr/include/bits/mathdef.h | |
107 | sliding_tile_lib_test.o: /usr/include/bits/mathcalls.h | |
108 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-nice-strict.h | |
109 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-generated-matchers.h | |
110 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-more-actions.h | |
111 | sliding_tile_lib_test.o: /usr/include/gmock/gmock-more-matchers.h |