comp.lang.ada
 help / color / mirror / Atom feed
From: "Lucretia" <lucretia9@lycos.co.uk>
Subject: GNAT, shared libraries, building in different directories...madness!
Date: 28 Sep 2006 11:54:02 -0700
Date: 2006-09-28T11:54:02-07:00	[thread overview]
Message-ID: <1159469642.836410.101620@i42g2000cwa.googlegroups.com> (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.




             reply	other threads:[~2006-09-28 18:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-28 18:54 Lucretia [this message]
2006-09-30  6:30 ` GNAT, shared libraries, building in different directories...madness! 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
replies disabled

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