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.205.123.140 with SMTP id gk12mr1084396bkc.1.1335499734703; Thu, 26 Apr 2012 21:08:54 -0700 (PDT) Path: h15ni170181bkw.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: Thu, 26 Apr 2012 21:07:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <22488837.1024.1335499629707.JavaMail.geo-discussion-forums@yncd3> 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 1335499734 8900 127.0.0.1 (27 Apr 2012 04:08:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Apr 2012 04:08:54 +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 Content-Transfer-Encoding: quoted-printable Date: 2012-04-26T21:07:09-07:00 List-Id: > I'd have given up on gpr and kept the makefile, since it's simpler (and > better documented); why are you bothering with the gpr file? I did not find a way of using the makefiles properly in GPS without having = to configure the Build>Settings>Targets Compile/Build options and without m= essing up my OS configurations on other GPS projects (with other cross-comp= ilers, etc); but actually I did not look for it harder. Running the makefil= es from command-line or emacs is no problem, but I like to code using GPS s= tuffs, so I found that .gpr configs are easier (however the documentation d= oes not help so much).=20 > Here's what I use to run 'auto_text_io', which is similar. First, > auto_text_io.xml, in /share/gprconfig: >=20 > > > > > Auto_Text_IO > auto_text_io > Auto_Text_IO > > auto_text_io -? > > > > > ${PREFIX}gcc -dumpmachine > > > >=20 > > > > > > 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"; > > > >=20 >=20 > Then a gpr file sal_text_io.gpr: >=20 > 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; >=20 > and a makefile rule to run it: >=20 > text_io : > gprbuild -p -k --autoconf=3D../auto/auto.cgpr --target=3Dx86-windows -Ps= al_text_io.gpr=20 >=20 > Your application should be similar. Thanks again. I will try it.