aboutsummaryrefslogtreecommitdiff
path: root/works/life/computer-organization-experiment/Makefile
diff options
context:
space:
mode:
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