Files
vhdl/Common/make/ghdl.mk
T
jens 88975a56a0 - added GHDL make stuff
git-svn-id: http://moon:8086/svn/vhdl/trunk@1387 cc03376c-175c-47c8-b038-4cd826a8556b
2021-03-19 11:05:04 +00:00

29 lines
460 B
Makefile

# NAME
# BUILD_DIR
# SRCS
# ENTITY_RUN
all: analyze
$(BUILD_DIR):
mkdir -p $@
analyze: $(BUILD_DIR) $(SRCS)
ghdl -a --work=$(NAME) --workdir=$(BUILD_DIR) $(SRCS)
run: analyze
-ghdl -r --work=$(NAME) --workdir=$(BUILD_DIR) $(ENTITY_RUN) --wave=$(BUILD_DIR)/$(NAME).ghw --assert-level=error >$(BUILD_DIR)/$(NAME).log
sim: run
exec gtkwave -f $(BUILD_DIR)/$(NAME).ghw &
clean:
rm -f $(BUILD_DIR)/$(NAME)*.cf
mrproper:
rm -rf $(BUILD_DIR)