bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cross-directory support


From: Roumen Petrov
Subject: Re: Cross-directory support
Date: Sun, 14 Dec 2008 16:58:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.18) Gecko/20081114 SeaMonkey/1.1.13

Ludovic Courtès wrote:
Hello,

A couple of questions about "cross-directory support" (info "(automake)
Alternative").

Suppose the following layout:

  Makefile.am    -> SUBDIRS = src
  src/
    Makefile.am  -> libfoo_SOURCES = a.c b.c c.c
    a.c
    b.c
    c.c

Switching to a non-recursive `make' model goes like this:

  Makefile.am    -> libfoo_SOURCES = src/a.c src/b.c src/c.c
  src/
    a.c
    b.c
    c.c

Questions:

  1. Is it possible to avoid repeating `src/' in the second case?

  2. Can we somehow arrange the second case so that `libfoo' is built in
     `$top_builddir/src' (as in the first case) rather than
     `$top_builddir'?

May be no. I know projects that use same source file in different libraries. It is normal build of different libraries to use different preprocessor directives to same source.

Roumen







reply via email to

[Prev in Thread] Current Thread [Next in Thread]