blob: eaeb3871ef0679952723cf97316153cd3dc1fb66 [file] [log] [blame]
Marian Balakowicz49d0eee2006-06-30 16:30:46 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Marian Balakowicz49d0eee2006-06-30 16:30:46 +02006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Marian Balakowicz49d0eee2006-06-30 16:30:46 +020011
Marian Balakowiczd62379d2006-09-01 19:49:50 +020012COBJS = $(BOARD).o flash.o cmd_yucca.o
Marian Balakowicz49d0eee2006-06-30 16:30:46 +020013SOBJS = init.o
14
Marian Balakowiczd62379d2006-09-01 19:49:50 +020015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS))
Marian Balakowicz49d0eee2006-06-30 16:30:46 +020021
Marian Balakowicz49d0eee2006-06-30 16:30:46 +020022#########################################################################
23
Marian Balakowiczd62379d2006-09-01 19:49:50 +020024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
Marian Balakowicz49d0eee2006-06-30 16:30:46 +020026
Marian Balakowiczd62379d2006-09-01 19:49:50 +020027sinclude $(obj).depend
Marian Balakowicz49d0eee2006-06-30 16:30:46 +020028
29#########################################################################