]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blobdiff - examples/dsponly/dgemm_test/Makefile.common
Added readme.txt to examples/dsponly. Cleaned up makefiles.
[dense-linear-algebra-libraries/linalg.git] / examples / dsponly / dgemm_test / Makefile.common
index 4e12e51d90af24a967858ec4a4813d29f0bc7f92..2f0b8d4e1cf39a71ff009cc1570afe1f1f330230 100644 (file)
@@ -13,6 +13,7 @@ LNK_CMD   = $(CFGDIR)/linker.cmd
 OPT_CMD   = $(CFGDIR)/compiler.opt
 CL_OPTS   = -@ $(OPT_CMD) -mv6600 --omp -I $(OMP_DIR)/packages/ti/runtime/openmp
 CL_OPTS  += -I$(FC_DIR)/packages -I$(XDAIS_DIR)/packages -I$(EDMA3_DIR)/packages -I$(LIBARCH_DIR) -I$(LINALG_DIR)/include
+CL_OPTS  += -D$(TARGET) -DLIB_RTOS
 LNK_OPTS  = -x -c --priority -w
 CL        = $(CGTROOT)/bin/cl6x
 RTS_LIB   = $(CGTROOT)/lib/libc.a
@@ -25,25 +26,9 @@ else
     CL_OPTS += -o3
 endif
 
-
-ifneq ($(MAKECMDGOALS),clean)
-ifeq ($(TARGET),SOC_AM572x)
-CL_OPTS += -DTI_AM572 -DDEVICE_AM572x
-else ifeq ($(TARGET),SOC_K2H)
-CL_OPTS += -DTI_C6636 -DDEVICE_K2H
-else ifeq ($(TARGET),SOC_C6678)
-CL_OPTS += -DTI_C6678 -DDEVICE_C6678 -DLIB_RTOS
-else   
-$(error must specify one of: \
-            TARGET=SOC_K2H \
-            TARGET=SOC_C6678 \
-            TARGET=SOC_AM572X
-endif
-endif
  
 all: $(outfile)
 
-
 %.out: $(testfiles) libomp_config
        echo compiling $<
        $(CL) $(CL_OPTS) $< $(testfiles) -z $(LNK_OPTS) -o $@ -m $*.map $(LNK_CMD) $(RTS_LIB) $(LIBARCH_LIB) $(LINALG_LIB)