11-08-05 11:29 PM
"Paulo Matos" <pocmatos@gmail.com> writes:
> Hi all,
>
> How can I specify using autotools, in Makefile.am that I wish to create
> diff executables from the same set of sources. The executables differ
> in that they are compiled with different flags.
> For example:
> bin_PROGRAMS = test otest dtest # Normal test, optimized test and debug
> test
>
> If they have few sources files we can specify them repeatedly for
> test_SOURCES otest_SOURCES and dtest_SOURCES, however if they have
> hundreds of source files it gets harder to maintain.
> What's the best way to do this?
Maybe not the best, but one way is this:
SOURCES = foo.c bar.c
test_SOURCES = $(SOURCES)
otest_SOURCES = $(SOURCES)
--
Måns Rullgård
mru@inprovide.com
[ Post a follow-up to this message ]
|