Skip to content

Commit

Permalink
Include directory structure proposal.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kru committed Mar 7, 2021
1 parent 80b41f3 commit 5ff7803
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
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";
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

0 comments on commit 5ff7803

Please sign in to comment.