2 # (C) Copyright 2001-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 # (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
6 # SPDX-License-Identifier: GPL-2.0+
9 include $(TOPDIR)/config.mk
11 LIB = $(obj)lib$(BOARD).o
13 COBJS-y := socfpga_cyclone5.o
14 COBJS-$(CONFIG_SPL_BUILD) += pinmux_config.o
17 SRCS := $(COBJS:.o=.c)
18 OBJS := $(addprefix $(obj),$(COBJS))
20 $(LIB): $(obj).depend $(OBJS)
21 $(call cmd_link_o_target, $(OBJS))
27 rm -f $(LIB) core *.bak $(obj).depend
29 #########################################################################
31 # defines $(obj).depend target
32 include $(SRCTREE)/rules.mk
34 sinclude $(obj).depend
36 #########################################################################