makefiles in a directory and subdirectories | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

makefiles in a directory and subdirectories

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-28-2005
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:37 PM
Copying subdirectories of a directory to some other directory and renaming them sholay Shell Programming and Scripting 8 06-29-2010 07:28 PM
Find directory name while traversing subdirectories arun_maffy Shell Programming and Scripting 12 05-04-2010 09:01 PM
search files in a directory and its subdirectories Net-Man Shell Programming and Scripting 1 09-04-2008 09:25 PM
How Can I Make Subdirectories In A Directory? kprescod4158 Shell Programming and Scripting 7 12-04-2007 08:15 PM



All times are GMT -4. The time now is 07:09 PM.