aboutsummaryrefslogtreecommitdiff
path: root/works/life/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
commit6b99476d00173fedcb65fcedb418fcfb363f1e07 (patch)
tree2dce477e84ad9eba44a8622b3f5f3271f1547162 /works/life/computer-organization-experiment/Makefile
parente6c2aff22fbf338a21e9fbb6dbf1492f607f297d (diff)
downloadcrupest-6b99476d00173fedcb65fcedb418fcfb363f1e07.tar.gz
crupest-6b99476d00173fedcb65fcedb418fcfb363f1e07.tar.bz2
crupest-6b99476d00173fedcb65fcedb418fcfb363f1e07.zip
import(life): ...
Diffstat (limited to 'works/life/computer-organization-experiment/Makefile')
-rw-r--r--works/life/computer-organization-experiment/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/works/life/computer-organization-experiment/Makefile b/works/life/computer-organization-experiment/Makefile
new file mode 100644
index 0000000..d44613c
--- /dev/null
+++ b/works/life/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