2012-10-04 06:46:02 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2001-2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
# (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2012-10-04 06:46:02 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)lib$(BOARD).o
|
|
|
|
|
2013-09-11 16:24:48 +00:00
|
|
|
COBJS-y := socfpga_cyclone5.o
|
|
|
|
COBJS-$(CONFIG_SPL_BUILD) += pinmux_config.o
|
2012-10-04 06:46:02 +00:00
|
|
|
|
2013-09-11 16:24:48 +00:00
|
|
|
COBJS := $(COBJS-y)
|
2012-10-04 06:46:02 +00:00
|
|
|
SRCS := $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS)
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f $(LIB) core *.bak $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|