blob: 9dc45a94563809f17ff2e478eb3d75ffb30aeb8d [file] [log] [blame]
Dinh Nguyen77754402012-10-04 06:46:02 +00001#
2# (C) Copyright 2001-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4# (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Dinh Nguyen77754402012-10-04 06:46:02 +00007#
8
9include $(TOPDIR)/config.mk
10
11LIB = $(obj)lib$(BOARD).o
12
Chin Liang See5d649d22013-09-11 11:24:48 -050013COBJS-y := socfpga_cyclone5.o
14COBJS-$(CONFIG_SPL_BUILD) += pinmux_config.o
Dinh Nguyen77754402012-10-04 06:46:02 +000015
Chin Liang See5d649d22013-09-11 11:24:48 -050016COBJS := $(COBJS-y)
Dinh Nguyen77754402012-10-04 06:46:02 +000017SRCS := $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19
20$(LIB): $(obj).depend $(OBJS)
21 $(call cmd_link_o_target, $(OBJS))
22
23clean:
24 rm -f $(OBJS)
25
26distclean: clean
27 rm -f $(LIB) core *.bak $(obj).depend
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################