Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile C++ programs in many directories

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Dear everyone, i have some C++ programs distributed say, in
the following directories (eg. /source/A , /source/B,
/source/C ). Now instead of going into individual directory and do a makefile, i wish to write a script that will compile all the programs in the different directories and output all the executables to /Exes directory and while the object files to /Objs directory. Can someone please show me as in how to write for such a script. I am a new in unix and your help will be the most appreciated. Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top