2022-12-29 20:29:17 +01:00
|
|
|
# Copyright (c) 2021 The PIVX developers
|
|
|
|
# Copyright (c) 2022 The Dash Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING.MIT or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
LIBDASHBLS = libdashbls.la
|
|
|
|
|
2023-01-02 08:10:54 +01:00
|
|
|
DASHBLS_CPPFLAGS = -DBLSALLOC_MIMALLOC=1
|
2022-12-29 20:29:17 +01:00
|
|
|
|
|
|
|
DASHBLS_INCLUDES = \
|
|
|
|
-I$(builddir) \
|
|
|
|
-I$(builddir)/obj \
|
|
|
|
-I$(top_srcdir)/include/dashbls
|
|
|
|
|
|
|
|
DASHBLS_H = \
|
|
|
|
src/bls.hpp \
|
|
|
|
src/chaincode.hpp \
|
|
|
|
src/elements.hpp \
|
|
|
|
src/extendedprivatekey.hpp \
|
|
|
|
src/extendedpublickey.hpp \
|
|
|
|
src/hdkeys.hpp \
|
|
|
|
src/hkdf.hpp \
|
|
|
|
src/legacy.hpp \
|
|
|
|
src/privatekey.hpp \
|
|
|
|
src/schemes.hpp \
|
|
|
|
src/test-utils.hpp \
|
|
|
|
src/threshold.hpp \
|
|
|
|
src/util.hpp
|
|
|
|
|
|
|
|
libdashbls_la_SOURCES = \
|
|
|
|
src/bls.cpp \
|
|
|
|
src/chaincode.cpp \
|
|
|
|
src/elements.cpp \
|
|
|
|
src/extendedprivatekey.cpp \
|
|
|
|
src/extendedpublickey.cpp \
|
|
|
|
src/legacy.cpp \
|
|
|
|
src/privatekey.cpp \
|
|
|
|
src/schemes.cpp \
|
|
|
|
src/threshold.cpp
|
|
|
|
|
|
|
|
libdashbls_la_SOURCES += \
|
|
|
|
$(DASHBLS_H) \
|
2023-01-02 08:10:54 +01:00
|
|
|
$(MIMALLOC_H) \
|
2022-12-29 20:29:17 +01:00
|
|
|
$(RELIC_H)
|
|
|
|
|
|
|
|
libdashbls_la_LIBADD = \
|
2023-01-02 08:10:54 +01:00
|
|
|
$(LIBMIMALLOC) \
|
2022-12-29 20:29:17 +01:00
|
|
|
$(LIBRELIC) \
|
|
|
|
$(GMP_LIBS)
|
|
|
|
|
2023-01-02 08:10:54 +01:00
|
|
|
libdashbls_la_CPPFLAGS = $(AM_CPPFLAGS) $(RELIC_INCLUDES) $(MIMALLOC_INCLUDES) $(DASHBLS_INCLUDES) $(DASHBLS_CPPFLAGS)
|
2022-12-29 20:29:17 +01:00
|
|
|
libdashbls_la_CXXFLAGS = $(AM_CXXFLAGS)
|
|
|
|
libdashbls_la_LDFLAGS = $(AM_LDFLAGS)
|
|
|
|
|
2023-01-02 08:10:54 +01:00
|
|
|
include Makefile.mimalloc.include
|
2022-12-29 20:29:17 +01:00
|
|
|
include Makefile.relic.include
|
|
|
|
|
|
|
|
if USE_TESTS
|
|
|
|
include Makefile.test.include
|
|
|
|
endif
|
|
|
|
|
|
|
|
if USE_BENCH
|
|
|
|
include Makefile.bench.include
|
|
|
|
endif
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += $(LIBDASHBLS)
|