I have 2 directories (../src/dir_a and ../src/dir_b) each with its own .cpp files.
I have written the following foreach function, but the problem is it is reading the .cpp files from both directories, dir_a and dir_b, to create libdir.a. Is there a way I can rewrite dirs (without hard-coding the directory names) so I can create 2 separate libraries for source files from each directory.
thx for your response kfmfe04.
so, basically, if I have 5 directories and want to create individual libraries, I'll have to hard code the libdir.a into 5 different libdir.a targets, right...