]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blob - src/ti/linalg/tuning/make.inc
ea6f25acd974acec1a43aa1db90942009fe132a4
[dense-linear-algebra-libraries/linalg.git] / src / ti / linalg / tuning / make.inc
1 UNAME_M :=$(shell uname -m)
2 ifneq (,$(findstring 86, $(UNAME_M)))
3     # In a cross compile environment we are assuming that the EVM file system
4     # is located on the build host and necessary ARM libraries are installed
5     # on that file system.
6     ifneq ($(MAKECMDGOALS),clean)
7        ifeq ($(TARGET_ROOTDIR),)
8          $(error Environment variable TARGET_ROOTDIR must be defined. Set it to point at the EVM root file system)
9        endif
10     endif
12     # gcc ARM cross compiler will not, by default, search the host's
13     # /usr/include.  Explicitly specify here to find dependent vendor headers
14     CC = arm-linux-gnueabihf-gcc
15 else
16     CC = gcc 
17 endif
19 CFLAGS = -g -O2 -I$(TARGET_ROOTDIR)/usr/include -I$(LINALG_DIR)/packages/ti/linalg
21 LIB_DIR = $(LINALG_DIR)/packages/ti/linalg/lib/
22 LD_FLAGS=-L$(TARGET_ROOTDIR)/lib -L$(TARGET_ROOTDIR)/usr/lib -Wl,-rpath-link,$(TARGET_ROOTDIR)/lib -Wl,-rpath-link,$(TARGET_ROOTDIR)/usr/lib
23 BLASLIB = $(LIB_DIR)libcblas_armplusdsp.a -lOpenCL -locl_util -lstdc++ -lrt -lm -lgomp -lpthread 
24 LAPACKLIB = $(LIB_DIR)libcblaswr.a $(LIB_DIR)liblapack.a $(LIB_DIR)libf2c.a $(LIB_DIR)libcblas_armplusdsp.a -lOpenCL -locl_util -lstdc++ -lrt -lm -lgomp  -lpthread
25 TUNE_UTILS = ../common/print_header.o
26 TUNE_UTILS_OBJ = print_header.o
28 %.o: %.c
29         @$(CC) -c $(CFLAGS) $<
30         @echo Compiling $<
32 $(EXE):
34 clean:
35         @rm -f $(EXE) *.o *.dat ofld_tbl*.c