make: config file for library linking

Martin Vcelak <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Aioe.org NNTP Server
Message-ID <[email protected]>
Hello,
I have implemented the Makefile what automatically search the given 
directory and build up the executables (.exe) from the source codes.

%.exe:%.o
	$(CC) $(LIB_FLAG) $< $(TEST_LIB) -o $@  $(STANDART_LIB)

%.o:%.cpp
	$(CC) -c $(CCFLAGS) -I $(INCLUDE_DIR)  $< -o ./$@

Now I would like to add the possibility that for each .cpp file is a 
special config file in the same directory as the .cpp file what 
determines what libraries should be linked to the executable.
Do you have any idea or experiences?
Thank you a lot.
Have a nice day
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.