2010-04-21 00:40:59 +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+
|
2010-04-21 00:40:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
ifneq ($(OBJTREE),$(SRCTREE))
|
|
|
|
$(shell mkdir -p $(obj)../common)
|
|
|
|
endif
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(BOARD).o
|
2010-04-21 00:40:59 +00:00
|
|
|
|
|
|
|
COBJS-y := $(BOARD).o
|
|
|
|
COBJS-$(CONFIG_CMD_IDE) += ../common/cfide.o
|
|
|
|
COBJS-$(CONFIG_EPLED) += ../common/epled.o
|
|
|
|
COBJS-$(CONFIG_SEVENSEG) += ../common/sevenseg.o
|
|
|
|
|
|
|
|
SOBJS-y := text_base.o
|
|
|
|
|
|
|
|
SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS-y))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS) $(SOBJS))
|
2010-04-21 00:40:59 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|