automake
[Top][All Lists]
Advanced

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

Re: Problem with EXTRA_*_SOURCES


From: Lars J. Aas
Subject: Re: Problem with EXTRA_*_SOURCES
Date: Wed, 4 Apr 2001 13:53:12 +0200
User-agent: Mutt/1.2.5i

On Wed, Apr 04, 2001 at 01:40:26PM +0200, Esben Haabendal Soerensen wrote:
: I attach the configure.in and src/Makefile.am here.

Automake doesn't know about mutually exclusive conditionals (they are
controlled from the configure script, so anything can happen), so you
should rewrite the Makefile.am to something Automake will be more
comfortable with - knowing that a variable will only be defined once.
The below Makefile.am gets rid of the warnings.

  Lars J

## Process this file with automake to create Makefile.in.

SUBDIRS = . utils

lib_LTLIBRARIES = libpcsclite-core.la libpcsclite.la
sbin_PROGRAMS = pcscd
check_PROGRAMS = testpcsc

if PCSC_ARCH_LINUX
if PCSC_LINUX_USB
PCSC_THREAD_SOURCE = thread_unix.c
PCSC_DYNLOAD_SOURCE = dyn_unix.c
PCSC_HOTPLUG_SOURCE = hotplug_linux.c
else
PCSC_THREAD_SOURCE = thread_unix.c
PCSC_DYNLOAD_SOURCE = dyn_unix.c
PCSC_HOTPLUG_SOURCE = hotplug_generic.c
endif
else
if PCSC_ARCH_BSD
PCSC_THREAD_SOURCE = thread_unix.c
PCSC_DYNLOAD_SOURCE = dyn_unix.c
PCSC_HOTPLUG_SOURCE = hotplug_generic.c
else
if PCSC_ARCH_OSX
PCSC_THREAD_SOURCE = thread_macosx.c
PCSC_DYNLOAD_SOURCE = dyn_macosx.c
PCSC_HOTPLUG_SOURCE = hotplug_macosx.c
else
if PCSC_ARCH_SOLARIS
PCSC_THREAD_SOURCE = thread_unix.c
PCSC_DYNLOAD_SOURCE = dyn_unix.c
PCSC_HOTPLUG_SOURCE = hotplug_generic.c
endif
endif
endif
endif

libpcsclite_core_la_SOURCES = configfile.l bundleparser.l \
        winscard.c eventhandler.c ifdwrapper.c atrhandler.c prothandler.c \
        readerfactory.c ipc_msg_wrap.c debuglog.c sys_unix.c \
        $(PCSC_THREAD_SOURCE) $(PCSC_HOTPLUG_SOURCE) $(PCSC_DYNLOAD_SOURCE)
libpcsclite_core_la_LDFLAGS = -lfl -ldl

libpcsclite_la_SOURCES = winscard_clnt.c debuglog.c sys_unix.c ipc_msg_wrap.c

pcscd_SOURCES = pcscdaemon.c winscard_svc.c ipc_msg_wrap.c
pcscd_LDADD = libpcsclite-core.la

testpcsc_SOURCES = test.c
testpcsc_LDADD = libpcsclite.la

EXTRA_libpcsclite_core_la_SOURCES = dyn_unix.c dyn_macosx.c \
        hotplug_generic.c hotplug_linux.c hotplug_macosx.c \
        thread_unix.c thread_macosx.c

# Hack to be able to use flex -P to enable linking of multiple lexer
# sources into one library, until we find a way to make automake handle
# this automagically.  This breaks if lex is not flex!!
bundleparser.c: bundleparser.l
        $(SHELL) $(YLWRAP) "$(LEX)" $< lex.bp.c $@ -- -Pbp $(AM_LFLAGS) 
$(LFLAGS)



reply via email to

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