From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15479 invoked by alias); 20 Jul 2006 16:31:26 -0000 Received: (qmail 15471 invoked by uid 22791); 20 Jul 2006 16:31:26 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s21.bay0.hotmail.com (HELO bay0-omc3-s21.bay0.hotmail.com) (65.54.246.221) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Jul 2006 16:31:23 +0000 Received: from hotmail.com ([207.46.10.84]) by bay0-omc3-s21.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Jul 2006 09:31:22 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 20 Jul 2006 09:31:21 -0700 Message-ID: Received: from 207.46.10.123 by by121fd.bay121.hotmail.msn.com with HTTP; Thu, 20 Jul 2006 16:31:18 GMT X-Sender: parikshatdubey@hotmail.com From: "Parikshat Dubey" To: gcc-help@gcc.gnu.org Bcc: Subject: MakeFile Issue Date: Thu, 20 Jul 2006 16:31:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00271.txt.bz2 Hi all! i am writing makefile for whole project.I am stuck with one problem.I hope i will get some assistance from you as i got it before also.The problem goes like this: I have toplevel folder project which contains 20 subdirectories(modules).Project Folder also contains Makefilke which will use all the source files and headers in each of the subdirectory or module to produce object files and then integrating all these object files to produce final target or exe.each module contains source files and header files respective to that module.The problem which i was getting is to how i mention the source files and header files containing in subdirectory 1 or for that matter in subdirectory 2 and so on in toplevel directory. Note1: I donot want to create a makefile for each module.Instead i want to make only one Makefile which will take all the source files and header files from the respective modules. Note2: I want to know how i can mention in top level makefile the source files from subdirectory1 or subdirectory 2 so as it can take source files from the respective subdirectories and produce respective targets obviously objectfiles. and how i can mention the object files from the respective folders if it produces so. Project Folder contains a)20 subdirectories(modules)Each subdirectory is a module and contains source and header files pretaining to that module.The source file in all these modules doesnot contain main function.There is only one main function in main.c which is containing in top level folder project. b)MakeFile c)main.c which contains main() function Thanks & Regards Parikshat Dubey _________________________________________________________________ How good are you in a Formula One car? Play now http://server1.msn.co.in/sp05/tataracing/onlinegame.asp