opensubscriber
   Find in this group all groups
 
Unknown more information…

b : bug-make@gnu.org 21 June 2012 • 2:52PM -0400

make -f strange behavior
by Yakunin Vladimir

REPLY TO AUTHOR
 
REPLY TO GROUP




Not shure that this is bug, but this behavior looks strange. Couldn`t
find anything
about it, so write here.

If you try to compile the shared library 'aaa.so' (or several libs) with
makefile 'aaa' like:
all: aaa.so
aaa.so: aaa.o
...
aaa.o: aaa.cpp
...
, and execute "make -f aaa" - after the compilation of the first rule
(aaa.cpp->aaa.o) make executes instruction "g++ aaa.o -o aaa", thus
removingmakefile 'aaa' with
errors.

If you rename the 'aaa' makefile to the 'Makefile' and execute "make" or "make
-f Makefile" (or rename it to any other name, differs from 'aaa') - all
compiles without any problems.

Full makefile attached.

Thanks anyway!

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.