]>
Commit | Line | Data |
---|---|---|
3e76d62a SS |
1 | # |
2 | # (C) Copyright 2000, 2001, 2002 | |
3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
4 | # | |
1a459660 | 5 | # SPDX-License-Identifier: GPL-2.0+ |
3e76d62a SS |
6 | # |
7 | ||
8 | include $(TOPDIR)/config.mk | |
9 | ||
6d8962e8 | 10 | LIB = $(obj)lib$(BOARD).o |
3e76d62a | 11 | |
508a58fa S |
12 | COBJS := sdp.o |
13 | ||
bcae7211 | 14 | ifndef CONFIG_SPL_BUILD |
508a58fa | 15 | COBJS += cmd_bat.o |
bcae7211 | 16 | endif |
3e76d62a SS |
17 | |
18 | SRCS := $(COBJS:.o=.c) | |
19 | OBJS := $(addprefix $(obj),$(COBJS)) | |
20 | ||
21 | $(LIB): $(obj).depend $(OBJS) | |
6d8962e8 | 22 | $(call cmd_link_o_target, $(OBJS)) |
3e76d62a | 23 | |
3e76d62a SS |
24 | ######################################################################### |
25 | ||
26 | # defines $(obj).depend target | |
27 | include $(SRCTREE)/rules.mk | |
28 | ||
29 | sinclude $(obj).depend | |
30 | ||
31 | ######################################################################### |