summaryrefslogtreecommitdiff
path: root/translate/gcc/Make-lang.in
diff options
context:
space:
mode:
authorTristan Gingold2014-11-02 06:30:15 +0100
committerTristan Gingold2014-11-02 06:30:15 +0100
commit77dadd243e9ec21f9f60473291f2cf8d1fdcf289 (patch)
treeeac5c54290b531c55144ede598f1d0d8c73c6e86 /translate/gcc/Make-lang.in
parent0490ec633ec8c32e91b4c8e8379570ceddadbb2a (diff)
downloadghdl-77dadd243e9ec21f9f60473291f2cf8d1fdcf289.tar.gz
ghdl-77dadd243e9ec21f9f60473291f2cf8d1fdcf289.tar.bz2
ghdl-77dadd243e9ec21f9f60473291f2cf8d1fdcf289.zip
Remove ortho/gcc/Makefile.inc and adjust.
Diffstat (limited to 'translate/gcc/Make-lang.in')
-rw-r--r--translate/gcc/Make-lang.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/translate/gcc/Make-lang.in b/translate/gcc/Make-lang.in
index f3d5f98..310f01a 100644
--- a/translate/gcc/Make-lang.in
+++ b/translate/gcc/Make-lang.in
@@ -62,25 +62,24 @@ vhdl VHDL: ghdl1$(exeext) ghdl$(exeext) ghdllib
# Tell GNU Make to ignore these, if they exist.
.PHONY: vhdl VHDL ghdllib
-agcc_srcdir=$(srcdir)/vhdl
-agcc_objdir=.
+#ortho-lang.o: $(agcc_srcdir)/ortho-lang.c \
+# $(AGCC_GCCOBJ_DIR)gcc/gtype-vhdl.h \
+# $(AGCC_GCCOBJ_DIR)gcc/gt-vhdl-ortho-lang.h
+# $(COMPILER) -c -o $@ $< $(AGCC_CFLAGS) $(INCLUDES)
-AGCC_GCCSRC_DIR=$(srcdir)/..
-AGCC_GCCOBJ_DIR=../
-
-####gcc Makefile.inc
+GHDL1_OBJS = attribs.o vhdl/ortho-lang.o
# The compiler proper.
# It is compiled into the vhdl/ subdirectory to avoid file name clashes but
# linked in in gcc directory to be able to access to gcc object files.
-ghdl1$(exeext): $(AGCC_OBJS) $(AGCC_DEPS) force $(BACKEND) $(LIBDEPS)
+ghdl1$(exeext): force $(GHDL1_OBJS) $(BACKEND) $(LIBDEPS)
CURDIR=`pwd`; cd $(srcdir)/vhdl; VHDLSRCDIR=`pwd`; cd $$CURDIR/vhdl; \
$(GNATMAKE) -c -aI$$VHDLSRCDIR ortho_gcc-main \
-cargs $(CFLAGS) $(GHDL_ADAFLAGS)
$(GNATMAKE) -o $@ -aI$(srcdir)/vhdl -aOvhdl ortho_gcc-main \
-bargs -E -cargs $(CFLAGS) $(GHDL_ADAFLAGS) \
- -largs $(AGCC_OBJS) $(filter-out main.o,$(BACKEND)) \
- $(LIBS) $(BACKENDLIBS) -lstdc++
+ -largs --LINK=$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) $(GHDL1_OBJS) \
+ $(filter-out main.o,$(BACKEND)) $(LIBS) $(BACKENDLIBS)
# The driver for ghdl.
ghdl$(exeext): force
@@ -159,7 +158,8 @@ vhdl.uninstall:
vhdl.mostlyclean:
-$(RM) vhdl/*$(objext) vhdl/*.ali vhdl/b_*.c
-vhdl.clean: agcc-clean
+vhdl.clean:
+ -$(RM) vhdl/*$(objext)
vhdl.distclean:
-$(RM) vhdl/Makefile
-$(RM) ghdl$(exeext)