Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ language: c
dist: trusty
sudo: true

before_install:
- git submodule update --init --recursive

notifications:
email: false

Expand Down
14 changes: 0 additions & 14 deletions external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,13 @@ EXTERNAL_INCLUDE_FLAGS := \

EXTERNAL_LDLIBS := -Lexternal $(patsubst lib%.a,-l%,$(notdir $(EXTERNAL_LIBS)))

# Might exist, but need updating. Nuke and rebuild.
submodcheck-%: FORCE
if git submodule status external/$* | grep -q '^[-+]'; then rm -rf external/$*; git submodule update --init external/$*; fi

# We build libsodium, since Ubuntu xenial has one too old.
external/libsodium.a: external/libsodium/src/libsodium/libsodium.la
$(MAKE) -C external/libsodium DESTDIR=$$(pwd)/external install-exec

external/libsodium/src/libsodium/include/sodium.h: submodcheck-libsodium

external/libsodium/src/libsodium/libsodium.la: external/libsodium/src/libsodium/include/sodium.h
cd external/libsodium && ./autogen.sh && ./configure CC="$(CC)" --enable-static=yes --host="$(MAKE_HOST)" --build="$(BUILD)" --enable-shared=no --enable-tests=no --prefix=/ --libdir=/ && $(MAKE)

$(LIBWALLY_HEADERS) $(LIBSECP_HEADERS): submodcheck-libwally-core

# libsecp included in libwally.
# Wildcards here are magic. See http://stackoverflow.com/questions/2973445/gnu-makefile-rule-generating-a-few-targets-from-a-single-source-file
external/libsecp256k1.% external/libwallycore.%: external/libwally-core/src/secp256k1/libsecp256k1.la external/libwally-core/src/libwallycore.la
Expand All @@ -44,8 +36,6 @@ external/libsecp256k1.% external/libwallycore.%: external/libwally-core/src/secp
external/libwally-core/src/libwallycore.% external/libwally-core/src/secp256k1/libsecp256k1.%: $(LIBWALLY_HEADERS) $(LIBSECP_HEADERS)
cd external/libwally-core && ./tools/autogen.sh && ./configure CC="$(CC)" --enable-static=yes --host="$(MAKE_HOST)" --build="$(BUILD)" --enable-module-recovery --enable-shared=no --prefix=/ --libdir=/ && $(MAKE)

external/jsmn/jsmn.h: submodcheck-jsmn

# If we tell Make that the above builds both, it runs it twice in
# parallel. So we lie :(
external/jsmn/jsmn.c: external/jsmn/jsmn.h
Expand All @@ -61,17 +51,13 @@ LIBBASE58_SRC := external/libbase58/base58.c

$(LIBBASE58_SRC): $(LIBBASE58_HEADERS)

$(LIBBASE58_HEADERS): submodcheck-libbase58

# Can't be inside submodule, as that makes git think it's dirty.
external/base58.o: $(LIBBASE58_SRC) Makefile
$(COMPILE.c) $(OUTPUT_OPTION) $<

external/libbase58.a: external/base58.o
$(AR) rc $@ $<

external/libbacktrace/backtrace.h: submodcheck-libbacktrace

# Need separate build dir: changes inside submodule make git think it's dirty.
external/libbacktrace.a: external/libbacktrace/backtrace.h
@mkdir external/libbacktrace-build 2>/dev/null || true
Expand Down
2 changes: 1 addition & 1 deletion external/libbacktrace
Submodule libbacktrace updated 47 files
+5 −0 .gitignore
+82 −6 Makefile.am
+197 −13 Makefile.in
+8,465 −0 Mark.Twain-Tom.Sawyer.txt
+5 −2 README.md
+1 −0 acinclude.m4
+5 −7,898 aclocal.m4
+1 −1 alloc.c
+1 −1 atomic.c
+1 −1 backtrace.c
+1 −1 backtrace.h
+34 −259 btest.c
+431 −485 config.guess
+30 −0 config.h.in
+228 −196 config.sub
+7,309 −0 config/libtool.m4
+368 −0 config/ltoptions.m4
+123 −0 config/ltsugar.m4
+23 −0 config/ltversion.m4
+92 −0 config/lt~obsolete.m4
+587 −109 configure
+98 −3 configure.ac
+15 −12 dwarf.c
+121 −0 edtest.c
+43 −0 edtest2.c
+2,544 −183 elf.c
+12 −5 fileline.c
+49 −0 filenames.h
+11 −1 internal.h
+24 −2 mmap.c
+1 −1 mmapio.c
+83 −0 move-if-change
+1 −1 nounwind.c
+12 −8 pecoff.c
+1 −1 posix.c
+1 −1 print.c
+1 −1 read.c
+1 −1 simple.c
+1 −1 sort.c
+1 −1 state.c
+1 −1 stest.c
+234 −0 testlib.c
+110 −0 testlib.h
+161 −0 ttest.c
+2 −1 unknown.c
+1,642 −0 xcoff.c
+537 −0 ztest.c