help-gnu-utils
[Top][All Lists]
Advanced

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

make: config file for library linking


From: Martin Vcelak
Subject: make: config file for library linking
Date: Sun, 02 Mar 2008 10:37:36 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20071210)

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


reply via email to

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