Recursively include headers in include option for gcc
Hello all,
Is there a way to recursively include all header files in the gcc command
"cc -I ..."
I have a directory with tens of subdirectories, each of which have header files in them. So while compiling a program test.c, I have a very long cc command like
"cc -I /home/dir/subdir1 -I /home/dir/subdir2 -I /home/dir/subdir3 ..... test.c"
If there could be a way to recursively include all header files in a directory, the compilation command would be pretty short in length.
Thanks,
Kshitij
|