2010-05-19 17:11:15 +08:00
|
|
|
#
|
|
|
|
# (C) Copyright 2010
|
|
|
|
# Stefan Roese, DENX Software Engineering, sr@denx.de.
|
|
|
|
#
|
2013-07-08 15:37:19 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2010-05-19 17:11:15 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 22:48:07 +08:00
|
|
|
LIB = $(obj)lib$(BOARD).o
|
2010-05-19 17:11:15 +08:00
|
|
|
|
|
|
|
COBJS-y := $(BOARD).o
|
|
|
|
COBJS-$(CONFIG_CMD_CHIP_CONFIG) += chip_config.o
|
|
|
|
SOBJS := init.o
|
|
|
|
|
|
|
|
COBJS := $(COBJS-y)
|
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS))
|
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
|
|
|
|
2010-11-22 03:55:42 +08:00
|
|
|
all: $(LIB) $(SOBJS)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $^)
|
2010-05-19 17:11:15 +08:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|