diff options
author | MichaĆ Kruszewski <mkru@protonmail.com> | 2021-03-05 19:17:57 +0100 |
---|---|---|
committer | tgingold <tgingold@users.noreply.github.com> | 2021-03-07 21:10:05 +0100 |
commit | 66cd5e0aa897b947533d269535fde4c0852472c2 (patch) | |
tree | eb6bb9932eb604b243aa0b2ba57c9faf1c1db883 | |
parent | 80b41f38598931c14db30232b8b38b12186c156d (diff) | |
download | ghdl-66cd5e0aa897b947533d269535fde4c0852472c2.tar.gz ghdl-66cd5e0aa897b947533d269535fde4c0852472c2.tar.bz2 ghdl-66cd5e0aa897b947533d269535fde4c0852472c2.zip |
Include directory structure proposal.
-rw-r--r-- | Makefile.in | 10 | ||||
-rw-r--r-- | src/ghdldrv/ghdlvpi.adb | 2 | ||||
-rw-r--r-- | src/synth/include/synth.h (renamed from src/synth/ghdlsynth.h) | 2 | ||||
-rw-r--r-- | src/synth/include/synth_gates.h (renamed from src/synth/ghdlsynth_gates.h) | 0 | ||||
-rw-r--r-- | testsuite/gna/issue1226/vpi_plugin.c | 6 | ||||
-rw-r--r-- | testsuite/gna/issue1233/vpi_plugin.c | 6 | ||||
-rw-r--r-- | testsuite/gna/issue1256/vpi_plugin.c | 6 |
7 files changed, 16 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in index a8a1ae68f..9b51ae252 100644 --- a/Makefile.in +++ b/Makefile.in @@ -47,7 +47,7 @@ PWD?=$(shell pwd) DESTDIR= bindir=$(prefix)/bin libdir=$(prefix)/lib -incdir=$(prefix)/include +incdir=$(prefix)/include/ghdl MKDIR=mkdir LN=ln -s CP=cp @@ -433,7 +433,7 @@ libghdl.a: lib/$(libghdl_name) ar rc $@ b~libghdl.o $(LIBGHDL_GRT_OBJS) `sed -e /^-/d < libghdl.bind` grep adalib libghdl.bind | sed -e 's/^-L//' -e 's@adalib/@adalib/libgnat.a@' > libghdl.link -$(srcdir)/src/synth/ghdlsynth_gates.h: $(srcdir)/src/synth/netlists.ads $(srcdir)/src/synth/netlists-gates.ads +$(srcdir)/src/synth/include/synth_gates.h: $(srcdir)/src/synth/netlists.ads $(srcdir)/src/synth/netlists-gates.ads echo "/* DO NOT MODIFY" > $@ echo " This file is automatically generated by Makefile. */" >> $@ echo "enum Module_Id {" >> $@ @@ -448,9 +448,9 @@ all.libghdl.true: lib/$(libghdl_name) libghdl.a all.libghdl.false: all.libghdl: all.libghdl.$(enable_libghdl) -install.libghdl.include: install.dirs $(srcdir)/src/synth/ghdlsynth_gates.h - $(INSTALL_DATA) -p $(srcdir)/src/synth/ghdlsynth.h $(DESTDIR)$(incdir)/ - $(INSTALL_DATA) -p $(srcdir)/src/synth/ghdlsynth_gates.h $(DESTDIR)$(incdir)/ +install.libghdl.include: install.dirs $(srcdir)/src/synth/include/synth_gates.h + $(INSTALL_DATA) -p $(srcdir)/src/synth/include/synth.h $(DESTDIR)$(incdir) + $(INSTALL_DATA) -p $(srcdir)/src/synth/include/synth_gates.h $(DESTDIR)$(incdir) install.libghdl.lib: $(INSTALL_PROGRAM) -p lib/$(libghdl_name) $(DESTDIR)$(libdir)/ diff --git a/src/ghdldrv/ghdlvpi.adb b/src/ghdldrv/ghdlvpi.adb index 35194f3bd..d2b2656cd 100644 --- a/src/ghdldrv/ghdlvpi.adb +++ b/src/ghdldrv/ghdlvpi.adb @@ -37,7 +37,7 @@ package body Ghdlvpi is -- Compute install path Ghdllocal.Set_Exec_Prefix_From_Program_Name; - return Ghdllocal.Exec_Prefix.all & Directory_Separator & "include"; + return Ghdllocal.Exec_Prefix.all & Directory_Separator & "include/ghdl"; end Get_Vpi_Include_Dir; -- Return the lib directory. diff --git a/src/synth/ghdlsynth.h b/src/synth/include/synth.h index b8387bf5a..c89eab7fc 100644 --- a/src/synth/ghdlsynth.h +++ b/src/synth/include/synth.h @@ -95,7 +95,7 @@ namespace GhdlSynth { typedef unsigned int Param_Idx; struct Pval { unsigned int id; }; -#include "ghdlsynth_gates.h" +#include "ghdl/synth_gates.h" struct Module { unsigned int id; }; inline bool is_valid(Module m) { return m.id != 0; } diff --git a/src/synth/ghdlsynth_gates.h b/src/synth/include/synth_gates.h index 78e4a6ef9..78e4a6ef9 100644 --- a/src/synth/ghdlsynth_gates.h +++ b/src/synth/include/synth_gates.h diff --git a/testsuite/gna/issue1226/vpi_plugin.c b/testsuite/gna/issue1226/vpi_plugin.c index acdb79804..b2c6c8dbe 100644 --- a/testsuite/gna/issue1226/vpi_plugin.c +++ b/testsuite/gna/issue1226/vpi_plugin.c @@ -1,6 +1,6 @@ -#include<vpi_user.h> -#include<inttypes.h> -#include<stdio.h> +#include <vpi_user.h> +#include <inttypes.h> +#include <stdio.h> //#define STOP_ITERATION 1000000000 // Initial value #define STOP_ITERATION 10000 diff --git a/testsuite/gna/issue1233/vpi_plugin.c b/testsuite/gna/issue1233/vpi_plugin.c index dbfd0bf20..9a9bd60df 100644 --- a/testsuite/gna/issue1233/vpi_plugin.c +++ b/testsuite/gna/issue1233/vpi_plugin.c @@ -1,6 +1,6 @@ -#include<vpi_user.h> -#include<inttypes.h> -#include<stdio.h> +#include <vpi_user.h> +#include <inttypes.h> +#include <stdio.h> //#define STOP_ITERATION 1000000000 #define STOP_ITERATION 10000 diff --git a/testsuite/gna/issue1256/vpi_plugin.c b/testsuite/gna/issue1256/vpi_plugin.c index 6d365cc82..6771bc7d6 100644 --- a/testsuite/gna/issue1256/vpi_plugin.c +++ b/testsuite/gna/issue1256/vpi_plugin.c @@ -1,6 +1,6 @@ -#include<vpi_user.h> -#include<inttypes.h> -#include<stdio.h> +#include <vpi_user.h> +#include <inttypes.h> +#include <stdio.h> #define STOP_ITERATION 5 |