summaryrefslogtreecommitdiffstats
path: root/build
blob: 5260192bd36516d64c0865f30fb1ef2085dbbd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	chmod a+rx src
	oh-autoconfigure -- \
		--disable-bundled-libtom
	cp ../localoptions.h src/localoptions.h
	oh-autobuild -- \
		PROGRAMS='dropbear dbclient dropbearkey scp' \
		MULTI=1 \
		SCPPROGRESS=1
	oh-autobuild -- \
		PROGRAMS='dropbearconvert'
	touch $@

install: build
	oh-autoinstall -- \
		PROGRAMS='dropbear dbclient dropbearkey scp' \
		MULTI=1
	oh-autoinstall -- \
		PROGRAMS='dropbearconvert'
	install -d -m 0755 dest/etc/init.d
	install -p -m 0755 ../dropbear.pkg/dropbear.init \
		dest/etc/init.d/dropbear
	oh-fixperms
	oh-strip
	oh-installfiles