diff --git a/makefile b/Makefile
similarity index 62%
rename from makefile
rename to Makefile
index ae34f696c9c3c61bbd53033ae01f4c914b001911..cdb523f9f82b087ed2eb1b98aac25088a8e127ac 100644 (file)
rename from makefile
rename to Makefile
index ae34f696c9c3c61bbd53033ae01f4c914b001911..cdb523f9f82b087ed2eb1b98aac25088a8e127ac 100644 (file)
--- a/makefile
+++ b/Makefile
-.PHONY: clean linalg_ARMonly linalg install build
+DESTDIR = "/evmk2h_nfs"
+
+.PHONY: clean ARMonly linalg install build
-LINALG_BUILD_DIR = build
LINALG_BLIS_DIR = blis
LINALG_CBLAS_DIR = cblas
LINALG_BLISACC_DIR = blasblisacc
-build: linalg_ARMonly
+prebuild: DSPonly
+build: ARMonly
+linalg: ARMplusDSP
-linalg:
+ARMplusDSP:
cd $(LINALG_CBLAS_DIR); make arch=ARM alllib; make arch=C66 alllib; \
cd ../$(LINALG_BLIS_DIR); ./configure -p install/c66x c66x; make -j8; make install; \
./configure -p install/arm cortex-a15; make -j8; make install; \
cd ../$(LINALG_BLISACC_DIR); make cross; \
cd ../$(LINALG_BLIS_DIR)/testsuite; make lib=OpenCLCBLAS -j8
-linalg_ARMonly:
+DSPonly:
+ cd $(LINALG_CBLAS_DIR); make arch=C66 alllib; \
+ cd ../$(LINALG_BLIS_DIR); ./configure -p install/c66x c66x; make -j8; make install
+
+ARMonly:
cd $(LINALG_CBLAS_DIR); make arch=ARM alllib; \
cd ../$(LINALG_BLIS_DIR); ./configure -p install/arm cortex-a15; make -j8; make install; \
cd ../$(LINALG_BLISACC_DIR); make cross; \
cd ../$(LINALG_BLISACC_DIR); make clean; \
cd ../$(LINALG_BLIS_DIR)/testsuite; make clean
+install:
+ install -m 755 -d ${DESTDIR}/usr/include
+ install -m 755 -d ${DESTDIR}/usr/lib
+ install -m 755 -d ${DESTDIR}/usr/share/ti/examples/linalg
+ cp $(LINALG_BLISACC_DIR)/lib/libcblas_armplusdsp.a ${DESTDIR}/usr/lib
+ cp $(LINALG_BLIS_DIR)/install/arm/lib/libblis-*-cortex-a15.a /usr/lib/libblis.a
+
+
\ No newline at end of file