summaryrefslogtreecommitdiffstats
path: root/build
blob: ba571f05a539e95b533ea75d98b1fefafe79796d (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
#!/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
	rm dest/usr/lib/$(OPK_HOST_ARCH)/*.la
	rm -R dest/usr/share/common-lisp/
	oh-fixperms
	oh-strip
	oh-installfiles