]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blobdiff - make.inc
Corrected a typo in examples/ztrmm_test.
[dense-linear-algebra-libraries/linalg.git] / make.inc
index 0ee8cc62dff1273fffd9107c988debf65750840a..c0736992b369fb328287cff456e5731052b65df1 100644 (file)
--- a/make.inc
+++ b/make.inc
@@ -1,7 +1,7 @@
-DSP_INCLUDE  = -I$(TI_OCL_CGT_INSTALL)/include 
+#DSP_INCLUDE  = -I$(TI_OCL_CGT_INSTALL)/include 
 DSP_INCLUDE += -I$(TARGET_ROOTDIR)/usr/share/ti/cgt-c6x/include
 DSP_INCLUDE += -I$(TARGET_ROOTDIR)/usr/share/ti/opencl
-DSP_INCLUDE += -I$(TI_OCL_INSTALL_DIR)/include
+#DSP_INCLUDE += -I$(TI_OCL_INSTALL_DIR)/include
 
 CPP   = g++
 CL6X  = cl6x -mv6600 --abi=eabi $(DSP_INCLUDE)
@@ -24,6 +24,9 @@ ifneq (,$(findstring 86, $(UNAME_M)))
        ifeq ($(TARGET_ROOTDIR),)
          $(error Environment variable TARGET_ROOTDIR must be defined. Set it to point at the EVM root file system)
        endif
+       ifeq ($(OMP_DIR),)
+         $(error Environment variable OMP_DIR must be defined. Set it to point at the OpenMP for DSP Installation Directory, or run the setup_hpc_env script available in the MCSDK-HPC installation)
+       endif
     endif
 
     # gcc ARM cross compiler will not, by default, search the host's
@@ -37,6 +40,18 @@ ifneq (,$(findstring 86, $(UNAME_M)))
     cross: LD_FLAGS = -L$(TARGET_ROOTDIR)/lib -L$(TARGET_ROOTDIR)/usr/lib -Wl,-rpath-link,$(TARGET_ROOTDIR)/lib -Wl,-rpath-link,$(TARGET_ROOTDIR)/usr/lib 
 endif
 
+define FIND_DSP_PKG
+  export $(1)?=$$(patsubst %/$(3),%,$$(lastword $$(sort $$(wildcard $$(TI_SEARCH_PATH)/$(2)/$(3)))))
+  ifeq ($$($(1)),)
+    $$(error ERROR - $(1) is not defined and could not be found in $(TI_SEARCH_PATH)/ )
+  else
+    ifeq ($$(wildcard $$($(1))/$(3)),)
+      $$(error ERROR - "$(1) = $$($(1))" Is not valid!)
+    endif
+  endif
+  $$(info Using $(1) = $$($(1)))
+endef
+
 %.o: %.cpp
        @echo Compiling $<
        $(CPP) -c $(CPP_FLAGS) $<
@@ -67,4 +82,4 @@ clean::
 test: clean $(EXE)
        @echo Running   $(EXE)
        @./$(EXE) >> /dev/null
-       @if [ $$? -ne 0 ] ; then echo "FAILED !!!" ; fi
+       @if [ $$? -ne 0 ] ; then echo "FAILED !!!" ; fi
\ No newline at end of file