summaryrefslogtreecommitdiffstats
path: root/build
blob: f7b497f919bdc7b9b22aae6b7e1c60718c6e31c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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
	oh-shlibdeps