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

Side by Side Diff: common.mk

Issue 6824032: First batch of cros-disk changes (Closed) Base URL: ssh://gitrw.chromium.org:9222/cros-disks.git@master
Patch Set: adds set_ and removes j's Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Makefile ('k') | cros-disks.conf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (C) 2011 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.makefile file. 3 # found in the LICENSE.makefile file.
4 # 4 #
5 # This file provides a common architecture for building C/C++ source trees. 5 # This file provides a common architecture for building C/C++ source trees.
6 # It uses recursive makefile inclusion to create a single make process which 6 # It uses recursive makefile inclusion to create a single make process which
7 # can be built in the source tree or with the build products places elsewhere. 7 # can be built in the source tree or with the build products places elsewhere.
8 # 8 #
9 # To use: 9 # To use:
10 # 1. Place common.mk in your top source level 10 # 1. Place common.mk in your top source level
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 ifeq ($(PROFILING),1) 159 ifeq ($(PROFILING),1)
160 $(warning PROFILING=1 disables relocatable executables.) 160 $(warning PROFILING=1 disables relocatable executables.)
161 endif 161 endif
162 162
163 # To update these from an including Makefile: 163 # To update these from an including Makefile:
164 # CXXFLAGS += -mahflag # Append to the list 164 # CXXFLAGS += -mahflag # Append to the list
165 # CXXFLAGS := -mahflag $(CXXFLAGS) # Prepend to the list 165 # CXXFLAGS := -mahflag $(CXXFLAGS) # Prepend to the list
166 # CXXFLAGS := $(filter-out badflag,$(CXXFLAGS)) # Filter out a value 166 # CXXFLAGS := $(filter-out badflag,$(CXXFLAGS)) # Filter out a value
167 # The same goes for CFLAGS. 167 # The same goes for CFLAGS.
168 CXXFLAGS := $(CXXFLAGS) -Wall -Werror -fstack-protector-all -DFORTIFY_SOURCE \ 168 CXXFLAGS := $(CXXFLAGS) -Wall -Werror -fstack-protector-all -fno-strict-aliasing -DFORTIFY_SOURCE \
169 -O2 -ggdb3 -DNDEBUG -Wa,--noexecstack 169 -ggdb3 -Wa,--noexecstack
170 CFLAGS := $(CFLAGS) -Wall -Werror -fstack-protector-all -DFORTIFY_SOURCE \ 170 CFLAGS := $(CFLAGS) -Wall -Werror -fstack-protector-all -fno-strict-aliasing -DF ORTIFY_SOURCE \
171 -O2 -ggdb3 -DNDEBUG -Wa,--noexecstack 171 -ggdb3 -Wa,--noexecstack
172 172
173 ifeq ($(PROFILING),1) 173 ifeq ($(PROFILING),1)
174 CFLAGS := -pg 174 CFLAGS := -pg
175 CXXFLAGS := -pg 175 CXXFLAGS := -pg
176 endif 176 endif
177 177
178 ifeq ($(MODE),dbg) 178 ifeq ($(MODE),dbg)
179 CFLAGS := $(filter-out -O2 -DNDEBUG,$(CFLAGS)) -O1 179 CFLAGS := $(filter-out -O2 -DNDEBUG,$(CFLAGS)) -O1
180 CXXFLAGS := $(filter-out -O2 -DNDEBUG,$(CXXFLAGS)) -O1 180 CXXFLAGS := $(filter-out -O2 -DNDEBUG,$(CXXFLAGS)) -O1
181 # TODO: May need -nopie. need to check gdb 181 # TODO: May need -nopie. need to check gdb
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 $(eval $(MODULE_NAME)_CXX_OBJECTS ?= \ 469 $(eval $(MODULE_NAME)_CXX_OBJECTS ?= \
470 $(patsubst %.cc,$(OUT)%.o,$(wildcard $(MODULE)/*.cc))) 470 $(patsubst %.cc,$(OUT)%.o,$(wildcard $(MODULE)/*.cc)))
471 471
472 # Continue recursive inclusion of module.mk files 472 # Continue recursive inclusion of module.mk files
473 SUBMODULE_DIRS = $(wildcard $(MODULE)/*/module.mk) 473 SUBMODULE_DIRS = $(wildcard $(MODULE)/*/module.mk)
474 474
475 include $(wildcard $(OUT)$(MODULE)/*.d) 475 include $(wildcard $(OUT)$(MODULE)/*.d)
476 include $(SUBMODULE_DIRS) 476 include $(SUBMODULE_DIRS)
477 endif 477 endif
478 478
OLDNEW
« no previous file with comments | « Makefile ('k') | cros-disks.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698