[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HELP!] Seeking auto* enligntenment
From: |
Steve M. Robbins |
Subject: |
Re: [HELP!] Seeking auto* enligntenment |
Date: |
Tue, 08 Oct 2002 09:11:28 -0400 |
User-agent: |
Mutt/1.4i |
On Tue, Oct 08, 2002 at 11:20:20AM +0200, address@hidden wrote:
> Hi,
>
> I need some help. I don't know whether I'm on the right mailing
> list.
>
> Trying to set up a small project with autotools (basically a library
> with some accessory C functions to test/demonstrate). My directory
> setup is basically:
>
> atbtools
> config
> ...
> lib
> [c headers and sources for lib]
> misc
> [c sources for accessory progs]
>
> and of course the usual configury stuff (I'll be glad to provide more
> details if needed).
>
> The top-level Makefile.am has the usual
>
> SUBDIRS = lib misc
>
> (nothing more for now).
>
> Now to lib/Makefile.am. I've tried many possibilities, but converged on
> this ``strange attractor''. If I try
>
> === 1 ========================================================
>
> lib/Makefile.am:
> pkglib_LTLIBRARIES = libatb.la
Is this the entire contents of lib/Makefile.am? Are you expecting
automake to guess which sources make up your library?
> then I get (after successful ./bootstrap, ./configure:
>
> Making all in lib
> make[2]: Entering directory `/spare/home/spu/MHS/fischer/atbtools/lib'
> make[2]: *** No rule to make target `libatb.la.c', needed by
> `libatb.la.lo'. Stop.
> make[2]: Leaving directory `/spare/home/spu/MHS/fischer/atbtools/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/spare/home/spu/MHS/fischer/atbtools'
> make: *** [all-recursive-am] Error 2
I'm guessing you need to add
libatb_la_SOURCES = x.c y.c z.c
to lib/Makefile.am.
-Steve