aboutsummaryrefslogtreecommitdiff
path: root/computer-organization-experiment/Makefile
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-09 17:44:15 +0800
committercrupest <crupest@outlook.com>2021-11-09 17:44:15 +0800
commit18d160e7575374a73b4fd22ec5cc98690105aa69 (patch)
tree4c82112f0c4908895901330ea0199976e87ec90a /computer-organization-experiment/Makefile
parent4474947842a39dc2497cb0156a76fadd39443d88 (diff)
downloadlife-18d160e7575374a73b4fd22ec5cc98690105aa69.tar.gz
life-18d160e7575374a73b4fd22ec5cc98690105aa69.tar.bz2
life-18d160e7575374a73b4fd22ec5cc98690105aa69.zip
...
Diffstat (limited to 'computer-organization-experiment/Makefile')
-rw-r--r--computer-organization-experiment/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/computer-organization-experiment/Makefile b/computer-organization-experiment/Makefile
new file mode 100644
index 0000000..d44613c
--- /dev/null
+++ b/computer-organization-experiment/Makefile
@@ -0,0 +1,21 @@
+all: build/counter_4.o build/test_bench.o build/full_adder_1.o build/test_bench
+
+build:
+ mkdir -p build
+
+build/counter_4.o: build counter_4.vhdl
+ ghdl analyze --workdir=build -fsynopsys counter_4.vhdl
+
+build/full_adder_1.o: build full_adder_1.vhdl
+ ghdl analyze --workdir=build -fsynopsys full_adder_1.vhdl
+
+build/test_bench.o: build test_bench.vhdl build/counter_4.o build/full_adder_1.o
+ ghdl analyze --workdir=build -fsynopsys test_bench.vhdl
+
+build/test_bench: build/counter_4.o build/full_adder_1.o build/test_bench.o
+ ghdl elaborate --workdir=build -fsynopsys -o build/test_bench test_bench
+
+.PHONY: all clean
+
+clean:
+ rm -r build