mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
Makefile: generate libsecpk1 properly.
And clean it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
8
Makefile
8
Makefile
@@ -114,7 +114,9 @@ gen_state_names.h: state_types.h ccan/ccan/cdump/tools/cdump-enumstr
|
|||||||
|
|
||||||
# We build a static libsecpk1, since we need schnorr for alpha
|
# We build a static libsecpk1, since we need schnorr for alpha
|
||||||
# (and it's not API stable yet!).
|
# (and it's not API stable yet!).
|
||||||
libsecp256k1.a:
|
libsecp256k1.a: secp256k1/libsecp256k1.la
|
||||||
|
|
||||||
|
secp256k1/libsecp256k1.la:
|
||||||
cd secp256k1 && ./autogen.sh && ./configure --enable-static=yes --enable-shared=no --enable-tests=no --libdir=`pwd`/..
|
cd secp256k1 && ./autogen.sh && ./configure --enable-static=yes --enable-shared=no --enable-tests=no --libdir=`pwd`/..
|
||||||
$(MAKE) -C secp256k1 install-exec
|
$(MAKE) -C secp256k1 install-exec
|
||||||
|
|
||||||
@@ -170,10 +172,14 @@ update-ccan:
|
|||||||
$(RM) -r ccan.old
|
$(RM) -r ccan.old
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
$(MAKE) -C secp256k1/ distclean || true
|
||||||
|
$(RM) libsecp256k1.a
|
||||||
$(RM) lightning.pb-c.c lightning.pb-c.h ccan/config.h gen_version.h
|
$(RM) lightning.pb-c.c lightning.pb-c.h ccan/config.h gen_version.h
|
||||||
$(RM) doc/deployable-lightning.pdf
|
$(RM) doc/deployable-lightning.pdf
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(MAKE) -C secp256k1/ clean || true
|
||||||
|
$(RM) libsecp256k1.{a,la}
|
||||||
$(RM) $(PROGRAMS) test-cli/leak-anchor-sigs
|
$(RM) $(PROGRAMS) test-cli/leak-anchor-sigs
|
||||||
$(RM) bitcoin/*.o *.o $(PROGRAMS:=.o) $(CCAN_OBJS) $(CCAN_EXTRA_OBJS)
|
$(RM) bitcoin/*.o *.o $(PROGRAMS:=.o) $(CCAN_OBJS) $(CCAN_EXTRA_OBJS)
|
||||||
$(RM) doc/deployable-lightning.{aux,bbl,blg,dvi,log,out,tex}
|
$(RM) doc/deployable-lightning.{aux,bbl,blg,dvi,log,out,tex}
|
||||||
|
|||||||
Reference in New Issue
Block a user