-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (30 loc) · 1.07 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
cc := cc
rm := rm
cflags := -Wall
clibs := -lviriatum
install := install
prefix := /usr/local
base: mingus mingusa
all: base examples.build
install: all
$(install) mingus mingusa $(prefix)/bin
clean:
$(rm) -f mingus mingusa examples/*.mic
mingus: src/mingus/mingus.c
$(cc) $(cflags) src/mingus/mingus.c -o mingus $(clibs)
mingusa: src/mingus_assembler/mingus_assembler.c
$(cc) $(cflags) src/mingus_assembler/mingus_assembler.c -o mingusa $(clibs)
examples.build: examples/loop.mic examples/calc.mic examples/call.mic
examples/loop.mic: mingusa examples/loop.mia
./mingusa examples/loop.mia examples/loop.mic
examples/calc.mic: mingusa examples/calc.mia
./mingusa examples/calc.mia examples/calc.mic
examples/call.mic: mingusa examples/call.mia
./mingusa examples/call.mia examples/call.mic
examples.run: examples/loop.mic.run examples/calc.mic.run examples/call.mic.run
examples/loop.mic.run: examples/loop.mic
./mingus examples/loop.mic
examples/calc.mic.run: examples/calc.mic
./mingus examples/calc.mic
examples/call.mic.run: examples/call.mic
./mingus examples/call.mic