summaryrefslogtreecommitdiffstats
path: root/build
blob: 2b99706fc80b503cc9890cfa51bbe0e377218e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

include ../source.mk

nop:

build:
	(cd src && cmake -D BUILD_LUA:BOOL=OFF -D BUILD_EXAMPLES:BOOL=OFF \
		-D CMAKE_INSTALL_PREFIX:PATH=/usr .)
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	rm -f dest/usr/lib/libubox.so
	mkdir -p dest/usr/lib/$(OPK_HOST_ARCH)
	mv dest/usr/lib/libubox.a dest/usr/lib/$(OPK_HOST_ARCH)/libubox.a
	oh-fixperms
	oh-strip
	oh-installfiles