This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

different name for debug and release library/program


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]