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