blob: 7369072617e85a943be6700323d1c17fbe6b913a [file] [log] [blame]
Heiko Schocher3c58a992007-01-11 15:44:44 +01001#
2# (C) Copyright 2000
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Heiko Schocher3c58a992007-01-11 15:44:44 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Heiko Schocher3c58a992007-01-11 15:44:44 +010011
Wolfgang Denk7108f362007-03-13 16:05:55 +010012COBJS = $(BOARD).o sc3nand.o
Heiko Schocher3c58a992007-01-11 15:44:44 +010013SOBJS = init.o
14
Wolfgang Denk7108f362007-03-13 16:05:55 +010015SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
Heiko Schocher3c58a992007-01-11 15:44:44 +010019$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010020 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Heiko Schocher3c58a992007-01-11 15:44:44 +010021
Heiko Schocher3c58a992007-01-11 15:44:44 +010022#########################################################################
23
Wolfgang Denk7108f362007-03-13 16:05:55 +010024# defines $(obj).depend target
25include $(SRCTREE)/rules.mk
Heiko Schocher3c58a992007-01-11 15:44:44 +010026
Wolfgang Denk7108f362007-03-13 16:05:55 +010027sinclude $(obj).depend
Heiko Schocher3c58a992007-01-11 15:44:44 +010028
29#########################################################################