diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-08 15:19:37 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-08 22:02:28 -0600 |
commit | 62a63f69a89fae13c9a0455b5d9e7cddbc06456f (patch) | |
tree | 4583eefdddbd4b4adc22efdb629c83e374340f30 /Makefile | |
parent | 06089575a8624e6080094a02758dbf724b2fe819 (diff) |
Move waves into new subdirectory
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -3,7 +3,8 @@ IVFLAGS := -g2005-sv SIM_SRCS := $(wildcard *_tb.v) SIMS := $(SIM_SRCS:.v=.sim) -WAVES := $(SIM_SRCS:.v=.vcd) +WAVES := $(addprefix waves/,$(SIM_SRCS:.v=.vcd)) +DIRS := waves DEPS = $(sort $(1) $(foreach d,$(1),$(DEPS-$(d)))) DEPS-alu := $(call DEPS,shifter) @@ -17,9 +18,13 @@ all: simulate simulate: $(WAVES) clean: - rm -f $(SIMS) $(WAVES) + rm -f $(SIMS) + rm -rf $(DIRS) -%.vcd: %.sim +$(DIRS): + mkdir -p $@ + +waves/%.vcd: %.sim | waves vvp $< .SECONDEXPANSION: |