xref: /openbmc/u-boot/arch/x86/cpu/coreboot/Makefile (revision 25b26ec6)
1#
2# Copyright (c) 2011 The Chromium OS Authors.
3#
4# (C) Copyright 2008
5# Graeme Russ, graeme.russ@gmail.com.
6#
7# (C) Copyright 2006
8# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9#
10# (C) Copyright 2002
11# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
12#
13# See file CREDITS for list of people who contributed to this
14# project.
15#
16# This program is free software; you can redistribute it and/or
17# modify it under the terms of the GNU General Public License as
18# published by the Free Software Foundation; either version 2 of
19# the License, or (at your option) any later version.
20#
21# This program is distributed in the hope that it will be useful,
22# but WITHOUT ANY WARRANTY; without even the implied warranty of
23# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24# GNU General Public License for more details.
25#
26# You should have received a copy of the GNU General Public License
27# along with this program; if not, write to the Free Software
28# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29# MA 02111-1307 USA
30#
31
32include $(TOPDIR)/config.mk
33
34LIB	:= $(obj)lib$(SOC).o
35
36COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
37COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
38COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
39COBJS-$(CONFIG_SYS_COREBOOT) += sysinfo.o
40
41SOBJS-$(CONFIG_SYS_COREBOOT) += coreboot_car.o
42
43SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
44OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
45
46all: $(obj).depend $(LIB)
47
48$(LIB):	$(OBJS)
49	$(call cmd_link_o_target, $(OBJS))
50
51#########################################################################
52
53# defines $(obj).depend target
54include $(SRCTREE)/rules.mk
55
56sinclude $(obj).depend
57
58#########################################################################
59