uwu

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

dash.mk (768B)


      1 # Copyright (c) 2020 Ivan J. <parazyd@dyne.org>
      2 # This file is part of uwu.
      3 # See LICENSE file for copyright and license details.
      4 
      5 DASH_TAR = $(DASH_SRC).tar.gz
      6 DASH_SHA = $(DASH_TAR).sha256
      7 
      8 DASH_BINS = \
      9 	$(DASH_SRC) $(DASH_TAR) $(DASH_SHA) \
     10 	$(DASH_SRC)/src/dash
     11 
     12 $(DASH_TAR):
     13 	wget -c https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/$(DASH_TAR)
     14 
     15 $(DASH_SHA):
     16 	echo "$(DASH_SUM)  $(DASH_TAR)" > $@
     17 
     18 $(DASH_SRC): $(DASH_TAR) $(DASH_SHA)
     19 	sha256sum -c $(DASH_SHA)
     20 	tar xf $(DASH_TAR)
     21 
     22 $(DASH_SRC)/src/dash: $(DASH_SRC)
     23 	cd $(DASH_SRC) && ./autogen.sh
     24 	cd $(DASH_SRC) && \
     25 		CC="$(CROSS_COMPILE)gcc" \
     26 		CFLAGS="-Os" \
     27 		./configure \
     28 			--host=$(DASH_HOST_PREFIX) \
     29 			--enable-static \
     30 			--enable-glob
     31 	$(MAKE) -C $(DASH_SRC)
     32 	$(CROSS_COMPILE)strip $@