-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (49 loc) · 1.81 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
##################################
RELEASE_STEM = g++
PROD_STEM = clang++ -pedantic -Wall -Werror
STEM = $(PROD_STEM)
##################################
all: dirs bin/venus.out bin/venue.out bin/cove.out bin/benchmark.out
install: all
sudo cp bin/venus.out /usr/bin/venus
sudo cp bin/venue.out /usr/bin/venue
sudo cp bin/cove.out /usr/bin/cove
uninstall:
sudo rm -f /usr/bin/venus /usr/bin/venue /usr/bin/cove
##################################
recomp:
bin/venue.out cpuSrc/helloWorld.tasl -o cpuBin/helloWorld.venus
bin/venue.out cpuSrc/function.tasl -o cpuBin/function.venus
##################################
dirs: bin/ build/
bin/:
mkdir bin
build/:
mkdir build
bin/venus.out: build/venus.o build/cpu2.o
$(STEM) -o bin/venus.out build/venus.o build/cpu2.o
bin/venue.out: build/assemblerMain.o build/assembler.o build/stdmac.o
$(STEM) -o bin/venue.out build/assemblerMain.o build/assembler.o build/stdmac.o
bin/cove.out: build/cove.o build/assembler.o build/stdmac.o
$(STEM) -o bin/cove.out build/cove.o build/assembler.o build/stdmac.o
bin/benchmark.out: benchmark.cpp
$(STEM) -o bin/benchmark.out benchmark.cpp
##################################
build/venus.o: venusMain.cpp
$(STEM) -c -o build/venus.o venusMain.cpp
build/assemblerMain.o: assemblerMain.cpp
$(STEM) -c -o build/assemblerMain.o assemblerMain.cpp
build/cpu2.o: src/cpu2.cpp src/cpu2.hpp
$(STEM) -c -o build/cpu2.o src/cpu2.cpp
build/assembler.o: src/assembler.cpp src/assembler.hpp
$(STEM) -c -o build/assembler.o src/assembler.cpp
build/cove.o: src/decompiler.cpp src/assembler.hpp
$(STEM) -c -o build/cove.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/*
##################################