Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame] | 1 | # |
| 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 Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 11 | $(shell mkdir -p $(obj)../common) |
| 12 | endif |
| 13 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(BOARD).o |
Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame] | 15 | |
| 16 | COBJS-y := $(BOARD).o |
| 17 | COBJS-$(CONFIG_CMD_IDE) += ../common/cfide.o |
| 18 | COBJS-$(CONFIG_EPLED) += ../common/epled.o |
Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame] | 19 | COBJS-$(CONFIG_SEVENSEG) += ../common/sevenseg.o |
| 20 | |
| 21 | SOBJS-y := text_base.o |
| 22 | |
| 23 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 24 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 25 | SOBJS := $(addprefix $(obj),$(SOBJS-y)) |
| 26 | |
| 27 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 28 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame] | 29 | |
Thomas Chou | 8cbb0dd | 2010-04-21 08:40:59 +0800 | [diff] [blame] | 30 | ######################################################################### |
| 31 | |
| 32 | # defines $(obj).depend target |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |
| 36 | |
| 37 | ######################################################################### |