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 = main.cc bench.cc xlib_window.cc shaders.cc utils.cc | 5 SOURCES = main.cc bench.cc xlib_window.cc shaders.cc utils.cc |
6 | 6 |
7 CXXFLAGS = -g -Wall -Werror -I$(GCLIENT_ROOT)/src/third_party/chrome/files | 7 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 | 8 LDFLAGS = -lGL -lX11 -L$(GCLIENT_ROOT)/src/third_party/chrome -lbase -lrt |
9 TARGET = ../gl_Bench | 9 TARGET = ../glbench |
10 | 10 |
11 GCLIENT_ROOT ?= ../../../../../../../.. | 11 GCLIENT_ROOT ?= ../../../../../../../.. |
12 | 12 |
13 ifdef USE_EGL | 13 ifdef USE_EGL |
14 CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include | 14 CXXFLAGS += -I$(GCLIENT_ROOT)/src/third_party/khronos/files/include |
15 SOURCES += egl_stuff.cc | 15 SOURCES += egl_stuff.cc |
16 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL | 16 LDFLAGS += -L$(GCLIENT_ROOT)/src/third_party/khronos/files -lEGL |
17 else | 17 else |
18 SOURCES += glx_stuff.cc | 18 SOURCES += glx_stuff.cc |
19 endif | 19 endif |
(...skipping 10 matching lines...) Expand all Loading... |
30 clean: | 30 clean: |
31 $(RM) $(TARGET) $(OBJS) $(DEPS) | 31 $(RM) $(TARGET) $(OBJS) $(DEPS) |
32 | 32 |
33 $(TARGET): | 33 $(TARGET): |
34 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) | 34 $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) |
35 | 35 |
36 $(OBJS): %.o: %.cc | 36 $(OBJS): %.o: %.cc |
37 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD | 37 $(CXX) $(CXXFLAGS) -c $< -o $@ -MMD |
38 | 38 |
39 -include $(DEPS) | 39 -include $(DEPS) |
OLD | NEW |