summaryrefslogtreecommitdiff
path: root/MULTI.md
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2023-03-06 21:50:51 +0800
committerMatt Johnston <matt@ucc.asn.au>2023-03-06 21:50:51 +0800
commit9ddedcc53ca1c00b94c7de1ea1edf7a5e34297b2 (patch)
tree5796a1a4348b925bef0b0807a1203593589ae279 /MULTI.md
parent3292b8c6f1e5fcc405fa0f7a20e90a60f74037b2 (diff)
parenta992d3f0be411e0ba2b93e744df07e2189c7af0d (diff)
downloaddropbear-9ddedcc53ca1c00b94c7de1ea1edf7a5e34297b2.tar.gz
Merge branch 'build/folder-reorg' of github.com:tjkolev/dropbear
Diffstat (limited to 'MULTI.md')
-rw-r--r--MULTI.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/MULTI.md b/MULTI.md
new file mode 100644
index 0000000..01f9bc1
--- /dev/null
+++ b/MULTI.md
@@ -0,0 +1,23 @@
+## Multi-Binary Compilation
+
+To compile for systems without much space (floppy distributions etc), you can create a single binary. This will save disk space by avoiding repeated code between the various parts. If you are familiar with "busybox", it's the same principle.
+
+To compile the multi-binary, first `make clean` (if you've compiled previously), then
+
+```
+make PROGRAMS="programs you want here" MULTI=1
+```
+
+To use the binary, symlink it from the desired executable:
+
+```
+ln -s dropbearmulti dropbear
+ln -s dropbearmulti dbclient
+```
+etc.
+
+Then execute as normal:
+
+```
+./dropbear <options here>
+```