automake
[Top][All Lists]
Advanced

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

Re: Newbie: Shared library with subdirs & convenience libs


From: Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
Subject: Re: Newbie: Shared library with subdirs & convenience libs
Date: Fri, 1 Feb 2002 17:27:24 +0200

I have found a workaround.  It seems that automake generates a rule to build 
a library, only if XXX_la_SOURCES is defined.  So the following doesn't work:

SUBDIRS = lib1 lib2 .
lib_LTLIBRARIES = libgather.la
libgather_la_SOURCES = 
libgather_la_LIBADD = lib1/libgoodbye1.la lib2/libgoodbye2.la

But the following works (!):

SUBDIRS = lib1 lib2 .
lib_LTLIBRARIES = libgather.la
libgather_la_SOURCES = gather.c
libgather_la_LIBADD = lib1/libgoodbye1.la lib2/libgoodbye2.la

The gather.c is an empty file (created with "touch gather.c").

Is there a way to make this work without the gather.c file?

Thanks for your help!

Alexandros



reply via email to

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