mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
94dca7f9ae
excludes: - 1eea10a6 (subtree manipulation done in previous commits) - e58e1323 (see above)
40 lines
1.5 KiB
Makefile
40 lines
1.5 KiB
Makefile
include minisketch/sources.mk
|
|
|
|
LIBMINISKETCH_CPPFLAGS=
|
|
LIBMINISKETCH_CPPFLAGS += -DDISABLE_DEFAULT_FIELDS -DENABLE_FIELD_32
|
|
|
|
LIBMINISKETCH = minisketch/libminisketch.a
|
|
MINISKETCH_LIBS = $(LIBMINISKETCH)
|
|
|
|
if ENABLE_CLMUL
|
|
LIBMINISKETCH_CLMUL = minisketch/libminisketch_clmul.a
|
|
LIBMINISKETCH_CPPFLAGS += -DHAVE_CLMUL
|
|
MINISKETCH_LIBS += $(LIBMINISKETCH_CLMUL)
|
|
endif
|
|
|
|
EXTRA_LIBRARIES += $(MINISKETCH_LIBS)
|
|
|
|
minisketch_libminisketch_clmul_a_SOURCES = $(MINISKETCH_FIELD_CLMUL_SOURCES_INT) $(MINISKETCH_FIELD_CLMUL_HEADERS_INT)
|
|
minisketch_libminisketch_clmul_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS) $(CLMUL_CXXFLAGS)
|
|
minisketch_libminisketch_clmul_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMINISKETCH_CPPFLAGS)
|
|
|
|
minisketch_libminisketch_a_SOURCES = $(MINISKETCH_FIELD_GENERIC_SOURCES_INT) $(MINISKETCH_LIB_SOURCES_INT)
|
|
minisketch_libminisketch_a_SOURCES += $(MINISKETCH_FIELD_GENERIC_HEADERS_INT) $(MINISKETCH_LIB_HEADERS_INT) $(MINISKETCH_DIST_HEADERS_INT)
|
|
minisketch_libminisketch_a_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMINISKETCH_CPPFLAGS)
|
|
minisketch_libminisketch_a_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
|
|
if ENABLE_TESTS
|
|
if !ENABLE_FUZZ
|
|
MINISKETCH_TEST = minisketch/test
|
|
TESTS += $(MINISKETCH_TEST)
|
|
check_PROGRAMS += $(MINISKETCH_TEST)
|
|
|
|
minisketch_test_SOURCES = $(MINISKETCH_TEST_SOURCES_INT)
|
|
minisketch_test_CPPFLAGS = $(AM_CPPFLAGS) $(LIBMINISKETCH_CPPFLAGS)
|
|
minisketch_test_CXXFLAGS = $(AM_CXXFLAGS) $(PIE_FLAGS)
|
|
minisketch_test_LDADD = $(MINISKETCH_LIBS)
|
|
minisketch_test_LDFLAGS = $(RELDFLAGS) $(AM_LDFLAGS) $(LIBTOOL_APP_LDFLAGS) $(PTHREAD_FLAGS)
|
|
|
|
endif
|
|
endif
|