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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3e5cb326bf672965,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail From: "Lucretia" Newsgroups: comp.lang.ada Subject: GNAT, shared libraries, building in different directories...madness! Date: 28 Sep 2006 11:54:02 -0700 Organization: http://groups.google.com Message-ID: <1159469642.836410.101620@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: 62.56.75.133 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1159469647 17079 127.0.0.1 (28 Sep 2006 18:54:07 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 28 Sep 2006 18:54:07 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060903 Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i42g2000cwa.googlegroups.com; posting-host=62.56.75.133; posting-account=G-J9fgwAAADgpzBiEyy5tO4f8MX5fbpw Xref: g2news2.google.com comp.lang.ada:6800 Date: 2006-09-28T11:54:02-07:00 List-Id: 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.