54
54
55
55
include makefile_include.mk
56
56
57
+ ifneq ($(findstring -DLTM_DESC,$(LTC_CFLAGS)),)
58
+ LTC_MPI_PROVIDERS_CFLAGS += -DLTM_DESC
59
+ LTC_MPI_PROVIDERS_LIBS += -ltommath
60
+ endif
61
+ ifneq ($(findstring -DTFM_DESC,$(LTC_CFLAGS)),)
62
+ LTC_MPI_PROVIDERS_CFLAGS += -DTFM_DESC
63
+ LTC_MPI_PROVIDERS_LIBS += -ltfm
64
+ endif
65
+ ifneq ($(findstring -DGMP_DESC,$(LTC_CFLAGS)),)
66
+ LTC_MPI_PROVIDERS_CFLAGS += -DGMP_DESC
67
+ LTC_MPI_PROVIDERS_LIBS += -lgmp
68
+ endif
57
69
58
70
#ciphers come in two flavours... enc+dec and enc
59
71
src/ciphers/aes/aes_enc.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
@@ -80,7 +92,9 @@ $(foreach demo, $(strip $(DEMOS)), $(eval $(call DEMO_template,$(demo))))
80
92
81
93
install: $(call print-help,install,Installs the library + headers + pkg-config file) .common_install
82
94
sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' -e 's,@CMAKE_INSTALL_LIBDIR@,lib,' \
83
- -e 's,@CMAKE_INSTALL_INCLUDEDIR@/@PROJECT_NAME@,include/tomcrypt,' libtomcrypt.pc.in > libtomcrypt.pc
95
+ -e 's,@CMAKE_INSTALL_INCLUDEDIR@/@PROJECT_NAME@,include/tomcrypt,' \
96
+ -e 's,@MPI_PROVIDERS_LIBS@,$(LTC_MPI_PROVIDERS_LIBS),' \
97
+ -e 's,@MPI_PROVIDERS_CFLAGS@,$(LTC_MPI_PROVIDERS_CFLAGS),' libtomcrypt.pc.in > libtomcrypt.pc
84
98
install -p -d $(DESTDIR)$(LIBPATH)/pkgconfig
85
99
install -p -m 644 libtomcrypt.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
86
100
0 commit comments