This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: building same source with different flags
- From: Ted Irons <ironst at saic dot com>
- To: automake at gnu dot org, libtool at gnu dot org, corsepiu at faw dot uni-ulm dot de
- Date: Fri, 21 Dec 2001 21:37:31 -0700
- Subject: Re: building same source with different flags
- Organization: Science Applications
- References: <3C22C1F9.77DA620A@saic.com>
I appreciate the reply but
my original email had a typo: automake-1.4b
should read automake-1.5b.
I didn't try this with automake-1.5.
- Ted
Ted Irons wrote:
> Am using autoconf-2.5.2, automake-1.4b, libtool-1.4b
>
This should read automake-1.5b.
> on an ix86 box run running Suse Linux with kernel-2.4.6.
>
> My Makefile.am contains the following snippets:
>
> ================================================
> libhrnet_la_SOURCES = \
> ascbin.cc \
> allocate.cc \
> fileio.cc \
> forward.cc \
> initall.cc \
> msc.cc \
> nextsamp.cc \
> printnet.cc \
> make_net.cc \
> sig.cc \
> hnet.cc
>
> libhrnet_la_CXXFLAGS = ${HBP_CXXFLAGS}
>
> libhrnet_la_LDFLAGS = -version-info @PIPES_VERSION@
>
> libohrnet_la_SOURCES = \
> ascbin.cc \
> allocate.cc \
> fileio.cc \
> forward.cc \
> initall.cc \
> msc.cc \
> nextsamp.cc \
> printnet.cc \
> make_net.cc \
> sig.cc \
> hnet.cc
>
> libohrnet_la_CXXFLAGS = -DHIGHER_ORDER_NET ${HBP_CXXFLAGS}
>
> libohrnet_la_LDFLAGS = -version-info @PIPES_VERSION@
>
> ==============================================
>
> When I run make I get the following error:
>
> source='ascbin.cc' object='libhrnet_la-ascbin.lo' libtool=yes \
> depfile='.deps/libhrnet_la-ascbin.Plo' tmpdepfile='.deps/libhrnet_la-ascbin.TPlo' \
> depmode=gcc /bin/sh ../../../pipes-1.0/config/depcomp \
> /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../pipes-1.0/tma/hbp.lib -I../.. -fpermissive -I../../../pipes-1.0/tma/util.lib -I../../../pipes-1.0/tma/trff.lib -g -O2 -c -o libhrnet_la-ascbin.lo `test -f ascbin.cc || echo '../../../pipes-1.0/tma/hbp.lib/'`ascbin.cc
> g++ -DHAVE_CONFIG_H -I. -I../../../pipes-1.0/tma/hbp.lib -I../.. -fpermissive -I../../../pipes-1.0/tma/util.lib -I../../../pipes-1.0/tma/trff.lib -g -O2 -c ../../../pipes-1.0/tma/hbp.lib/ascbin.cc -Wp,-MD,.deps/libhrnet_la-ascbin.TPlo -fPIC -DPIC
> mv -f libhrnet_la-ascbin.o .libs/libhrnet_la-ascbin.o
> mv: cannot stat `libhrnet_la-ascbin.o': No such file or directory
> make[3]: *** [libhrnet_la-ascbin.lo] Error 1
>
> ===============================================
>
> Any ideas as to what I am doing wrong?
>
> Thanks in advance,
> - Ted