Simon Glass | 19c402a | 2013-06-13 15:10:02 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2013, Google Inc. |
| 3 | # |
| 4 | # (C) Copyright 2000-2007 |
| 5 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 6 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 7 | # SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 19c402a | 2013-06-13 15:10:02 -0700 | [diff] [blame] | 8 | # |
| 9 | |
| 10 | include $(TOPDIR)/config.mk |
| 11 | |
| 12 | LIB = $(obj)librsa.o |
| 13 | |
| 14 | ifdef CONFIG_FIT_SIGNATURE |
| 15 | COBJS-$(CONFIG_RSA) += rsa-verify.o |
| 16 | endif |
| 17 | |
| 18 | COBJS := $(sort $(COBJS-y)) |
| 19 | SRCS := $(COBJS:.o=.c) |
| 20 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS)) |
| 24 | |
| 25 | ######################################################################### |
| 26 | |
| 27 | # defines $(obj).depend target |
| 28 | include $(SRCTREE)/rules.mk |
| 29 | |
| 30 | sinclude $(obj).depend |
| 31 | |
| 32 | ######################################################################### |