Can anybody help mw how to use 2 conditinal directives in makefile (with AND=&&), so far none of my tries succedded.
Getting this warning like below. I thought that C's && will work, but alas, played with (), spaces and etc..
and I have only GNU Make 3.80
ifeq ($(VAR1),15) && ($(VAR2),32)
MOD_CFLAGS1 += -m64
endif
*** Extraneous text after `ifeq' directive
I assume from your syntax you are talking gmake which is different than some of the default versions of make that I've come across. I had a quick read through the manual (url at end) and I don't believe that gmake supports complex expressions. I thought maybe nested if statements, given you want ANDing rather than ORing, but that seems no good too. The only way I was able to do something like you want was to 'shell out' to do the test.