Add field_gmp; only 64-bit platforms for now

This commit is contained in:
Pieter Wuille
2013-04-03 03:43:14 +02:00
parent 7fef66199e
commit ea165f47da
5 changed files with 148 additions and 1 deletions

View File

@@ -16,6 +16,11 @@ OBJS :=
default: all
ifeq ($(CONF), gmpgmp)
FLAGS_COMMON := $(FLAGS_COMMON) -DUSE_NUM_GMP -DUSE_FIELD_GMP
LIBS := -lgmp
SECP256K1_FILES := $(SECP256K1_FILES) src/num_gmp.h src/num_gmp.c src/field_gmp.c src/field_gmp.h
else
ifeq ($(CONF), gmp32)
FLAGS_COMMON := $(FLAGS_COMMON) -DUSE_NUM_GMP -DUSE_FIELD_10X26
LIBS := -lgmp
@@ -45,11 +50,12 @@ endif
endif
endif
endif
endif
all: src/*.c src/*.asm src/*.h include/*.h
+make CONF=openssl all-openssl
+make CONF=gmp all-gmp
+make CONF=gmpgmp all-gmpgmp
+make CONF=gmp32 all-gmp32
+make CONF=gmpasm all-gmpasm