tags:

views:

96

answers:

0

Hi,

I want to change a macro value defined inside macro.mk from my Makefile based on some target. I am using clearmake as my build system.

e.g. I have a macro MYMACRO defined inside macro.mk. Now, what I need is that following command

clearmake target1 this should set macro MYMACRO to CPPFLAGS_TARGET1 and clearmake target2 should be able to set macro MYMACRO to CPPFLAGS_TARGET2

So that targetX gets build using its own CPPFLAGS_TARGETX.

Appreciate any help.