uwu

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

sbase.mk (924B)


      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 SBASE_B = \
      6 	$(SBASE_SRC)/basename \
      7 	$(SBASE_SRC)/cat \
      8 	$(SBASE_SRC)/cp \
      9 	$(SBASE_SRC)/cut \
     10 	$(SBASE_SRC)/dirname \
     11 	$(SBASE_SRC)/env \
     12 	$(SBASE_SRC)/grep \
     13 	$(SBASE_SRC)/ls \
     14 	$(SBASE_SRC)/mkdir \
     15 	$(SBASE_SRC)/mktemp \
     16 	$(SBASE_SRC)/printf \
     17 	$(SBASE_SRC)/pwd \
     18 	$(SBASE_SRC)/rm \
     19 	$(SBASE_SRC)/rmdir \
     20 	$(SBASE_SRC)/sed \
     21 	$(SBASE_SRC)/sleep \
     22 	$(SBASE_SRC)/sync \
     23 	$(SBASE_SRC)/touch \
     24 	$(SBASE_SRC)/true \
     25 	$(SBASE_SRC)/xargs \
     26 	$(SBASE_SRC)/yes \
     27 
     28 SBASE_BINS = $(SBASE_SRC) $(SBASE_B)
     29 
     30 $(SBASE_SRC):
     31 	git clone https://git.suckless.org/sbase
     32 
     33 $(SBASE_B): $(SBASE_SRC)
     34 	$(MAKE) -C $(SBASE_SRC) \
     35 		CC=$(CROSS_COMPILE)gcc \
     36 		AR=$(CROSS_COMPILE)ar \
     37 		RANLIB=$(CROSS_COMPILE)ranlib \
     38 		CFLAGS="-Os -static -std=c99 -Wall -pedantic" \
     39 		LDFLAGS="-s -static" \
     40 		-e $(shell basename $@)