make gcc error reporting better readable

Originally, gcc would report that error is present on line 5432
in allsrc.cpp. This would not help much. We can use gcc preprocessor
marks to make it report line number of original file together with
its file name.
This commit is contained in:
mihlit@mihlit.cz
2012-03-03 09:07:20 +00:00
parent e5a949334d
commit ab6f9108b0
+2 -1
View File
@@ -742,7 +742,8 @@ extcoff: $(TARGET).elf
# Concatenate all sources files in one big file to optimize size
allsrc: $(CPPSRC)
cat $(CPPSRC) > allsrc.cpp
@echo -n > allsrc.cpp
for f in $(CPPSRC); do echo "# 1 \"$$f\"" >> allsrc.cpp; cat "$$f" >> allsrc.cpp; done
remallsrc:
$(REMOVE) allsrc.cpp