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