forked from titzer/virgil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (20 loc) · 855 Bytes
/
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
LIB_UTIL=lib/util/*.v3
LIB_ASM=lib/asm/*/*.v3
LIB_RT=rt/*/*.v3
UTILS=bin/utils/vctags bin/utils/progress bin/utils/nu
all: bootstrap utils TAGS
bin/utils/vctags: bootstrap apps/vctags/* $(LIB_UTIL)
(cd apps/vctags && v3c-host -output=../../bin/utils/ *.v3 `cat DEPS`)
bin/utils/progress: bootstrap apps/Progress/* $(LIB_UTIL)
(cd apps/Progress && v3c-host -program-name=progress -output=../../bin/utils/ *.v3 `cat DEPS`)
bin/utils/nu: bootstrap apps/NumUtil/* $(LIB_UTIL)
(cd apps/NumUtil && v3c-host -program-name=nu -output=../../bin/utils/ *.v3 `cat DEPS`)
utils: $(UTILS)
bootstrap: bin/stable/*/* aeneas/src/*/*.v3 $(LIB_UTIL) $(LIB_RT) $(LIB_ASM)
bin/dev/aeneas bootstrap
clean:
rm -f TAGS $(UTILS)
bin/dev/aeneas clean
TAGS: aeneas/src/*/*.v3 $(LIB_UTIL) $(LIB_RT) bin/utils/vctags
bin/dev/aeneas tags
.PHONY: utils bootstrap clean