blob: 147f658b264913e137cfb724c220b0a2955d83b5 [file] [log] [blame]
Mingkai Huf354b532011-07-07 12:29:15 +08001#
2# Copyright 2011 Freescale Semiconductor, Inc.
3# (C) Copyright 2001-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Mingkai Huf354b532011-07-07 12:29:15 +08007#
8
9include $(TOPDIR)/config.mk
10
11LIB = $(obj)lib$(BOARD).o
12
13COBJS-y += $(BOARD).o
14COBJS-y += cpld.o
15COBJS-y += ddr.o
Mingkai Hu4c46d822011-07-19 16:20:13 +080016COBJS-y += eth.o
Mingkai Huf354b532011-07-07 12:29:15 +080017
18SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS-y))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
22$(LIB): $(obj).depend $(OBJS) $(SOBJS)
23 $(call cmd_link_o_target, $(OBJS))
24
Mingkai Huf354b532011-07-07 12:29:15 +080025#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################