blob: f0de87987ce19aa3e3cb561557ffc59d97786910 [file] [log] [blame]
vbendeb70e95092010-06-14 15:41:27 -07001# 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
3# found in the LICENSE file.
4
5ALL_OBJS = $(ALL_SRCS:%.c=${BUILD_ROOT}/%.o)
6ALL_DEPS = $(ALL_OBJS:%.o=%.o.d)
7
vbendeb2a015562010-06-16 12:49:31 -07008#
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#
15all: ${ALL_OBJS}
16
vbendeb70e95092010-06-14 15:41:27 -070017${BUILD_ROOT}/%.o : %.c
18 $(CC) $(CFLAGS) $(INCLUDES) -MMD -MF $@.d -c -o $@ $<
19
20-include ${ALL_DEPS}