Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: client/deps/glbench/src/Makefile

Issue 894003: Teartest with -o flag to specify override redirect window and -r number to specify refresh rate. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 = main.cc bench.cc xlib_window.cc shaders.cc utils.cc 5 SOURCES_COMMON = xlib_window.cc utils.cc
6 SOURCES_GL_BENCH = main.cc bench.cc shaders.cc
7 SOURCES_TEARTEST = teartest.cc
8 SOURCES_ALL = $(SOURCES_COMMON) $(SOURCES_GL_BENCH) $(SOURCES_TEARTEST)
6 9
7 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
8 LDFLAGS = -lGL -lX11 -L$(GCLIENT_ROOT)/src/third_party/chrome -lbase -lrt 11 LDFLAGS = -lGL -lX11 -L$(GCLIENT_ROOT)/src/third_party/chrome -lbase -lrt
9 TARGET = ../glbench 12 GL_BENCH = ../glbench
13 TEARTEST = ../teartest
10 14
11 GCLIENT_ROOT ?= ../../../../../../../.. 15 GCLIENT_ROOT ?= ../../../../../../../..
12 16
13 ifdef USE_EGL 17 ifdef USE_EGL
14 CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include 18 CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include
15 SOURCES += egl_stuff.cc 19 SOURCES_COMMON += egl_stuff.cc
16 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL 20 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL
17 else 21 else
18 SOURCES += glx_stuff.cc 22 SOURCES_COMMON += glx_stuff.cc
19 endif 23 endif
20 24
21 OBJS = $(SOURCES:.cc=.o) 25 OBJS_COMMON = $(SOURCES_COMMON:.cc=.o)
22 DEPS = $(SOURCES:.cc=.d) 26 OBJS_GL_BENCH = $(SOURCES_GL_BENCH:.cc=.o)
27 OBJS_TEARTEST = $(SOURCES_TEARTEST:.cc=.o)
28 OBJS_ALL = $(SOURCES_ALL:.cc=.o)
29 DEPS_ALL = $(SOURCES_ALL:.cc=.d)
23 30
24 .PHONY: all clean 31 .PHONY: all clean
25 32
26 all: $(TARGET) 33 all: $(GL_BENCH) $(TEARTEST)
27 34
28 $(TARGET): $(OBJS) 35 $(TEARTEST): $(OBJS_COMMON) $(OBJS_TEARTEST)
36 $(GL_BENCH): $(OBJS_COMMON) $(OBJS_GL_BENCH)
29 37
30 clean: 38 clean:
31 » $(RM) $(TARGET) $(OBJS) $(DEPS) 39 » $(RM) $(GL_BENCH) $(TEARTEST) $(OBJS_ALL) $(DEPS_ALL)
32 40
33 $(TARGET): 41 $(GL_BENCH) $(TEARTEST):
34 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) 42 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS)
35 43
36 $(OBJS): %.o: %.cc 44 $(OBJS_ALL): %.o: %.cc
37 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD 45 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD
38 46
39 -include $(DEPS) 47 -include $(DEPS_ALL)
OLDNEW
« no previous file with comments | « no previous file | client/deps/glbench/src/egl_stuff.cc » ('j') | client/deps/glbench/src/teartest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698