diff --git a/function_test/BER_EncDec/Makefile b/function_test/BER_EncDec/Makefile
index 64af9c8dce45ee16f019605cd420db6e274fb387..e99ffcfac2c3f28abbd40bcc59641a2545d83435 100644
--- a/function_test/BER_EncDec/Makefile
+++ b/function_test/BER_EncDec/Makefile
@@ -117,7 +117,7 @@ USER_OBJECTS =
 # The name of the executable test suite:
 TARGET = BER_EncDec.exe
 
-ifdef COVERAGE
+ifeq ($(COVERAGE), yes)
 CPPFLAGS += -fprofile-arcs -ftest-coverage -g
 CXXFLAGS += -fprofile-arcs -ftest-coverage -g
 LDFLAGS += -fprofile-arcs -ftest-coverage -g -lgcov
diff --git a/function_test/OER_EncDec/Makefile b/function_test/OER_EncDec/Makefile
index 1558e377f77b14a8f372330ef619b4e86983d1df..d83f6bee6e414de525affa41a29d4f84481104ac 100644
--- a/function_test/OER_EncDec/Makefile
+++ b/function_test/OER_EncDec/Makefile
@@ -115,7 +115,7 @@ OBJECTS = $(GENERATED_SOURCES:.cc=.o)
 # The name of the executable test suite:
 TARGET = Temp
 
-ifdef COVERAGE
+ifeq ($(COVERAGE), yes)
 CPPFLAGS += -fprofile-arcs -ftest-coverage -g
 CXXFLAGS += -fprofile-arcs -ftest-coverage -g
 LDFLAGS += -fprofile-arcs -ftest-coverage -g -lgcov
diff --git a/function_test/RAW_EncDec/Makefile b/function_test/RAW_EncDec/Makefile
index aaa7836a825fbbdc682047a8ec95a9195707069a..bf86e78320b9005f3ac8d13442fb6fcc5281a885 100644
--- a/function_test/RAW_EncDec/Makefile
+++ b/function_test/RAW_EncDec/Makefile
@@ -111,7 +111,7 @@ USER_OBJECTS =
 # The name of the executable test suite:
 TARGET = RAW_EncDec.exe
 
-ifdef COVERAGE
+ifeq ($(COVERAGE), yes)
 CPPFLAGS += -fprofile-arcs -ftest-coverage -g
 CXXFLAGS += -fprofile-arcs -ftest-coverage -g
 LDFLAGS += -fprofile-arcs -ftest-coverage -g -lgcov
diff --git a/function_test/XER_EncDec/Makefile b/function_test/XER_EncDec/Makefile
index 6270a0d940a7984a9f6b865e5ef66c2dc0bd7657..6eaaa2d980ac641f392d689ece4e2ca560bfacaf 100644
--- a/function_test/XER_EncDec/Makefile
+++ b/function_test/XER_EncDec/Makefile
@@ -107,7 +107,7 @@ USER_OBJECTS =
 # The name of the executable test suite:
 TARGET = XER_EncDec.exe
 
-ifdef COVERAGE
+ifeq ($(COVERAGE), yes)
 CPPFLAGS += -fprofile-arcs -ftest-coverage -g
 CXXFLAGS += -fprofile-arcs -ftest-coverage -g
 LDFLAGS += -fprofile-arcs -ftest-coverage -g -lgcov