]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/freescale/corenet_ds/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / freescale / corenet_ds / Makefile
1 #
2 # Copyright 2007-2009 Freescale Semiconductor, Inc.
3 # (C) Copyright 2001-2006
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 #
6 # SPDX-License-Identifier: GPL-2.0+
7 #
8
9 include $(TOPDIR)/config.mk
10
11 LIB = $(obj)lib$(BOARD).o
12
13 COBJS-y += $(BOARD).o
14 COBJS-y += ddr.o
15 COBJS-$(CONFIG_P3041DS) += eth_hydra.o
16 COBJS-$(CONFIG_P4080DS) += eth_p4080.o
17 COBJS-$(CONFIG_P5020DS) += eth_hydra.o
18 COBJS-$(CONFIG_P5040DS) += eth_superhydra.o
19 COBJS-$(CONFIG_P3041DS) += p3041ds_ddr.o
20 COBJS-$(CONFIG_P4080DS) += p4080ds_ddr.o
21 COBJS-$(CONFIG_P5020DS) += p5020ds_ddr.o
22 COBJS-$(CONFIG_P5040DS) += p5040ds_ddr.o
23
24 SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
25 OBJS := $(addprefix $(obj),$(COBJS-y))
26 SOBJS := $(addprefix $(obj),$(SOBJS))
27
28 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
29 $(call cmd_link_o_target, $(OBJS))
30
31 #########################################################################
32
33 # defines $(obj).depend target
34 include $(SRCTREE)/rules.mk
35
36 sinclude $(obj).depend
37
38 #########################################################################