Pass the absolute path to the compiler/assembler so that error messages include enough information for an IDE to find the file.

This commit is contained in:
px4dev 2013-01-15 23:03:47 -08:00
parent 854c6436b4
commit ab0459c1f4
1 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ endef
define COMPILE
@echo "CC: $1"
$(Q) $(CC) -c $(CFLAGS) $1 -o $2
$(Q) $(CC) -c $(CFLAGS) $(abspath $1) -o $2
endef
# COMPILEXX - Default macro to compile one C++ file
@ -128,7 +128,7 @@ endef
define COMPILEXX
@echo "CXX: $1"
$(Q) $(CXX) -c $(CXXFLAGS) $1 -o $2
$(Q) $(CXX) -c $(CXXFLAGS) $(abspath $1) -o $2
endef
# ASSEMBLE - Default macro to assemble one assembly language file
@ -149,7 +149,7 @@ endef
define ASSEMBLE
@echo "AS: $1"
$(Q) $(CC) -c $(AFLAGS) $1 -o $2
$(Q) $(CC) -c $(AFLAGS) $(abspath $1) -o $2
endef
# ARCHIVE - Add a list of files to an archive