summaryrefslogtreecommitdiff
path: root/ortho/gcc
diff options
context:
space:
mode:
authorTristan Gingold2014-11-02 06:30:15 +0100
committerTristan Gingold2014-11-02 06:30:15 +0100
commit77dadd243e9ec21f9f60473291f2cf8d1fdcf289 (patch)
treeeac5c54290b531c55144ede598f1d0d8c73c6e86 /ortho/gcc
parent0490ec633ec8c32e91b4c8e8379570ceddadbb2a (diff)
downloadghdl-77dadd243e9ec21f9f60473291f2cf8d1fdcf289.tar.gz
ghdl-77dadd243e9ec21f9f60473291f2cf8d1fdcf289.tar.bz2
ghdl-77dadd243e9ec21f9f60473291f2cf8d1fdcf289.zip
Remove ortho/gcc/Makefile.inc and adjust.
Diffstat (limited to 'ortho/gcc')
-rw-r--r--ortho/gcc/Makefile30
1 files changed, 25 insertions, 5 deletions
diff --git a/ortho/gcc/Makefile b/ortho/gcc/Makefile
index 36ff842..5aafb31 100644
--- a/ortho/gcc/Makefile
+++ b/ortho/gcc/Makefile
@@ -11,8 +11,8 @@ COMPILER=$(CXX)
LINKER=$(CXX)
# Modify AGCC_GCCSRC_DIR and AGCC_GCCOBJ_DIR for your environment
-AGCC_GCCSRC_DIR:=$(HOME)/Projects/gcc4.8.2/source/gcc-4.8.2/
-AGCC_GCCOBJ_DIR:=$(HOME)/Projects/gcc4.8.2/build/
+AGCC_GCCSRC_DIR:=$(HOME)/Projects/gcc4.9.2/source/gcc-4.9.2/
+AGCC_GCCOBJ_DIR:=$(HOME)/Projects/gcc4.9.2/build/
# Supplied by main GCC Makefile, copied here for compatibility with same
GMPLIBS = -L$(AGCC_GCCOBJ_DIR)./gmp/.libs -L$(AGCC_GCCOBJ_DIR)./mpfr/.libs \
@@ -30,9 +30,26 @@ ZLIB=-lz
all: $(ortho_exec)
ORTHO_BASENAME=ortho_gcc
-include $(orthobe_srcdir)/Makefile.inc
include $(ortho_srcdir)/Makefile.inc
+AGCC_INC_FLAGS=-I$(AGCC_GCCOBJ_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/include \
+ -I$(AGCC_GCCSRC_DIR)/gcc -I$(AGCC_GCCSRC_DIR)/gcc/config \
+ -I$(AGCC_GCCSRC_DIR)/libcpp/include $(GMPINC)
+AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS)
+
+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_LOCAL_OBJS=ortho-lang.o
+
+AGCC_DEPS := $(AGCC_LOCAL_OBJS)
+AGCC_OBJS := $(AGCC_LOCAL_OBJS) \
+ $(AGCC_GCCOBJ_DIR)gcc/attribs.o \
+ $(AGCC_GCCOBJ_DIR)libcpp/libcpp.a \
+ $(AGCC_GCCOBJ_DIR)libiberty/libiberty.a
+
LIBBACKTRACE = $(AGCC_GCCOBJ_DIR)/libbacktrace/.libs/libbacktrace.a
LIBDECNUMBER = $(AGCC_GCCOBJ_DIR)/libdecnumber/libdecnumber.a
LIBIBERTY = $(AGCC_GCCOBJ_DIR)/libiberty/libiberty.a
@@ -53,6 +70,10 @@ $(ortho_exec): $(AGCC_DEPS) $(orthobe_srcdir)/ortho_gcc.ads force
-bargs -E -largs --LINK=$(LINKER) $(AGCC_OBJS) \
$(BACKEND) $(LIBS) $(BACKENDLIBS)
+agcc-clean: force
+ $(RM) -f $(agcc_objdir)/*.o
+ $(RM) -f $(agcc_srcdir)/*~
+
clean: agcc-clean
$(RM) -f *.o *.ali ortho_nodes-main
$(RM) b~*.ad? *~
@@ -62,5 +83,4 @@ distclean: clean agcc-clean
force:
-.PHONY: force all clean
-
+.PHONY: force all clean agcc-clean