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