14b0730d2SSimon Glass# 24b0730d2SSimon Glass# Copyright (c) 2011 The Chromium OS Authors. 34b0730d2SSimon Glass# 44b0730d2SSimon Glass# (C) Copyright 2000-2003 54b0730d2SSimon Glass# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 64b0730d2SSimon Glass# 74b0730d2SSimon Glass# See file CREDITS for list of people who contributed to this 84b0730d2SSimon Glass# project. 94b0730d2SSimon Glass# 104b0730d2SSimon Glass# This program is free software; you can redistribute it and/or 114b0730d2SSimon Glass# modify it under the terms of the GNU General Public License as 124b0730d2SSimon Glass# published by the Free Software Foundation; either version 2 of 134b0730d2SSimon Glass# the License, or (at your option) any later version. 144b0730d2SSimon Glass# 154b0730d2SSimon Glass# This program is distributed in the hope that it will be useful, 164b0730d2SSimon Glass# but WITHOUT ANY WARRANTY; without even the implied warranty of 174b0730d2SSimon Glass# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 184b0730d2SSimon Glass# GNU General Public License for more details. 194b0730d2SSimon Glass# 204b0730d2SSimon Glass# You should have received a copy of the GNU General Public License 214b0730d2SSimon Glass# along with this program; if not, write to the Free Software 224b0730d2SSimon Glass# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 234b0730d2SSimon Glass# MA 02111-1307 USA 244b0730d2SSimon Glass# 254b0730d2SSimon Glass 264b0730d2SSimon Glassinclude $(TOPDIR)/config.mk 274b0730d2SSimon Glass 284b0730d2SSimon GlassLIB = $(obj)lib$(CPU).o 294b0730d2SSimon Glass 30bace3d00SSimon GlassCOBJS := cpu.o start.o os.o 314b0730d2SSimon Glass 324b0730d2SSimon GlassSRCS := $(COBJS:.o=.c) 334b0730d2SSimon GlassOBJS := $(addprefix $(obj),$(COBJS)) 344b0730d2SSimon Glass 354b0730d2SSimon Glassall: $(obj).depend $(LIB) 364b0730d2SSimon Glass 374b0730d2SSimon Glass$(LIB): $(OBJS) 384b0730d2SSimon Glass $(call cmd_link_o_target, $(OBJS)) 394b0730d2SSimon Glass 40*f8d2c65fSAndreas Bießmann# os.c is build in the system environment, so needs standard includes 41*f8d2c65fSAndreas Bießmann$(obj)os.o: ALL_CFLAGS := $(filter-out -nostdinc,$(ALL_CFLAGS)) 42*f8d2c65fSAndreas Bießmann$(obj).depend.os: CPPFLAGS := $(filter-out -nostdinc,$(CPPFLAGS)) 43*f8d2c65fSAndreas Bießmann 444b0730d2SSimon Glass######################################################################### 454b0730d2SSimon Glass 464b0730d2SSimon Glass# defines $(obj).depend target 474b0730d2SSimon Glassinclude $(SRCTREE)/rules.mk 484b0730d2SSimon Glass 494b0730d2SSimon Glasssinclude $(obj).depend 504b0730d2SSimon Glass 514b0730d2SSimon Glass######################################################################### 52