-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (55 loc) · 1.32 KB
/
Makefile
File metadata and controls
77 lines (55 loc) · 1.32 KB
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
69
70
71
72
73
74
75
# Rule input $^, rule output $@
# Adapt to Windows executable name convention by defining XE (Executable extension)
.SUFFIXES:
PROJECTS := geli fol coll PrefixMap brace folio hippo panda pad das dam
.PHONY: all clean
all: $(PROJECTS)
ifdef WINDIR
XE=.exe
EXECUTABLES = $(PROJECTS:%=%.exe)
.PHONY: $(PROJECTS)
$(PROJECTS): %: %.exe
PATH := /d/projects/oberon/vishap/master/install/bin:$(PATH)
else
XE=
EXECUTABLES = $(PROJECTS)
PATH := /opt/voc/bin:$(PATH)
endif
prefixmap: PrefixMap$(XE)
./PrefixMap$(XE)
%.o: %.mod
voc -r -OC $^
dam$(XE): dam.mod TextWriter.o
voc -r -M -OC dam.mod
-./dam$(XE)
das$(XE): das.mod TextWriter.o
voc -r -M -OC das.mod
-./das$(XE)
pad$(XE): pad.mod TextWriter.o
voc -r -M -OC pad.mod
-./pad$(XE)
panda$(XE): panda.mod TextWriter.o
voc -r -M -OC panda.mod
-./panda$(XE)
hippo$(XE): hippo.mod TextWriter.o
voc -r -M -OC hippo.mod
-./hippo$(XE)
folio$(XE): folio.mod TextWriter.o
voc -r -m -OC folio.mod
-./folio$(XE)
brace$(XE): brace.mod TextWriter.o
voc -r -M brace.mod
-./brace$(XE)
geli$(XE): geli.mod TextWriter.o
voc -r -M geli.mod
-./geli$(XE)
fol$(XE): fol.mod TextWriter.o
voc -r -M fol.mod
-./fol$(XE)
coll$(XE): coll.mod
voc -r -m $^
mintty ./coll$(XE)
PrefixMap$(XE): PrefixMap.mod
voc -r -m $^
clean:
rm -f *.c *.h *.o *.sym *.stackdump $(EXECUTABLES)