Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 authored Dec 20, 2017
1 parent d07728d commit addd439
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
all: dropbear.hmod
dropbear.hmod: mod/bin/dropbear
chmod +x mod/bin/dropbear
tar -czvf dropbear.hmod -C mod bin etc
all: out/dropbear.hmod
out/dropbear.hmod: mod/bin/dropbear
[ -f "out/dropbear.hmod" ] || tar -czvf out/dropbear.hmod -C mod bin etc

mod/bin/dropbear: src/dropbear-2015.68/dropbear
-mkdir -p mod/bin
mkdir -p mod/bin
[ -f mod/bin/dropbear ] || upx --ultra-brute src/dropbear-2015.68/dropbear -o mod/bin/dropbear
chmod +x mod/bin/dropbear

src/dropbear-2015.68.tar.bz2:
mkdir src
mkdir -p src
wget https://github.com/DanTheMan827/dropbear.hmod/releases/download/tarballs/dropbear-2015.68.tar.bz2 -O src/dropbear-2015.68.tar.bz2

src/dropbear-2015.68/configure: src/dropbear-2015.68.tar.bz2
[ -f src/dropbear-2015.68/configure ] || tar -xjvf src/dropbear-2015.68.tar.bz2 -C src/

src/dropbear-2015.68/Makefile: src/dropbear-2015.68/configure
cd src/dropbear-2015.68; \
./configure --host=arm-linux-gnueabihf --prefix=/ --disable-zlib CC=arm-linux-gnueabihf-gcc LD=arm-linux-gnueabihf-ld

src/dropbear-2015.68/dropbear: src/dropbear-2015.68/Makefile
make -C src/dropbear-2015.68

clean:
-rm dropbear.hmod
-rm mod/bin/dropbear
-rm -rf src
-rm -rf "out/" "mod/bin/dropbear" "src/"

.PHONY: all clean

0 comments on commit addd439

Please sign in to comment.