The make on FreeBSD doesn't support "ifdef" directives

Viewed 1431

My FreeBSD is 11.0, and find the make can't process the ifdef directives. For example:

ifdef VERBOSE
Q :=
else
Q := @
endif

The make will complain:

make: "/root/Project/powermon/Makefile" line 13: Need an operator
make: "/root/Project/powermon/Makefile" line 15: Need an operator
make: "/root/Project/powermon/Makefile" line 17: Need an operator

My current solution is using gmake instead. So does any make port on FreeBSD support processing ifdef?

2 Answers
Related