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

include ../source.mk

CFLAGS = -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -std=c99

nop:
	@:

build:
	oh-autoconfigure
	oh-autobuild -- CFLAGS='$(CFLAGS)'
	if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
		oh-autotest -- CFLAGS='$(CFLAGS)'; \
	fi
	touch $@

install: build
	oh-autoinstall
	oh-fixperms
	oh-strip
	oh-installfiles