From 6b99476d00173fedcb65fcedb418fcfb363f1e07 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 9 Nov 2021 17:44:15 +0800 Subject: import(life): ... --- .../life/computer-organization-experiment/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 works/life/computer-organization-experiment/Makefile (limited to 'works/life/computer-organization-experiment/Makefile') 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 -- cgit v1.2.3