Simon Glass | 2592075 | 2012-11-05 12:16:24 +0000 | [diff] [blame^] | 1 | # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
Gabe Black | 84cd932 | 2012-10-12 14:26:11 +0000 | [diff] [blame] | 2 | # |
| 3 | # This program is free software; you can redistribute it and/or |
| 4 | # modify it under the terms of the GNU General Public License as |
| 5 | # published by the Free Software Foundation; either version 2 of |
| 6 | # the License, or (at your option) any later version. |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | # GNU General Public License for more details. |
| 12 | # |
| 13 | # You should have received a copy of the GNU General Public License |
| 14 | # along with this program; if not, write to the Free Software |
| 15 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 16 | # MA 02111-1307 USA |
| 17 | # |
| 18 | |
| 19 | include $(TOPDIR)/config.mk |
| 20 | |
| 21 | LIB = $(obj)libcbfs.o |
| 22 | |
| 23 | COBJS-$(CONFIG_CMD_CBFS) := cbfs.o |
| 24 | |
| 25 | SRCS := $(COBJS-y:.o=.c) |
| 26 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 27 | |
| 28 | all: $(LIB) |
| 29 | |
| 30 | $(LIB): $(obj).depend $(OBJS) |
| 31 | $(call cmd_link_o_target, $(OBJS)) |
| 32 | |
| 33 | |
| 34 | ######################################################################### |
| 35 | |
| 36 | # defines $(obj).depend target |
| 37 | include $(SRCTREE)/rules.mk |
| 38 | |
| 39 | sinclude $(obj).depend |
| 40 | |
| 41 | ######################################################################### |