comp.lang.ada
 help / color / mirror / Atom feed
* GNAT, shared libraries, building in different directories...madness!
@ 2006-09-28 18:54 Lucretia
  2006-09-30  6:30 ` vgodunko
  2006-09-30 18:07 ` Ludovic Brenta
  0 siblings, 2 replies; 15+ messages in thread
From: Lucretia @ 2006-09-28 18:54 UTC (permalink / raw)


Hi,

I just can't see why GNAT can't do this without whining about trying to
recompile library sources. All I want to do is to create a simple
shared lib, the sources are scattered about in different directories,
different builds may use different files. I can create the lib fine,
but the test app won't link for various reasons.

I have the following directory structure:

adael/
adael/src/adael
adael/src/adael/common
adael/src/adael/generic
adael/src/adael/gtk2
adael/src/adael/linux
adael/src/samples/
adael/src/samples/test_app
adael/build/gnat/linux/
adael/build/gnat/linux/temp/
adael/build/gnat/linux/temp/debug/
adael/build/gnat/linux/temp/release/
adael/build/gnat/linux/debug/
adael/build/gnat/linux/release/

So that for a linux specific build all temporary objects go to temp,
executables, ali's, so's go to the debug or release in the linux
directory.

Can sombody please post an example makefile that can be used to build a
library and link the source to an example app without recompiling the
library source. I would prefer not to use project files if possible as
they just don't provide enough flexibility.

Thanks,
Luke.




^ permalink raw reply	[flat|nested] 15+ messages in thread
* GNAT, shared libraries, building in different directories...madness!
@ 2006-09-28 19:11 Lucretia
  0 siblings, 0 replies; 15+ messages in thread
From: Lucretia @ 2006-09-28 19:11 UTC (permalink / raw)


Hi,

I just can't see why GNAT can't do this without whining about trying to
recompile library sources. All I want to do is to create a simple
shared lib, the sources are scattered about in different directories,
different builds may use different files. I can create the lib fine,
but the test app won't link for various reasons.

I have the following directory structure:

adael/
adael/src/adael
adael/src/adael/common
adael/src/adael/generic
adael/src/adael/gtk2
adael/src/adael/linux
adael/src/samples/
adael/src/samples/test_app
adael/build/gnat/linux/
adael/build/gnat/linux/temp/
adael/build/gnat/linux/temp/debug/
adael/build/gnat/linux/temp/release/
adael/build/gnat/linux/debug/
adael/build/gnat/linux/release/

So that for a linux specific build all temporary objects go to temp,
executables, ali's, so's go to the debug or release in the linux
directory.

Can sombody please post an example makefile that can be used to build a
library and link the source to an example app without recompiling the
library source. I would prefer not to use project files if possible as
they just don't provide enough flexibility.

Thanks,
Luke.




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

end of thread, other threads:[~2006-10-15 11:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-28 18:54 GNAT, shared libraries, building in different directories...madness! Lucretia
2006-09-30  6:30 ` vgodunko
2006-09-30 18:07 ` Ludovic Brenta
2006-10-01 14:44   ` sphinxmoro
2006-10-01 15:41     ` Simon Wright
2006-10-01 16:28       ` Ludovic Brenta
2006-10-05 12:22   ` Philippe Bertin
2006-10-05 12:33     ` Ludovic Brenta
2006-10-05 15:28       ` Philippe Bertin
2006-10-05 16:06         ` Alex R. Mosteo
2006-10-05 20:22         ` Ludovic Brenta
2006-10-07  8:21           ` Simon Wright
2006-10-14 19:13   ` Lucretia
2006-10-15 11:00     ` Simon Wright
  -- strict thread matches above, loose matches on Subject: below --
2006-09-28 19:11 Lucretia

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