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