Hello,
Imagine I pass the name of the compiler when I call make:

make build CC=gcc-4.5

Now, imagine that in my Makefile I have defined that depending on the
compiler I will used different options:

ifeq ($(CC),gcc)
    CFLAGS=-Wall -Wextra
endif
ifeq ($(CC),opencc)
    CFLAGS=-Wall
endif

But the problen is that gcc, for example, can be called as gcc,
gcc-4.5, gcc-3.3, etc. depending on version and the same for opencc or
another compiler.
So my question is, how can I detect if some string (gcc, for example)
is contained in other string (an input argument, for example)?

Thanks

-- 
*****************************************
José Luis García Pallero
[email protected]
(o<
/ / \
V_/_
Use Debian GNU/Linux and enjoy!
*****************************************

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to