zapit/debug: remove filename hack with a more elegant one

This commit is contained in:
Stefan Seyfried
2016-01-10 18:33:27 +01:00
parent 949e42445d
commit 2ee9ca5471
5 changed files with 11 additions and 25 deletions

View File

@@ -275,6 +275,12 @@ fi
fi
fi
# hack to define a short filename also for out-of-tree build
if test `dirname $0` = `pwd`; then
HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__file__=__FILE__'
else
HWLIB_CFLAGS="$HWLIB_CFLAGS "'-D__file__="\"$(subst $(srcdir)/,,$(abspath $<))\""'
fi
#
# Check for libtdservicedb - the new one - for testing only
#