bug-make
[Top][All Lists]
Advanced

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

make -f strange behavior


From: Yakunin Vladimir
Subject: make -f strange behavior
Date: Thu, 21 Jun 2012 10:52:30 +0400

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 removing makefile 'aaa' with errors.

I
f 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!

Attachment: aaa
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]