uwu

hardware bitcoin wallet software and build system
git clone https://git.parazyd.org/uwu
Log | Files | Refs | README | LICENSE

commit a2e4e93a1d41af43009c069e44d109b95b56c19f
parent 87e58ea56eddc039ee064528ab4ffb73f4c21bab
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 27 Nov 2020 15:52:48 +0100

Add dash makefile.

Diffstat:
Adash.mk | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/dash.mk b/dash.mk @@ -0,0 +1,32 @@ +# Copyright (c) 2020 Ivan J. <parazyd@dyne.org> +# This file is part of uwu. +# See LICENSE file for copyright and license details. + +DASH_TAR = $(DASH_SRC).tar.gz +DASH_SHA = $(DASH_TAR).sha256 + +DASH_BINS = \ + $(DASH_SRC) $(DASH_TAR) $(DASH_SHA) \ + $(DASH_SRC)/src/dash + +$(DASH_TAR): + wget -c https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/$(DASH_TAR) + +$(DASH_SHA): + echo "$(DASH_SUM) $(DASH_TAR)" > $@ + +$(DASH_SRC): $(DASH_TAR) $(DASH_SHA) + sha256sum -c $(DASH_SHA) + tar xf $(DASH_TAR) + +$(DASH_SRC)/src/dash: $(DASH_SRC) + cd $(DASH_SRC) && ./autogen.sh + cd $(DASH_SRC) && \ + CC="$(CROSS_COMPILE)gcc" \ + CFLAGS="-Os" \ + ./configure \ + --host=$(DASH_HOST_PREFIX) \ + --enable-static \ + --enable-glob + $(MAKE) -C $(DASH_SRC) + $(CROSS_COMPILE)strip $@