aboutsummaryrefslogtreecommitdiffstats
path: root/ortho/gcc/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ortho/gcc/Makefile.inc')
-rw-r--r--ortho/gcc/Makefile.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/ortho/gcc/Makefile.inc b/ortho/gcc/Makefile.inc
index 7b810856b..5ce055f63 100644
--- a/ortho/gcc/Makefile.inc
+++ b/ortho/gcc/Makefile.inc
@@ -25,22 +25,21 @@
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
-AGCC_CFLAGS=-g -DIN_GCC $(AGCC_INC_FLAGS)
+AGCC_CFLAGS=-g -Wall -DIN_GCC $(AGCC_INC_FLAGS)
AGCC_LOCAL_OBJS=ortho-lang.o gcc-version.o
AGCC_DEPS := $(AGCC_LOCAL_OBJS)
AGCC_OBJS := $(AGCC_LOCAL_OBJS) \
$(AGCC_GCCOBJ_DIR)/gcc/toplev.o \
- $(AGCC_GCCOBJ_DIR)/gcc/c-convert.o \
$(AGCC_GCCOBJ_DIR)/gcc/libbackend.a \
$(AGCC_GCCOBJ_DIR)/libcpp/libcpp.a \
$(AGCC_GCCOBJ_DIR)/libiberty/libiberty.a
-gcc-version.c: $(AGCC_GCCSRC_DIR)/gcc/version.c
+gcc-version.c: $(AGCC_GCCSRC_DIR)/gcc/BASE-VER
-$(RM) -f $@
echo '#include "version.h"' > $@
- sed -n -e '/version_string/ s/";/ (ghdl)";/p' < $< >> $@
+ echo "const char version_string[] = \""`cat $<` "(ghdl)\";" >> $@
echo 'const char bug_report_url[] = "<URL:http://gna.org/projects/ghdl>";' >> $@
gcc-version.o: gcc-version.c