aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/Makefile
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-05-05 13:54:39 +0200
committerTristan Gingold <tgingold@free.fr>2019-05-05 16:03:03 +0200
commit7892c6e7945d5e4b46ddde4f18debe1c06bd3e12 (patch)
tree60b168224aaccf8421858bab2d600c1e4b0592ef /src/vhdl/Makefile
parente4960acab358ebdd76d796554f962e755ec8954c (diff)
downloadghdl-7892c6e7945d5e4b46ddde4f18debe1c06bd3e12.tar.gz
ghdl-7892c6e7945d5e4b46ddde4f18debe1c06bd3e12.tar.bz2
ghdl-7892c6e7945d5e4b46ddde4f18debe1c06bd3e12.zip
vhdl: move nodes to vhdl.nodes_priv.
Diffstat (limited to 'src/vhdl/Makefile')
-rw-r--r--src/vhdl/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/vhdl/Makefile b/src/vhdl/Makefile
index a18d334c6..dc13ff90f 100644
--- a/src/vhdl/Makefile
+++ b/src/vhdl/Makefile
@@ -23,7 +23,7 @@
PNODES=../xtools/pnodes.py
PNODESPY=python/pnodespy.py
-DEPS=iirs.ads nodes.ads $(PNODES)
+DEPS=iirs.ads iirs.adb.in $(PNODES)
GEN_FILES=iirs.adb nodes_meta.ads nodes_meta.adb \
vhdl-elocations.adb vhdl-elocations_meta.ads vhdl-elocations_meta.adb \
@@ -31,6 +31,8 @@ GEN_FILES=iirs.adb nodes_meta.ads nodes_meta.adb \
python/libghdl/std_names.py python/libghdl/tokens.py \
python/libghdl/elocations.py python/libghdl/errorout.py
+NODES_FLAGS=--field-file=iirs.adb.in
+
ELOCATIONS_FLAGS=--node-file=vhdl-elocations.ads \
--field-file=vhdl-elocations.adb.in \
--template-file=vhdl-elocations.adb.in --meta-basename=vhdl-elocations_meta
@@ -39,17 +41,17 @@ all: $(GEN_FILES)
iirs.adb: iirs.adb.in $(DEPS)
$(RM) $@
- $(PNODES) body > $@
+ $(PNODES) $(NODES_FLAGS) body > $@
chmod -w $@
nodes_meta.ads: nodes_meta.ads.in $(DEPS)
$(RM) $@
- $(PNODES) meta_specs > $@
+ $(PNODES) $(NODES_FLAGS) meta_specs > $@
chmod -w $@
nodes_meta.adb: nodes_meta.adb.in $(DEPS)
$(RM) $@
- $(PNODES) meta_body > $@
+ $(PNODES) $(NODES_FLAGS) meta_body > $@
chmod -w $@
vhdl-elocations.adb: vhdl-elocations.adb.in vhdl-elocations.ads $(DEPS)
@@ -69,22 +71,22 @@ vhdl-elocations_meta.adb: vhdl-elocations_meta.adb.in vhdl-elocations.ads $(DEPS
python/libghdl/iirs.py: $(DEPS) $(PNODESPY)
$(RM) $@
- $(PNODESPY) libghdl-iirs > $@
+ $(PNODESPY) $(NODES_FLAGS) libghdl-iirs > $@
chmod -w $@
python/libghdl/nodes_meta.py: $(DEPS) $(PNODESPY)
$(RM) $@
- $(PNODESPY) libghdl-meta > $@
+ $(PNODESPY) $(NODES_FLAGS) libghdl-meta > $@
chmod -w $@
python/libghdl/std_names.py: $(PNODESPY) ../std_names.ads
$(RM) $@
- $(PNODESPY) libghdl-names > $@
+ $(PNODESPY) $(NODES_FLAGS) libghdl-names > $@
chmod -w $@
python/libghdl/tokens.py: $(PNODESPY) vhdl-tokens.ads
$(RM) $@
- $(PNODESPY) libghdl-tokens > $@
+ $(PNODESPY) $(NODES_FLAGS) libghdl-tokens > $@
chmod -w $@
python/libghdl/elocations.py: $(PNODESPY) vhdl-elocations.ads