aboutsummaryrefslogtreecommitdiff
path: root/computer-organization-experiment/Makefile
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-17 16:59:04 +0800
committercrupest <crupest@outlook.com>2021-11-17 16:59:04 +0800
commit0b1b43294e8afbf41eefa215b3eb86b81d6b9475 (patch)
tree673c2a907c95095bb871dcdb504496548818039d /computer-organization-experiment/Makefile
parent24eee6c4ec783ddd8b5874cc06980b362be938dc (diff)
downloadlife-0b1b43294e8afbf41eefa215b3eb86b81d6b9475.tar.gz
life-0b1b43294e8afbf41eefa215b3eb86b81d6b9475.tar.bz2
life-0b1b43294e8afbf41eefa215b3eb86b81d6b9475.zip
...
Diffstat (limited to 'computer-organization-experiment/Makefile')
-rw-r--r--computer-organization-experiment/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/computer-organization-experiment/Makefile b/computer-organization-experiment/Makefile
index d44613c..1335118 100644
--- a/computer-organization-experiment/Makefile
+++ b/computer-organization-experiment/Makefile
@@ -1,4 +1,4 @@
-all: build/counter_4.o build/test_bench.o build/full_adder_1.o build/test_bench
+all: build/test_bench
build:
mkdir -p build
@@ -9,10 +9,19 @@ build/counter_4.o: build 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
+build/multiplexer_1_2.o: build multiplexer_1_2.vhdl
+ ghdl analyze --workdir=build -fsynopsys multiplexer_1_2.vhdl
+
+build/multiplexer_8_2.o: build multiplexer_8_2.vhdl
+ ghdl analyze --workdir=build -fsynopsys multiplexer_8_2.vhdl
+
+build/multiplexer_32_2.o: build multiplexer_32_2.vhdl
+ ghdl analyze --workdir=build -fsynopsys multiplexer_32_2.vhdl
+
+build/test_bench.o: build test_bench.vhdl build/counter_4.o build/full_adder_1.o build/multiplexer_1_2.o build/multiplexer_8_2.o build/multiplexer_32_2.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
+build/test_bench: build/test_bench.o
ghdl elaborate --workdir=build -fsynopsys -o build/test_bench test_bench
.PHONY: all clean