Unix/Linux Go Back    

UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

makefiles in a directory and subdirectories

UNIX for Dummies Questions & Answers

Thread Tools Search this Thread Display Modes
Old Unix and Linux 10-28-2005   -   Original Discussion by benjie_asu
benjie_asu benjie_asu is offline
Registered User
Join Date: Oct 2005
Last Activity: 12 January 2006, 2:40 PM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
makefiles in a directory and subdirectories

I need to develop a makefile that spans across directories. For example, let's say i have an upper level directory (main) and about 2 subdirectories. I want my .cpp files and .o files to be in one subdirectory. I want my .a files to be in the other subdirectory. The .a files are made up of the .o files in the other subdirectory. Does anyone know how to do the makefiles for this? I can have a makefile at each subdirectory and then one in the upper level directory. I would like to use VPATH for this is possible. Sorry if this is confusing, I am rather new to Linux. Thanks
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
recursive copy into a directory and all its subdirectories... EinsteinMcfly UNIX for Dummies Questions & Answers 3 03-09-2012 02:37 PM
Copying subdirectories of a directory to some other directory and renaming them sholay Shell Programming and Scripting 8 06-29-2010 08:28 PM
Find directory name while traversing subdirectories arun_maffy Shell Programming and Scripting 12 05-04-2010 10:01 PM
search files in a directory and its subdirectories Net-Man Shell Programming and Scripting 1 09-04-2008 10:25 PM
How Can I Make Subdirectories In A Directory? kprescod4158 Shell Programming and Scripting 7 12-04-2007 09:15 PM

All times are GMT -4. The time now is 06:53 PM.