Okay !
Let me put it in this way:
Assume I am running the
Makefile from the "/home" folder:
Code:
.c.o:
$(CC) -c -dg $< -o $@ \ -------> here I am compiling my /home/user/file1.c file with -dg option which generates file1.c.100.dg
2>&1
-$(MV) -f *.dg $(DEBUG_PATH)/ 2>/dev/null
So, the /home/user/file1.c executes and generates the ".o" file at /home/user/file1.o. But, the file1.c.100.dg file generates at "/home/" as /home/file1.c.100.dg along with some other files also
The above process continues for all the files file1.c,file2.c,...etc.
Now, I want to secure these *.c.100.dg files in a separate folder.