automake
[Top][All Lists]
Advanced

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

lib_ and noinst_ in the same Makefile.am using conditional!!


From: Elisabetta Ronchieri
Subject: lib_ and noinst_ in the same Makefile.am using conditional!!
Date: Mon, 12 Nov 2001 11:03:26 +0100

Hi,

I'm using automake (GNU automake) 1.4 and ltmain.sh (GNU libtool) 1.3.5. 

I would like to know if I can make a thing like follow:

if P_SELECTED
Clientdir = $(prefix)/include
Client_HEADERS    = p.h 
lib_LTLIBRARIES    = libp.la
libp_la_SOURCES = events.c 
else
noinst_LTLIBRARIES  = libp.la libpl.la 
libp_la_SOURCES = p.c 
libpl_la_SOURCES = pl.c
endif

After I run ./bootstrap I have the following warnings:

automake: Client/Makefile.am: `libdglog.la' is already going to be
installed in
`noinst'
Client/Makefile.am: libdglog_la_OBJECTS should not be defined

If I change the library name that must be installed, I don't have any
problems.

Can anybody help me, please?

-- 
Elisabetta Ronchieri
CNAF INFN



reply via email to

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