comp.lang.ada
 help / color / mirror / Atom feed
* [GNAT] Project manager and C source files
@ 2004-05-06 16:15 Florian Weimer
  2004-05-06 18:15 ` Martin Krischik
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Weimer @ 2004-05-06 16:15 UTC (permalink / raw)


How can I create a library which contains a few object fiels which
were created from C source files, using the GNAT project manager?

The documentation suggests that this is possible, but I can't get it
to work with GCC 3.4.  C source files are ignored even if

   for Languages use ("Ada", "C");

is active.

-- 
Current mail filters: many dial-up/DSL/cable modem hosts, and the
following domains: atlas.cz, bigpond.com, di-ve.com, hotmail.com,
jumpy.it, libero.it, netscape.net, postino.it, simplesnet.pt,
tiscali.co.uk, tiscali.cz, tiscali.it, voila.fr, yahoo.com.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-06 16:15 [GNAT] Project manager and C source files Florian Weimer
@ 2004-05-06 18:15 ` Martin Krischik
  2004-05-07 22:38   ` Florian Weimer
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Krischik @ 2004-05-06 18:15 UTC (permalink / raw)


Florian Weimer wrote:

> How can I create a library which contains a few object fiels which
> were created from C source files, using the GNAT project manager?
> 
> The documentation suggests that this is possible, but I can't get it
> to work with GCC 3.4.  C source files are ignored even if
> 
>    for Languages use ("Ada", "C");
> 
> is active.

When C sources are included you need a makefile with the name
"makefile.project". Best is to have it all generated from gps - even when
you don't want to use gps later on.

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-06 18:15 ` Martin Krischik
@ 2004-05-07 22:38   ` Florian Weimer
  2004-05-08  6:24     ` Martin Krischik
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Weimer @ 2004-05-07 22:38 UTC (permalink / raw)


* Martin Krischik:

> When C sources are included you need a makefile with the name
> "makefile.project".

In which directory would I have to put this file?  The directory
containing the .gpr file, or the source directory?

-- 
Current mail filters: many dial-up/DSL/cable modem hosts, and the
following domains: atlas.cz, bigpond.com, di-ve.com, hotmail.com,
jumpy.it, libero.it, netscape.net, postino.it, simplesnet.pt,
tiscali.co.uk, tiscali.cz, tiscali.it, voila.fr, yahoo.com.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-07 22:38   ` Florian Weimer
@ 2004-05-08  6:24     ` Martin Krischik
  2004-05-18 15:28       ` Florian Weimer
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Krischik @ 2004-05-08  6:24 UTC (permalink / raw)


Florian Weimer wrote:

> * Martin Krischik:
> 
>> When C sources are included you need a makefile with the name
>> "makefile.project".
> 
> In which directory would I have to put this file?  The directory
> containing the .gpr file, or the source directory?

The same as the project file. For a Demo look at:

http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Scripts/Makefile.cunicode?rev=1.1&view=auto

http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Scripts/Makefile.tester?rev=1.2&view=auto

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-08  6:24     ` Martin Krischik
@ 2004-05-18 15:28       ` Florian Weimer
  2004-05-18 17:50         ` Ludovic Brenta
  2004-05-18 17:55         ` Martin Krischik
  0 siblings, 2 replies; 8+ messages in thread
From: Florian Weimer @ 2004-05-18 15:28 UTC (permalink / raw)


* Martin Krischik:

> Florian Weimer wrote:
>
>> * Martin Krischik:
>> 
>>> When C sources are included you need a makefile with the name
>>> "makefile.project".
>> 
>> In which directory would I have to put this file?  The directory
>> containing the .gpr file, or the source directory?
>
> The same as the project file. For a Demo look at:
>
> http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Scripts/Makefile.cunicode?rev=1.1&view=auto
>
> http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Scripts/Makefile.tester?rev=1.2&view=auto

Ah, looks like the output of gpr2make.  This doesn't seem to be
included in GNAT 3.4 for Debian, though.

Currently, I simply write the .i file into the library directory, and
gnatmake picks it up from there and puts it into the static library.
That's good enough for me right now, even though I'm not sure if it's
a bug or feature.

-- 
Current mail filters: many dial-up/DSL/cable modem hosts, and the
following domains: bigpond.com, di-ve.com, hotmail.com, jumpy.it,
libero.it, netscape.net, postino.it, simplesnet.pt, spymac.com,
tatanova.com, tiscali.co.uk, tiscali.cz, tiscali.it, voila.fr, yahoo.com.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-18 15:28       ` Florian Weimer
@ 2004-05-18 17:50         ` Ludovic Brenta
  2004-05-18 17:55         ` Martin Krischik
  1 sibling, 0 replies; 8+ messages in thread
