mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-19 22:04:26 +01:00
Import secp256k1 (schnorr version)
Imported from: git@github.com:sipa/secp256k1.git schnorr3 (0ab0b47) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
8
Makefile
8
Makefile
@@ -27,10 +27,16 @@ TAGS: FORCE
|
||||
$(RM) TAGS; find . -name '*.[ch]' | xargs etags --append
|
||||
FORCE::
|
||||
|
||||
# We build a static libsecpk1, since we need schnorr for alpha
|
||||
# (and it's not API stable yet!).
|
||||
libsecp256k1.a:
|
||||
cd secp256k1 && ./autogen.sh && ./configure --enable-static=yes --enable-shared=no --enable-tests=no --libdir=`pwd`/..
|
||||
$(MAKE) -C secp256k1 install-exec
|
||||
|
||||
lightning.pb-c.c lightning.pb-c.h: lightning.proto
|
||||
$(PROTOCC) lightning.proto --c_out=.
|
||||
|
||||
$(PROGRAMS): % : %.o $(HELPER_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS)
|
||||
$(PROGRAMS): % : %.o $(HELPER_OBJS) $(BITCOIN_OBJS) $(CCAN_OBJS) libsecp256k1.a
|
||||
$(PROGRAMS:=.o) $(HELPER_OBJS): $(HEADERS)
|
||||
|
||||
$(CCAN_OBJS) $(HELPER_OBJS) $(PROGRAM_OBJS) $(BITCOIN_OBJS): ccan/config.h
|
||||
|
||||
Reference in New Issue
Block a user