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