perf tools: fixing Makefile problems
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 3 May 2016 19:45:28 +0000 (13:45 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 20 Jun 2016 17:16:07 +0000 (11:16 -0600)
This patch is fixing the ifeq condition to get the debug or release
version of the openCSD libraries.  It also fix a naming typo when
release libraries are southg.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
tools/perf/config/Makefile

index 033d94114babfc6b7748dd4094df48494f64b043..405c1c1e2975f5eec867542c4bd2e53f5f0fdf1e 100644 (file)
@@ -439,11 +439,11 @@ ifdef CSTRACE_PATH
   else
     CSTRACE_LNX = linux
   endif
-  ifdef DEBUG
+  ifeq (${DEBUG}, 1)
     LIBCSTRACE = -lcstraced_c_api -lcstraced
     CSTRACE_LIB_PATH = $(CSTRACE_PATH)/lib/$(CSTRACE_LNX)/dbg
   else
-    LIBCSTRACE = -lcstrace_c_api -lcstrace
+    LIBCSTRACE = -lcstraced_c_api -lcstraced
     CSTRACE_LIB_PATH = $(CSTRACE_PATH)/lib/$(CSTRACE_LNX)/rel
   endif
   $(call detected,CSTRACE)