blob: b8452582be5d651968884863d3f20317b851af1f [file] [log] [blame]
wdenkab255f22002-09-18 09:04:55 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2001-2006
wdenkab255f22002-09-18 09:04:55 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenkab255f22002-09-18 09:04:55 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenkab255f22002-09-18 09:04:55 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkab255f22002-09-18 09:04:55 +000014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015COBJS = $(BOARD).o flash.o ../common/misc.o cmd_ocrtc.o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
wdenkab255f22002-09-18 09:04:55 +000020
21$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
wdenkab255f22002-09-18 09:04:55 +000023
wdenkab255f22002-09-18 09:04:55 +000024#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
wdenkab255f22002-09-18 09:04:55 +000028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
wdenkab255f22002-09-18 09:04:55 +000030
31#########################################################################