blob: ceaf45eb47444c53d520dc7db1279fe7a565e81c [file] [log] [blame]
Thomas Chou8cbb0dd2010-04-21 08:40:59 +08001#
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+
Thomas Chou8cbb0dd2010-04-21 08:40:59 +08007#
8
9include $(TOPDIR)/config.mk
10ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)../common)
12endif
13
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Thomas Chou8cbb0dd2010-04-21 08:40:59 +080015
16COBJS-y := $(BOARD).o
17COBJS-$(CONFIG_CMD_IDE) += ../common/cfide.o
18COBJS-$(CONFIG_EPLED) += ../common/epled.o
Thomas Chou8cbb0dd2010-04-21 08:40:59 +080019COBJS-$(CONFIG_SEVENSEG) += ../common/sevenseg.o
20
21SOBJS-y := text_base.o
22
23SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
24OBJS := $(addprefix $(obj),$(COBJS-y))
25SOBJS := $(addprefix $(obj),$(SOBJS-y))
26
27$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010028 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Thomas Chou8cbb0dd2010-04-21 08:40:59 +080029
Thomas Chou8cbb0dd2010-04-21 08:40:59 +080030#########################################################################
31
32# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
34
35sinclude $(obj).depend
36
37#########################################################################