summaryrefslogtreecommitdiffstats
path: root/build
blob: 078c5f761515ac95d1415ee1e450c56ad2a0eaed (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:
	find src -type d -exec chmod a+rx '{}' ';'
	find src -type f -exec chmod a+r  '{}' ';'

build: nop
	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