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

Side by Side Diff: common.mk

Issue 2819004: Ensure that the default make target is always first. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: Rebased with recent changes. Created 10 years, 6 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
« no previous file with comments | « cgpt/Makefile ('k') | misclibs/Makefile » ('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) 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 ALL_OBJS = $(ALL_SRCS:%.c=${BUILD_ROOT}/%.o) 5 ALL_OBJS = $(ALL_SRCS:%.c=${BUILD_ROOT}/%.o)
6 ALL_DEPS = $(ALL_OBJS:%.o=%.o.d) 6 ALL_DEPS = $(ALL_OBJS:%.o=%.o.d)
7 7
8 #
9 # For this target (all) to be built by default, the including file must not
10 # define any other targets above the line including this file.
11 #
12 # This all: rule must be above the %.o: %.c rule below, otherwise the
13 # rule below becomes the default target.
14 #
15 all: ${ALL_OBJS}
16
8 ${BUILD_ROOT}/%.o : %.c 17 ${BUILD_ROOT}/%.o : %.c
9 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $< 18 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
10 19
11 -include ${ALL_DEPS} 20 -include ${ALL_DEPS}
OLDNEW
« no previous file with comments | « cgpt/Makefile ('k') | misclibs/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698