This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: different name for debug and release library/program
- From: Guido Draheim <guidod-2003- at gmx dot de>
- To: Juraj Hercek <juraj at syncad dot com>
- Cc: automake at gnu dot org
- Date: Wed, 30 Apr 2003 17:36:23 +0200
- Subject: Re: different name for debug and release library/program
- References: <3EAF9793.2090609@syncad.com>
sh libtool --mode=link --help
Note the -release and -version-info arguments.
Add some "mylib_la_LDFLAGS = -release suffix" to get the library
being installed as libmylib-suffix.so - that will not work
for programs where you should check for transform_name
in the configure-script (otherwise settable via that
sh configure --program-suffix etcetara).
have fun, guido
Juraj Hercek schrieb:
Hi,
I'd like to have different name for debug and release library/program.
Is it possible to use something like this?:
---
if DEBUG
NAME=foo
else
NAME=fooDebug
endif
bin_PROGRAMS = $(NAME)
$(NAME)_SOURCES = foo.c
---
or use "@name@_SOURCES = foo.c" instead of "$(NAME)_SOURCES = foo.c"...
If not, is there a way how to solve this without explicitly specifying
name? I.e.:
---
foo_SOURCES = foo.c
fooDebug_SOURCES=foo.c
---
Thanks,
Juraj