aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-01-31 06:07:14 +0100
committerTristan Gingold <tgingold@free.fr>2017-01-31 20:22:09 +0100
commite7f093ccdfa452806172e12af3167bc84f571026 (patch)
treeb34d5b1391595c990ba1cb9e841820797e91e24b /Makefile.in
parentb5009c3026b295d91ed5fc3d8682c700b67db4ab (diff)
downloadghdl-e7f093ccdfa452806172e12af3167bc84f571026.tar.gz
ghdl-e7f093ccdfa452806172e12af3167bc84f571026.tar.bz2
ghdl-e7f093ccdfa452806172e12af3167bc84f571026.zip
Add ghdlsynth in ghdl_simul
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in17
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 4674d1625..ac61815cf 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -267,10 +267,10 @@ install.llvm: install.llvm.program install.vhdllib install.grt install.vpi
################ For simul (no code generation, interpretation) ##########
-GHDL_SIMUL_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/ghdldrv -aI$(srcdir)/src/vhdl/simulate -aI$(srcdir)/src/grt
+GHDL_SIMUL_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/ghdldrv -aI$(srcdir)/src/vhdl/simulate -aI$(srcdir)/src/synth -aI$(srcdir)/src/grt
ghdl_simul$(EXEEXT): $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) version.ads force
- $(GNATMAKE) $(GHDL_SIMUL_INCFLAGS) $(GNATFLAGS) ghdl_simul $(GNAT_BARGS) -largs $(GNAT_LARGS) $(GRT_ADD_OBJS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB))
+ $(GNATMAKE) $(GHDL_SIMUL_INCFLAGS) $(GNATFLAGS) -gnat12 ghdl_simul $(GNAT_BARGS) -largs $(GNAT_LARGS) $(GRT_ADD_OBJS) $(subst @,$(GRTSRCDIR),$(GRT_EXTRA_LIB))
libs.vhdl.simul: ghdl_simul$(EXEEXT)
$(MAKE) GHDL=$(PWD)/ghdl_simul$(EXEEXT) vhdl.libs.all
@@ -287,6 +287,19 @@ libmhdlsimvhdl.a: $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) version.ads force
$(RM) -f $@
ar rc $@ b~mhdlsim.o `cat mhdlsim.files` $(GRT_ADD_OBJS)
+################ ghdlsynth library ######################################
+
+GHDL_SYNTHLIB_INCFLAGS=$(GHDL_COMMON_INCFLAGS) -aI$(srcdir)/src/synth -aI$(srcdir)/src/ghdldrv -aI$(srcdir)/src/vhdl/simulate -aI$(srcdir)/src/grt
+
+libghdlsynth.a: $(GRT_ADD_OBJS) $(GRT_SRC_DEPS) version.ads force
+ $(GNATMAKE) -c libghdlsynth $(GNATFLAGS) -gnat12 $(GHDL_SYNTHLIB_INCFLAGS)
+ gnatbind -Llibghdlsynth_ libghdlsynth.ali -O > ghdlsynth.files
+# Extract link options, be sure to link statically with libgnat
+ gnatbind -Llibghdlsynth_ libghdlsynth.ali -K -Z | sed -e '\@adalib/$$@s/-L//' -e '\@adalib/@s@adalib/@adalib/libgnat.a@' -e '/-lgnat/d' > ghdlsynth.link
+ $(GNATMAKE) -c b~libghdlsynth.adb
+ $(RM) -f $@
+ ar rc $@ b~libghdlsynth.o `cat ghdlsynth.files` $(GRT_ADD_OBJS)
+
################ ghwdump #################################################
GHWDUMP_OBJS=ghwdump.o ghwlib.o