make command outputs wrong relative path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Here is my Makefile hierarchy:
./Makefile
./src/Makefile
./test/Makefile

# cat ./Makefile
DIRS=src test
all: config.mk
      @echo Compiling for \'$(ARCH)\' target
      @set -e; for d in $(DIRS); do $(MAKE) -C $$d $@; done

# make --version
GNU Make 3.81

# make
make[1]: Entering directory `/root/projects/dpthread-my-bak/src'
gcc -O2 -Wall -g -D_GNU_SOURCE -march=i686
-I/root/projects/dpthread-my-bak/include -D_REENTRANT -g -D__USE_GNU
-I/usr/local/include -I../include -I. -c dpthread.c
dpthread.c: In function ‘DBG’:
dpthread.c:49: warning: unused variable ‘out’
dpthread.c: In function ‘det_lock’:
dpthread.c:102: warning: unused variable ‘clock’
dpthread.c:101: warning: unused variable ‘lret’
dpthread.c: In function ‘det_join’:
dpthread.c:130: warning: ‘ret’ is used uninitialized in this function
make[1]:Leaving directory `/root/projects/dpthread-my-bak/src'
...............

file dpthread.c is in path src/, on my other FC11, make command
outputs : src/dpthread.c.
But on this Ubuntu10.04 OS, make command outputs: dpthread.c. There is
no relative path output.
The relative path is needed for jumping through warning/error outputs
to the real warning/error location.
However , without right relative path, I cannot jump efficiently.

Could u help me to fix this???

Thanks.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux