diff options
author | crupest <crupest@outlook.com> | 2021-11-09 17:44:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-09 17:44:15 +0800 |
commit | 6b99476d00173fedcb65fcedb418fcfb363f1e07 (patch) | |
tree | 2dce477e84ad9eba44a8622b3f5f3271f1547162 /works/life/computer-organization-experiment/Makefile | |
parent | e6c2aff22fbf338a21e9fbb6dbf1492f607f297d (diff) | |
download | crupest-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/Makefile | 21 |
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 |