From: Ludovic Brenta @ 2004-05-18 17:50 UTC (permalink / raw)


Florian Weimer writes:
> Ah, looks like the output of gpr2make.  This doesn't seem to be
> included in GNAT 3.4 for Debian, though.

It comes with gnat-gps for Debian: /usr/lib/gps/gpr2make.  GPS knows
where to look for it.

-- 
Ludovic Brenta.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-18 15:28       ` Florian Weimer
  2004-05-18 17:50         ` Ludovic Brenta
@ 2004-05-18 17:55         ` Martin Krischik
  2004-05-19  7:41           ` Ludovic Brenta
  1 sibling, 1 reply; 8+ messages in thread
From: Martin Krischik @ 2004-05-18 17:55 UTC (permalink / raw)


Florian Weimer wrote:

> * Martin Krischik:
> 
>> Florian Weimer wrote:
>>
>>> * Martin Krischik:
>>> 
>>>> When C sources are included you need a makefile with the name
>>>> "makefile.project".
>>> 
>>> In which directory would I have to put this file?  The directory
>>> containing the .gpr file, or the source directory?
>>
>> The same as the project file. For a Demo look at:
>>
>>
http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Scripts/Makefile.cunicode?rev=1.1&view=auto
>>
>>
http://cvs.sourceforge.net/viewcvs.py/adacl/CUnicode/Scripts/Makefile.tester?rev=1.2&view=auto
> 
> Ah, looks like the output of gpr2make.  This doesn't seem to be
> included in GNAT 3.4 for Debian, though.

Strange:

/work/sf.martin/CUnicode  Linux  martin@linux2  Di Mai 18 19:47:55  standart
>locate gpr2make
/opt/ada/bin/gpr2make
/work/gnu_3.4/gcc/gcc/ada/gpr2make.adb
/work/gnu_3.4/gcc/gcc/ada/gpr2make.ads
/work/gnu_3.4/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.ali
/work/gnu_3.4/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.o
/work/gnu_3.4/i686-pc-linux-gnu/gcc/gpr2make
/work/gnu_3.5/gcc/gcc/ada/gpr2make.adb
/work/gnu_3.5/gcc/gcc/ada/gpr2make.ads
/work/gnu_3.5/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.ali
/work/gnu_3.5/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.o
/work/gnu_3.5/i686-pc-linux-gnu/gcc/gpr2make
/work/sf.martin/CUnicode  Linux  martin@linux2  Di Mai 18 19:53:27  standart
>

As you can see gpr2make is included in gcc 3.4 and gcc 3.5

With Regards

Martin

-- 
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [GNAT] Project manager and C source files
  2004-05-18 17:55         ` Martin Krischik
@ 2004-05-19  7:41           ` Ludovic Brenta
  0 siblings, 0 replies; 8+ messages in thread
From: Ludovic Brenta @ 2004-05-19  7:41 UTC (permalink / raw)



Martin Krischik wrote:
> Florian Weimer wrote:
>> Ah, looks like the output of gpr2make. This doesn't seem to be
>> included in GNAT 3.4 for Debian, though.
> 
> Strange:
> 
> /opt/ada/bin/gpr2make
> /work/gnu_3.4/gcc/gcc/ada/gpr2make.adb
> /work/gnu_3.4/gcc/gcc/ada/gpr2make.ads
> /work/gnu_3.4/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.ali
> /work/gnu_3.4/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.o
> /work/gnu_3.4/i686-pc-linux-gnu/gcc/gpr2make
> /work/gnu_3.5/gcc/gcc/ada/gpr2make.adb
> /work/gnu_3.5/gcc/gcc/ada/gpr2make.ads
> /work/gnu_3.5/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.ali
> /work/gnu_3.5/i686-pc-linux-gnu/gcc/ada/tools/gpr2make.o
> /work/gnu_3.5/i686-pc-linux-gnu/gcc/gpr2make
> 
> As you can see gpr2make is included in gcc 3.4 and gcc 3.5

Florian meant the Debian packages.  It is a Debian-specific packaging
issue that the executable is not in the .deb files.

-- 
Ludovic Brenta.



-- 
Use our news server 'news.foorum.com' from anywhere.
More details at: http://nnrpinfo.go.foorum.com/



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-05-19  7:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 16:15 [GNAT] Project manager and C source files Florian Weimer
2004-05-06 18:15 ` Martin Krischik
2004-05-07 22:38   ` Florian Weimer
2004-05-08  6:24     ` Martin Krischik
2004-05-18 15:28       ` Florian Weimer
2004-05-18 17:50         ` Ludovic Brenta
2004-05-18 17:55         ` Martin Krischik
2004-05-19  7:41           ` Ludovic Brenta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox