blob: 58f1b65ff67fbd833608ba81988b209f11b7c7c5 [file] [log] [blame]
Heiko Schocherfa230442006-12-21 17:17:02 +01001#
Wolfgang Denka38dc3e2008-05-15 00:42:45 +02002# (C) Copyright 2001-2008
Heiko Schocherfa230442006-12-21 17:17:02 +01003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocherfa230442006-12-21 17:17:02 +01006#
7
8include $(TOPDIR)/config.mk
Wolfgang Denka38dc3e2008-05-15 00:42:45 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../tqm8xx/)
11endif
Heiko Schocherfa230442006-12-21 17:17:02 +010012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Heiko Schocherfa230442006-12-21 17:17:02 +010014
Heiko Schochera6f2e452008-08-28 13:50:42 +020015COBJS = $(BOARD).o ../tqm8xx/load_sernum_ethaddr.o nand.o
Heiko Schocherfa230442006-12-21 17:17:02 +010016
Wolfgang Denka38dc3e2008-05-15 00:42:45 +020017SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Heiko Schocherfa230442006-12-21 17:17:02 +010023
24#########################################################################
25
Wolfgang Denka38dc3e2008-05-15 00:42:45 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Heiko Schocherfa230442006-12-21 17:17:02 +010028
Wolfgang Denka38dc3e2008-05-15 00:42:45 +020029sinclude $(obj).depend
Heiko Schocherfa230442006-12-21 17:17:02 +010030
31#########################################################################