aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/Makefile.inc
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-07-02 06:05:07 +0200
committerTristan Gingold <tgingold@free.fr>2017-07-02 06:05:07 +0200
commit7cbb32c05ecb54781bf37e0bd424b011fa4b2c58 (patch)
tree451dbaf4a915b299cb5a2d06dbe11b20441d759d /libraries/Makefile.inc
parentb66b6aca18b2a7ce55d88ad3ee0c5aa4c721a3f5 (diff)
downloadghdl-7cbb32c05ecb54781bf37e0bd424b011fa4b2c58.tar.gz
ghdl-7cbb32c05ecb54781bf37e0bd424b011fa4b2c58.tar.bz2
ghdl-7cbb32c05ecb54781bf37e0bd424b011fa4b2c58.zip
Add std_logic_misc to synopsys v08.
For #181
Diffstat (limited to 'libraries/Makefile.inc')
-rw-r--r--libraries/Makefile.inc16
1 files changed, 11 insertions, 5 deletions
diff --git a/libraries/Makefile.inc b/libraries/Makefile.inc
index c19cc2295..8b91a7318 100644
--- a/libraries/Makefile.inc
+++ b/libraries/Makefile.inc
@@ -49,7 +49,9 @@ VITAL2000_BSRCS := vital2000/timing_p.vhdl vital2000/timing_b.vhdl \
SYNOPSYS_BSRCS := synopsys/std_logic_arith.vhdl \
synopsys/std_logic_unsigned.vhdl \
synopsys/std_logic_signed.vhdl
-SYNOPSYS8793_BSRCS := synopsys/std_logic_textio.vhdl synopsys/std_logic_misc.vhdl synopsys/std_logic_misc-body.vhdl
+SYNOPSYS_V_BSRCS := synopsys/std_logic_misc.vhdl \
+ synopsys/std_logic_misc-body.vhdl
+SYNOPSYS8793_BSRCS := synopsys/std_logic_textio.vhdl
MENTOR_BSRCS := mentor/std_logic_arith.vhdl mentor/std_logic_arith_body.vhdl
IEEE08_BSRCS := \
ieee2008/std_logic_1164.vhdl ieee2008/std_logic_1164-body.vhdl \
@@ -72,9 +74,9 @@ STD93_BSRCS := $(STD_SRCS:.vhdl=.v93)
STD08_BSRCS := $(STD_SRCS:.vhdl=.v08) std/env.vhdl std/env_body.vhdl
IEEE87_BSRCS := $(IEEE_SRCS:.vhdl=.v87)
IEEE93_BSRCS := $(IEEE_SRCS:.vhdl=.v93) $(MATH_SRCS)
-SYNOPSYS87_BSRCS := $(SYNOPSYS_BSRCS) $(SYNOPSYS8793_BSRCS)
-SYNOPSYS93_BSRCS := $(SYNOPSYS_BSRCS) $(SYNOPSYS8793_BSRCS)
-SYNOPSYS08_BSRCS := $(SYNOPSYS_BSRCS)
+SYNOPSYS87_BSRCS := $(SYNOPSYS_BSRCS) $(SYNOPSYS_V_BSRCS) $(SYNOPSYS8793_BSRCS)
+SYNOPSYS93_BSRCS := $(SYNOPSYS_BSRCS) $(SYNOPSYS_V_BSRCS) $(SYNOPSYS8793_BSRCS)
+SYNOPSYS08_BSRCS := $(SYNOPSYS_BSRCS) $(SYNOPSYS_V_BSRCS:.vhdl=.v08)
MENTOR93_BSRCS := $(MENTOR_BSRCS)
.PREFIXES: .vhdl .v93 .v87 .v08
@@ -85,7 +87,8 @@ SED_V93:= sed -e '/--V87/s/^/ --/' \
SED_V87:= sed -e '/--!V87/s/^/ --/' -e '/--START-!V87/,/--END-!V87/s/^/--/' \
-e '/--START-V08/,/--END-V08/s/^/--/'
-SED_V08:= sed -e '/--V87/s/^/ --/'
+SED_V08:= sed -e '/--V87/s/^/ --/' -e '/--!V08/s/^/ --/' \
+ -e '/--START-!V08/,/--END-!V08/s/^/--/'
LIB87_DIR:=$(LIBDST_DIR)/v87
STD87_DIR:=$(LIB87_DIR)/std
@@ -289,6 +292,9 @@ $(IEEE08_DIR)/ieee-obj08.cf: $(ANALYZE_DEP) $(IEEE08_SRCS) $(STD08_DIR)/std-obj0
echo $$cmd; eval $$cmd || exit 1; \
done
+$(LIBDST_DIR)/src/synopsys/%.v08: $(LIBSRC_DIR)/synopsys/%.vhdl
+ $(SED_V08) < $< > $@
+
synopsys.v08: $(SYN08_DIR)/ieee-obj08.cf
$(SYN08_DIR)/ieee-obj08.cf: $(ANALYZE_DEP) $(SYNOPSYS08_SRCS) $(IEEE08_DIR)/ieee-obj08.cf