]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/x86/cpu/coreboot/Makefile
Merge 'u-boot-atmel/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / arch / x86 / cpu / coreboot / Makefile
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
32 include $(TOPDIR)/config.mk
33
34 LIB     := $(obj)lib$(SOC).o
35
36 SOBJS-$(CONFIG_SYS_COREBOOT) += car.o
37 COBJS-$(CONFIG_SYS_COREBOOT) += coreboot.o
38 COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
39 COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
40 COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
41 COBJS-$(CONFIG_SYS_COREBOOT) += timestamp.o
42 COBJS-$(CONFIG_PCI) += pci.o
43
44 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
45 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
46
47 all: $(obj).depend $(LIB)
48
49 $(LIB): $(OBJS)
50         $(call cmd_link_o_target, $(OBJS))
51
52 #########################################################################
53
54 # defines $(obj).depend target
55 include $(SRCTREE)/rules.mk
56
57 sinclude $(obj).depend
58
59 #########################################################################