xref: /openbmc/u-boot/arch/x86/cpu/coreboot/Makefile (revision aa04fef4)
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# SPDX-License-Identifier:	GPL-2.0+
14#
15
16include $(TOPDIR)/config.mk
17
18LIB	:= $(obj)lib$(SOC).o
19
20SOBJS-$(CONFIG_SYS_COREBOOT) += car.o
21COBJS-$(CONFIG_SYS_COREBOOT) += coreboot.o
22COBJS-$(CONFIG_SYS_COREBOOT) += tables.o
23COBJS-$(CONFIG_SYS_COREBOOT) += ipchecksum.o
24COBJS-$(CONFIG_SYS_COREBOOT) += sdram.o
25COBJS-$(CONFIG_SYS_COREBOOT) += timestamp.o
26COBJS-$(CONFIG_PCI) += pci.o
27
28SRCS	:= $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
29OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
30
31all: $(obj).depend $(LIB)
32
33$(LIB):	$(OBJS)
34	$(call cmd_link_o_target, $(OBJS))
35
36#########################################################################
37
38# defines $(obj).depend target
39include $(SRCTREE)/rules.mk
40
41sinclude $(obj).depend
42
43#########################################################################
44