xref: /openbmc/u-boot/lib/rsa/Makefile (revision bcc05c7a)
1#
2# Copyright (c) 2013, Google Inc.
3#
4# (C) Copyright 2000-2007
5# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6#
7# SPDX-License-Identifier:	GPL-2.0+
8#
9
10include $(TOPDIR)/config.mk
11
12LIB	= $(obj)librsa.o
13
14ifdef CONFIG_FIT_SIGNATURE
15COBJS-$(CONFIG_RSA) += rsa-verify.o
16endif
17
18COBJS	:= $(sort $(COBJS-y))
19SRCS	:= $(COBJS:.o=.c)
20OBJS	:= $(addprefix $(obj),$(COBJS))
21
22$(LIB):	$(obj).depend $(OBJS)
23	$(call cmd_link_o_target, $(OBJS))
24
25#########################################################################
26
27# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
29
30sinclude $(obj).depend
31
32#########################################################################
33