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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4e7df01d3b597a03 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.230.98 with SMTP id sx2mr10502515pbc.1.1335755426341; Sun, 29 Apr 2012 20:10:26 -0700 (PDT) Path: r9ni114298pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Re: Converting a simple makefile in a GPS project. Date: Sun, 29 Apr 2012 19:43:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: <19271184.2911.1335753812931.JavaMail.geo-discussion-forums@ynjj16> References: <428617.3.1334627550218.JavaMail.geo-discussion-forums@ynnn9> <82bompjjcc.fsf@stephe-leake.org> <20445554.1190.1335148453769.JavaMail.geo-discussion-forums@ynbi5> <82ty09gw8s.fsf@stephe-leake.org> NNTP-Posting-Host: 177.9.195.252 Mime-Version: 1.0 X-Trace: posting.google.com 1335755426 7353 127.0.0.1 (30 Apr 2012 03:10:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 30 Apr 2012 03:10:26 +0000 (UTC) In-Reply-To: <82ty09gw8s.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=177.9.195.252; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-04-29T19:43:32-07:00 List-Id: > Here's what I use to run 'auto_text_io', which is similar. First, > auto_text_io.xml, in /share/gprconfig: > > > > > > Auto_Text_IO > auto_text_io > Auto_Text_IO > > auto_text_io -? > > > > > ${PREFIX}gcc -dumpmachine > > > > > > > > > > package Compiler is > for Driver ("Auto_Text_IO") use "${PATH}auto_text_io"; > for Include_Path ("Auto_Text_IO") use "ADA_INCLUDE_PATH"; > for Required_Switches ("Auto_Text_IO") use ("-f"); > for Dependency_Switches ("Auto_Text_IO") use ("-M"); > end Compiler; > package Naming is > for Body_Suffix ("Auto_Text_IO") use ".ads"; > end Naming; > for Inherit_Source_Path ("Auto_Text_IO") use ("Ada"); > for Object_Generated ("Auto_Text_IO") use "false"; > > > > > > Then a gpr file sal_text_io.gpr: > > project SAL_Text_IO is > for Languages use ("Auto_Text_IO"); > for Source_Dirs use > ("../Source_Common"); > for Object_Dir use "auto"; > for Source_Files use > ("sal-gen_math-gen_den_hart.ads", > "sal-gen_math-gen_dof_2.ads", > "sal-gen_math-gen_dof_3.ads", > "sal-gen_math-gen_dof_6.ads", > "sal-gen_math-gen_manipulator.ads", > "sal-gen_math-gen_polynomials.ads", > "sal-gen_math-gen_scalar.ads", > "sal-interfaces_more.ads", > "sal-time_conversions.ads"); > end SAL_Text_IO; > > and a makefile rule to run it: > > text_io : > gprbuild -p -k --autoconf=../auto/auto.cgpr --target=x86-windows -Psal_text_io.gpr > > Your application should be similar. Someone also suggested me this week adding a new menu in GPS, something like http://www.univ-orleans.fr/sciences/info/ressources/webada/doc/Gps/Adding-new-menus.html. It looks easy too. Regards.