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