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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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.88.5 with SMTP id bc5mr1792998pab.11.1344318943345; Mon, 06 Aug 2012 22:55:43 -0700 (PDT) Path: g9ni2621936pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!ctu-peer!news.nctu.edu.tw!goblin1!goblin2!goblin.stu.neva.ru!news.internetdienste.de!news.tu-darmstadt.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Miles Bader Newsgroups: comp.lang.ada Subject: Re: how to tell gnatmake to send executables to a different directory when compiling multi source? Date: Wed, 01 Aug 2012 16:32:41 +0900 Message-ID: <873947cbja.fsf@catnip.gol.com> 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> Mime-Version: 1.0 X-Trace: individual.net Rw6To4cYHmYXP837VRhXnwMEYovuj28B6sCPbgIrPA2qPKpBQ2XzfGUOsr9wrETns4 Cancel-Lock: sha1:kVwQIX6n9vTrYDsFysO6huClJOM= sha1:1Koe9QPH+l5yiFks/+/VejLCEE8= System-Type: x86_64-unknown-linux-gnu Content-Type: text/plain Date: 2012-08-01T16:32:41+09:00 List-Id: "J-P. Rosen" writes: >> 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. > (Disclaimer: I didn't know about that option). > > However, I assume that this works only if the programmer properly used > the appropriate .h files, which is in no way required by C. It assumes nothing about the way .h files are used. It essentially emits the include-file graph in an appropriate format, usable by make. -miles -- I'd rather be consing.