- added GHDL make stuff
git-svn-id: http://moon:8086/svn/vhdl/trunk@1387 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# 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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user