Line 3... |
Line 3... |
# Tool-specific Makefile for the GHDL compiler.
|
# Tool-specific Makefile for the GHDL compiler.
|
#
|
#
|
# It sets all variables needed for VHDL code compilation with Makefile.hier.
|
# It sets all variables needed for VHDL code compilation with Makefile.hier.
|
#
|
#
|
#
|
#
|
# Copyright (c) 2004, Arnim Laeuger (arniml@opencores.org)
|
# Copyright (c) 2004-2006 Arnim Laeuger (arniml@opencores.org)
|
#
|
#
|
# All rights reserved
|
# All rights reserved
|
#
|
#
|
##############################################################################
|
##############################################################################
|
|
|
Line 24... |
Line 24... |
CLEAN = ghdl --clean --std=87 --workdir=$(LIB_WORK); \
|
CLEAN = ghdl --clean --std=87 --workdir=$(LIB_WORK); \
|
rm -f tb_*_c0 *.gcno *.gcda *.gcov UNUSED
|
rm -f tb_*_c0 *.gcno *.gcda *.gcov UNUSED
|
|
|
ANALYZE = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)
|
ANALYZE = ghdl -a --std=87 --workdir=$(LIB_WORK) $(GCOV)
|
|
|
ELABORATE = ghdl -e --std=87 --workdir=$(LIB_WORK) $(GCOV_LINK)
|
ELABORATE = ghdl -e -Wl,-s --std=87 --workdir=$(LIB_WORK) $(GCOV_LINK)
|
|
|
MAKE_LIB = mkdir -p $(LIB_WORK)
|
MAKE_LIB = mkdir -p $(LIB_WORK)
|
|
|
|
|
##############################################################################
|
##############################################################################
|
Line 125... |
Line 125... |
|
|
##############################################################################
|
##############################################################################
|
# Tool-specific elaboration rules
|
# Tool-specific elaboration rules
|
#
|
#
|
$(tb_elab) : $(tb_behav_c0)
|
$(tb_elab) : $(tb_behav_c0)
|
$(ELABORATE) tb_behav_c0; \
|
$(ELABORATE) tb_behav_c0
|
strip tb_behav_c0
|
|
|
|
$(tb_t8048_elab) : $(tb_t8048_behav_c0)
|
$(tb_t8048_elab) : $(tb_t8048_behav_c0)
|
$(ELABORATE) tb_t8048_behav_c0; \
|
$(ELABORATE) tb_t8048_behav_c0
|
strip tb_t8048_behav_c0
|
|
|
|
$(tb_t8039_elab) : $(tb_t8039_behav_c0)
|
$(tb_t8039_elab) : $(tb_t8039_behav_c0)
|
$(ELABORATE) tb_t8039_behav_c0; \
|
$(ELABORATE) tb_t8039_behav_c0
|
strip tb_t8039_behav_c0
|
|
|
|
.PHONY: elaborate
|
.PHONY: elaborate
|
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab)
|
elaborate: $(LIB_WORK) $(tb_elab) $(tb_t8048_elab) $(tb_t8039_elab)
|
#
|
#
|
##############################################################################
|
##############################################################################
|