summaryrefslogtreecommitdiffstats
path: root/build
blob: 7c851a9f1cd189064a0ce9bc2d269a076fe994de (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
25
26
27
28
29
30
31
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	@# ProteanOS doesn't have Bison (needs Perl) or Flex yet, so we need to
	@# provide pregenerated files.  Many other packages just include such
	@# files in their source archives, but libnl doesn't.
	cp ../src.gen/pktloc_grammar.c src/lib/route/pktloc_grammar.c
	cp ../src.gen/pktloc_grammar.h src/lib/route/pktloc_grammar.h
	cp ../src.gen/pktloc_syntax.c  src/lib/route/pktloc_syntax.c
	cp ../src.gen/pktloc_syntax.h  src/lib/route/pktloc_syntax.h
	cp ../src.gen/ematch_grammar.c src/lib/route/cls/ematch_grammar.c
	cp ../src.gen/ematch_grammar.h src/lib/route/cls/ematch_grammar.h
	cp ../src.gen/ematch_syntax.c  src/lib/route/cls/ematch_syntax.c
	cp ../src.gen/ematch_syntax.h  src/lib/route/cls/ematch_syntax.h
	printf 'ac_cv_prog_FLEX=:\nac_cv_prog_YACC=:\n' >src/config.cache
	oh-autoconfigure -- --cache-file=config.cache
	oh-autobuild
	touch $@

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