[Top][All Lists]

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

Re: Problems getting dependencies compiled before executable....

From: Alexandre Duret-Lutz
Subject: Re: Problems getting dependencies compiled before executable....
Date: Sat, 14 Jun 2003 21:19:01 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

>>> "Chris" == Chris Seberino <address@hidden> writes:


 Chris> If a dependency of a target is not built, then Makefile
 Chris> should build the dependency first.  That is not what
 Chris> is happening here.  Why can't Makefile go to right
 Chris> directory to build the dependency???


Because the rules to build this dependency are in the
subdirectory not in the current one.  See
for some background.

You can tell Automake you want the subdirectory built *after*
the current one by changing src/'s SUBDIRS definition

  SUBDIRS = . exec

Alternatively, you can merge src/exec/ into
src/  It's ok to write things like

  noinst_LIBRARIES = libfoo.a
  libfoo_a_SOURCES = foo.c
  bin_PROGRAMS = exec/main
  exec_main_SOURCES = exec/main.c
  exec_main_LDADD = libfoo.a

Alexandre Duret-Lutz

reply via email to

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