[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating two libraries with same sourcefiles but diffrent defines
From: |
Ralf Wildenhues |
Subject: |
Re: Creating two libraries with same sourcefiles but diffrent defines |
Date: |
Tue, 21 Jun 2005 09:48:26 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi Thomas,
* Roesner Thomas wrote on Tue, Jun 21, 2005 at 08:47:47AM CEST:
>
> > lib_LIBRARIES = libavstd.a libavpcl.a
> >
> > libsources = avbed.c avpub.c
> > libavstd_a_SOURCES = $(libsources)
> > libavstd_a_CPPFLAGS = -DNORMAL $(AM_CPPFLAGS)
> >
> > libavpcl_a_SOURCES = $(libsources)
> > libavpcl_a_CPPFLAGS = -DWITHPCL $(AM_CPPFLAGS)
>
> unfortunatly it does not work:
>
> ar: 'libavstd_a-avbed.o' : No such file or directory
I cannot reproduce this. Are you by chance using Automake-1.4?
Try a recent version. If the problem persists, post a complete example
which fails, including output and versions of tools used, and system
this is on.
Regards,
Ralf
FYI: this is what I tried:
cat >Makefile.am <<EOF
lib_LIBRARIES = libavstd.a libavpcl.a
libsources = avbed.c avpub.c
libavstd_a_SOURCES = $(libsources)
libavstd_a_CPPFLAGS = -DNORMAL $(AM_CPPFLAGS)
libavpcl_a_SOURCES = $(libsources)
libavpcl_a_CPPFLAGS = -DWITHPCL $(AM_CPPFLAGS)
EOF
cat >configure.ac <<EOF
AC_INIT([pertarget-test],[0.1],[invalid])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_RANLIB
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
EOF
autoreconf -vi
./configure
make distcheck