xref: /openbmc/u-boot/lib/rsa/Makefile (revision 19c402af)
1*19c402afSSimon Glass#
2*19c402afSSimon Glass# Copyright (c) 2013, Google Inc.
3*19c402afSSimon Glass#
4*19c402afSSimon Glass# (C) Copyright 2000-2007
5*19c402afSSimon Glass# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6*19c402afSSimon Glass#
7*19c402afSSimon Glass# See file CREDITS for list of people who contributed to this
8*19c402afSSimon Glass# project.
9*19c402afSSimon Glass#
10*19c402afSSimon Glass# This program is free software; you can redistribute it and/or
11*19c402afSSimon Glass# modify it under the terms of the GNU General Public License as
12*19c402afSSimon Glass# published by the Free Software Foundation; either version 2 of
13*19c402afSSimon Glass# the License, or (at your option) any later version.
14*19c402afSSimon Glass#
15*19c402afSSimon Glass# This program is distributed in the hope that it will be useful,
16*19c402afSSimon Glass# but WITHOUT ANY WARRANTY; without even the implied warranty of
17*19c402afSSimon Glass# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*19c402afSSimon Glass# GNU General Public License for more details.
19*19c402afSSimon Glass#
20*19c402afSSimon Glass# You should have received a copy of the GNU General Public License
21*19c402afSSimon Glass# along with this program; if not, write to the Free Software
22*19c402afSSimon Glass# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23*19c402afSSimon Glass# MA 02111-1307 USA
24*19c402afSSimon Glass#
25*19c402afSSimon Glass
26*19c402afSSimon Glassinclude $(TOPDIR)/config.mk
27*19c402afSSimon Glass
28*19c402afSSimon GlassLIB	= $(obj)librsa.o
29*19c402afSSimon Glass
30*19c402afSSimon Glassifdef CONFIG_FIT_SIGNATURE
31*19c402afSSimon GlassCOBJS-$(CONFIG_RSA) += rsa-verify.o
32*19c402afSSimon Glassendif
33*19c402afSSimon Glass
34*19c402afSSimon GlassCOBJS	:= $(sort $(COBJS-y))
35*19c402afSSimon GlassSRCS	:= $(COBJS:.o=.c)
36*19c402afSSimon GlassOBJS	:= $(addprefix $(obj),$(COBJS))
37*19c402afSSimon Glass
38*19c402afSSimon Glass$(LIB):	$(obj).depend $(OBJS)
39*19c402afSSimon Glass	$(call cmd_link_o_target, $(OBJS))
40*19c402afSSimon Glass
41*19c402afSSimon Glass#########################################################################
42*19c402afSSimon Glass
43*19c402afSSimon Glass# defines $(obj).depend target
44*19c402afSSimon Glassinclude $(SRCTREE)/rules.mk
45*19c402afSSimon Glass
46*19c402afSSimon Glasssinclude $(obj).depend
47*19c402afSSimon Glass
48*19c402afSSimon Glass#########################################################################
49