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

include ../source.mk

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

nop:
	@:

build:
	oh-autoconfigure -- --enable-languages=''  # TODO: Enable "cpp"
	oh-autobuild -- CFLAGS='$(CFLAGS)'
	if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
		oh-autotest -- CFLAGS='$(CFLAGS)'; \
	fi
	touch $@

install: build
	oh-autoinstall
	rm dest/usr/lib/$(OPK_HOST_ARCH)/*.la
	oh-fixperms
	oh-strip
	oh-installfiles