Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include directory structure proposal. #1674

Merged
merged 1 commit into from Mar 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions Makefile.in
Expand Up @@ -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
Expand Down Expand Up @@ -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 {" >> $@
Expand All @@ -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)/
Expand Down
2 changes: 1 addition & 1 deletion src/ghdldrv/ghdlvpi.adb
Expand Up @@ -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";
umarcor marked this conversation as resolved.
Show resolved Hide resolved
end Get_Vpi_Include_Dir;

-- Return the lib directory.
Expand Down
2 changes: 1 addition & 1 deletion src/synth/ghdlsynth.h → src/synth/include/synth.h
Expand Up @@ -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; }
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions 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
Expand Down
6 changes: 3 additions & 3 deletions 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
Expand Down
6 changes: 3 additions & 3 deletions 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

Expand Down