comparison MULTI @ 72:9597c2e3b9d4

Some doc changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 13 Aug 2004 10:58:51 +0000
parents fe6bca95afa7
children 93e04b9ff676
comparison
equal deleted inserted replaced
71:ac96bc733e71 72:9597c2e3b9d4
1 Multi-binary compilation 1 Multi-binary compilation
2 ======================== 2 ========================
3 3
4 To compile for systems without much space (floppy distributions etc), you 4 To compile for systems without much space (floppy distributions etc), you
5 can create a single binary. This will save disk space by avoiding repeated 5 can create a single binary. This will save disk space by avoiding repeated
6 code between the three components (dropbear, dropbearkey, dropbearconvert). 6 code between the various parts.
7 If you are familiar with "busybox", it's the same principle. 7 If you are familiar with "busybox", it's the same principle.
8 8
9 To use the multi-purpose binary, firstly enable the "#define DROPBEAR_MULTI" 9 To compile the multi-binary, first "make clean" (if you've compiled
10 line in options.h 10 previously), then
11 11
12 Then enable which of the binaries you want to compile, also in options.h 12 make PROGRAMS="programs you want here" MULTI=1
13 (by default these are all enabled).
14
15 You should then "make clean" (if you compiled previously), then
16
17 "make dropbearmulti"
18
19 ("make dropbearmultistatic" will make a static binary).
20 13
21 To use the binary, symlink it from the desired executable: 14 To use the binary, symlink it from the desired executable:
22 15
23 ln -s dropbearmulti dropbear 16 ln -s dropbearmulti dropbear
17 ln -s dropbearmulti dbclient
18 etc
24 19
25 then execute as normal: 20 then execute as normal:
26 21
27 ./dropbear <options here> 22 ./dropbear <options here>
28 23
29 "make install" doesn't currently work for multi-binary configuration, however 24 "make install" doesn't currently work for multi-binary configuration, though
30 in most situations where it is being used, the target and build systems will 25 in most situations where it is being used, the target and build systems will
31 differ. 26 differ.