-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
83 lines (54 loc) · 2.31 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
##################################
RELEASE_STEM = g++
PROD_STEM = clang++ -pedantic -Wall -Werror
STEM = $(RELEASE_STEM)
##################################
all: dirs bin/tera.out bin/terace.out bin/tricat.out bin/deco.out bin/benchmark.out
install: all
sudo cp bin/tera.out /usr/bin/tera
sudo cp bin/terace.out /usr/bin/terace
sudo cp bin/deco.out /usr/bin/deco
sudo cp bin/tricat.out /usr/bin/tricat
uninstall:
sudo rm -f /usr/bin/tera /usr/bin/terace /usr/bin/deco /usr/bin/tricat
##################################
dirs: bin/ build/
bin/:
mkdir bin
build/:
mkdir build
bin/tera.out: build/tera.o build/trit.o build/tritcpu.o build/tryteMath.o
$(STEM) -o bin/tera.out build/tera.o build/trit.o build/tryteMath.o build/tritcpu.o
bin/terace.out: build/assemblerMain.o build/assembler.o build/trit.o build/tryteMath.o build/stdmac.o
$(STEM) -o bin/terace.out build/assemblerMain.o build/assembler.o build/trit.o build/tryteMath.o build/stdmac.o
bin/tricat.out: build/tricat.o build/trit.o build/tryteMath.o
$(STEM) -o bin/tricat.out build/tricat.o build/trit.o build/tryteMath.o
bin/deco.out: build/deco.o build/assembler.o build/trit.o build/tryteMath.o build/stdmac.o
$(STEM) -o bin/deco.out build/deco.o build/assembler.o build/trit.o build/tryteMath.o build/stdmac.o
bin/benchmark.out: benchmark.cpp
$(STEM) -o bin/benchmark.out benchmark.cpp
##################################
build/tera.o: tritcpuMain.cpp
$(STEM) -c -o build/tera.o tritcpuMain.cpp
build/assemblerMain.o: assemblerMain.cpp
$(STEM) -c -o build/assemblerMain.o assemblerMain.cpp
build/tricat.o: tricat.cpp
$(STEM) -c -o build/tricat.o tricat.cpp
build/trit.o: src/trit.cpp src/trit.hpp
$(STEM) -c -o build/trit.o src/trit.cpp
build/tritcpu.o: src/tritcpu.cpp src/tritcpu.hpp
$(STEM) -c -o build/tritcpu.o src/tritcpu.cpp
build/assembler.o: src/assembler.cpp src/assembler.hpp
$(STEM) -c -o build/assembler.o src/assembler.cpp
build/tryteMath.o: src/tryteMath.cpp src/tryteMath.hpp
$(STEM) -c -o build/tryteMath.o src/tryteMath.cpp
build/deco.o: src/decompiler.cpp src/assembler.hpp
$(STEM) -c -o build/deco.o src/decompiler.cpp
build/stdmac.o: src/stdMacros.cpp src/stdMacros.hpp
$(STEM) -c -o build/stdmac.o src/stdMacros.cpp
##################################
clean:
rm build/*
pclean:
rm bin/* build/*
##################################