From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,163994d4f34e92d0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.77.3 with SMTP id o3mr1472544paw.13.1344319700398; Mon, 06 Aug 2012 23:08:20 -0700 (PDT) Path: p10ni2688793pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: how to tell gnatmake to send executables to a different directory when compiling multi source? Date: Mon, 30 Jul 2012 08:03:37 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <214bbd15-f7cb-4710-a6a7-64f37923bf4e@googlegroups.com> <87wr1moexq.fsf@ludovic-brenta.org> <87sjcaoa08.fsf@ludovic-brenta.org> <50167d29$0$6570$9b4e6d93@newsspool4.arcor-online.net> Reply-To: nma@12000.org NNTP-Posting-Host: 9ii5QNw33OfeoTzEH8w9ug.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-07-30T08:03:37-05:00 List-Id: On 7/30/2012 7:25 AM, Georg Bauhaus wrote: > . Changes in the C world > require programmers who know both C and the dependency graph of > the entire software. hi; I do not know if this is what you refer to or not, but gcc can generate, _automatically_, a dependency file (.d extension) using the gcc -M flag. Then this .d file is included into the Makefile, in the fly, and hence used by Make to know the current dependency. So, this step is automated, and programmers do not need to know the dependency graph of the entire software really. Here is a link that describes this and more , called "Advanced Auto-Dependency Generation" http://make.paulandlesley.org/autodep.html The point is, there are ways to build this dependency automatically in the C world. (ofcurse, the Ada way, with gnatmake is so much simpler and easier, since this is all part of the language itself and not part of the build 'tools', but if one is using C and C++ then there ways to do this). --Nasser