OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 SOURCES_COMMON = xlib_window.cc utils.cc | 5 SOURCES_COMMON = xlib_window.cc utils.cc |
6 SOURCES_GL_BENCH = main.cc swaptest.cc yuvtest.cc testbase.cc | 6 SOURCES_GL_BENCH = main.cc swaptest.cc yuvtest.cc testbase.cc |
7 SOURCES_GL_BENCH += readpixeltest.cc | 7 SOURCES_GL_BENCH += readpixeltest.cc |
8 SOURCES_GL_BENCH += attributefetchtest.cc varyingsandddxytest.cc cleartest.cc | 8 SOURCES_GL_BENCH += attributefetchtest.cc varyingsandddxytest.cc cleartest.cc |
9 SOURCES_GL_BENCH += textureupdatetest.cc | 9 SOURCES_GL_BENCH += textureupdatetest.cc trianglesetuptest.cc |
10 | 10 |
11 GRAPHICS_BACKEND ?= OPENGL | 11 GRAPHICS_BACKEND ?= OPENGL |
12 | 12 |
13 # TODO: port these to GLES | 13 # TODO: port these to GLES |
14 ifeq ($(GRAPHICS_BACKEND),OPENGL) | 14 ifeq ($(GRAPHICS_BACKEND),OPENGL) |
15 SOURCES_GL_BENCH += fillratetest.cc trianglesetuptest.cc | 15 SOURCES_GL_BENCH += fillratetest.cc |
16 SOURCES_GL_BENCH += windowmanagercompositingtest.cc | 16 SOURCES_GL_BENCH += windowmanagercompositingtest.cc |
17 endif | 17 endif |
18 SOURCES_TEARTEST = teartest.cc | 18 SOURCES_TEARTEST = teartest.cc |
19 SOURCES_WINDOWMANAGERTEST = windowmanagertest.cc | 19 SOURCES_WINDOWMANAGERTEST = windowmanagertest.cc |
20 SOURCES_ALL = $(SOURCES_COMMON) \ | 20 SOURCES_ALL = $(SOURCES_COMMON) \ |
21 $(SOURCES_GL_BENCH) \ | 21 $(SOURCES_GL_BENCH) \ |
22 $(SOURCES_TEARTEST) \ | 22 $(SOURCES_TEARTEST) \ |
23 $(SOURCES_WINDOWMANAGERTEST) | 23 $(SOURCES_WINDOWMANAGERTEST) |
24 | 24 |
25 CXXFLAGS = -g -Wall -Werror | 25 CXXFLAGS = -g -Wall -Werror |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 $(RM) $(OBJS_ALL) $(DEPS_ALL) | 68 $(RM) $(OBJS_ALL) $(DEPS_ALL) |
69 $(RM) *.o *.d | 69 $(RM) *.o *.d |
70 | 70 |
71 $(GL_BENCH) $(TEARTEST) $(WINDOWMANAGERTEST): | 71 $(GL_BENCH) $(TEARTEST) $(WINDOWMANAGERTEST): |
72 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) | 72 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) |
73 | 73 |
74 $(OBJS_ALL): %.o: %.cc | 74 $(OBJS_ALL): %.o: %.cc |
75 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD | 75 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD |
76 | 76 |
77 -include $(DEPS_ALL) | 77 -include $(DEPS_ALL) |
OLD | NEW |