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 bench.cc shaders.cc | 6 SOURCES_GL_BENCH = main.cc bench.cc shaders.cc |
7 SOURCES_TEARTEST = teartest.cc | 7 SOURCES_TEARTEST = teartest.cc |
8 SOURCES_ALL = $(SOURCES_COMMON) $(SOURCES_GL_BENCH) $(SOURCES_TEARTEST) | 8 SOURCES_ALL = $(SOURCES_COMMON) $(SOURCES_GL_BENCH) $(SOURCES_TEARTEST) |
9 | 9 |
10 CXXFLAGS = -g -Wall -Werror -I$(GCLIENT_ROOT)/src/third_party/chrome/files | 10 CXXFLAGS = -g -Wall -Werror -I$(GCLIENT_ROOT)/src/third_party/chrome/files |
11 LDFLAGS = -lGL -lX11 -L$(GCLIENT_ROOT)/src/third_party/chrome -lbase -lrt | 11 LDFLAGS = -lGL -lX11 |
| 12 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/chrome -lbase -lrt -lgflags |
12 GL_BENCH = ../glbench | 13 GL_BENCH = ../glbench |
13 TEARTEST = ../teartest | 14 TEARTEST = ../teartest |
14 | 15 |
15 GCLIENT_ROOT ?= ../../../../../../../.. | 16 GCLIENT_ROOT ?= ../../../../../../../.. |
16 | 17 |
17 ifdef USE_EGL | 18 ifdef USE_EGL |
18 CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include | 19 CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include |
19 SOURCES_COMMON += egl_stuff.cc | 20 SOURCES_COMMON += egl_stuff.cc |
20 SOURCES_TEARTEST += teartest_egl.cc | 21 SOURCES_TEARTEST += teartest_egl.cc |
21 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL | 22 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL |
(...skipping 18 matching lines...) Expand all Loading... |
40 clean: | 41 clean: |
41 $(RM) $(GL_BENCH) $(TEARTEST) $(OBJS_ALL) $(DEPS_ALL) | 42 $(RM) $(GL_BENCH) $(TEARTEST) $(OBJS_ALL) $(DEPS_ALL) |
42 | 43 |
43 $(GL_BENCH) $(TEARTEST): | 44 $(GL_BENCH) $(TEARTEST): |
44 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) | 45 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) |
45 | 46 |
46 $(OBJS_ALL): %.o: %.cc | 47 $(OBJS_ALL): %.o: %.cc |
47 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD | 48 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD |
48 | 49 |
49 -include $(DEPS_ALL) | 50 -include $(DEPS_ALL) |
OLD | NEW |