[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: Creating two libraries with same sourcefiles but diffrent defines
From: |
Roesner Thomas |
Subject: |
AW: Creating two libraries with same sourcefiles but diffrent defines |
Date: |
Tue, 21 Jun 2005 12:44:38 +0200 |
Dear all,
it seems to work now, unfortunately i didn't have the depcomp file,
so starting make in av didn't result in compiling the files without
any errormessage, expect missing o-files.
The remaining question is: is there any way to make the dependencies
to the library, not to the library_source.o file? I´d like to
delete the objectfiles to have a nearly clean sourcedir?
Kind Regards,
Tom
> -----Ursprüngliche Nachricht-----
> Von: Ralf Wildenhues [mailto:address@hidden
> Gesendet: Dienstag, 21. Juni 2005 09:48
> An: Roesner Thomas
> Cc: address@hidden
> Betreff: Re: Creating two libraries with same sourcefiles but diffrent
> defines
>
>
> 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
>