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/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/works/life/computer-organization-experiment/Makefile b/works/life/computer-organization-experiment/Makefile
index fe68a53..0b4db7f 100644
--- a/works/life/computer-organization-experiment/Makefile
+++ b/works/life/computer-organization-experiment/Makefile
@@ -1,5 +1,8 @@
-build/cpu.o: build
- ghdl analyze --std=08 --workdir=build -fsynopsys cpu.vhdl
+build/cpu_test_bench: build/cpu.o
+ ghdl elaborate -g --std=08 --workdir=build -fsynopsys -o build/cpu_test_bench cpu_test_bench
+
+build/cpu.o: build cpu.vhdl
+ ghdl analyze -g --std=08 --workdir=build -fsynopsys cpu.vhdl
all: build/test_bench