-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
69 lines (60 loc) · 1.14 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.MAKEFLAGS: -r -m share/mk
.MAIN: all
.SYSPATH:
.SYSPATH: $(.CURDIR)/share/mk
# targets
all:: mkdir .WAIT dep .WAIT prog
dep::
gen::
test::
install:: all
clean::
# things to override
CC ?= gcc
BUILD ?= build
PREFIX ?= /usr/local
WASMTIME ?= wasmtime
# ${unix} is an arbitrary variable set by sys.mk
.if defined(unix)
.BEGIN::
@echo "We don't use sys.mk; run ${MAKE} with -r" >&2
@false
.endif
# layout
SUBDIR += src/bnf
SUBDIR += src/blab
SUBDIR += src/ebnfhtml5
SUBDIR += src/dot
SUBDIR += src/abnf
SUBDIR += src/iso-ebnf
SUBDIR += src/rbnf
SUBDIR += src/sid
SUBDIR += src/wsn
SUBDIR += src/rrd
SUBDIR += src/rrdump
SUBDIR += src/rrtdump
SUBDIR += src/rrparcon
SUBDIR += src/rrll
SUBDIR += src/rrta
SUBDIR += src/rrtext
SUBDIR += src/rrdot
SUBDIR += src/svg
SUBDIR += src/html5
SUBDIR += src/json
SUBDIR += src
.include <subdir.mk>
.include <sid.mk>
.include <lx.mk>
.include <obj.mk>
.include <dep.mk>
.include <ar.mk>
.include <so.mk>
.include <part.mk>
.include <prog.mk>
.include <mkdir.mk>
.include <install.mk>
.include <clean.mk>
test::
.if ${CC:T:Memcc}
echo 'hello = world.' | ${WASMTIME} ${BUILD}/bin/kgt.wasm -- -l wsn -e rrutf8
.endif