xref: /openbmc/u-boot/arch/x86/cpu/coreboot/Makefile (revision 8495faf5)
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
36SOBJS-$(CONFIG_SYS_COREBOOT) += car.o
37COBJS-$(CONFIG_SYS_COREBOOT) += coreboot.o
38COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
39COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
40COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
41COBJS-$(CONFIG_SYS_COREBOOT) += timestamp.o
42COBJS-$(CONFIG_PCI) += pci.o
43
44SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
45OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
46
47all: $(obj).depend $(LIB)
48
49$(LIB):	$(OBJS)
50	$(call cmd_link_o_target, $(OBJS))
51
52#########################################################################
53
54# defines $(obj).depend target
55include $(SRCTREE)/rules.mk
56
57sinclude $(obj).depend
58
59#########################################################################
60