Makefile_openmpacc-examples
1.61 KB
# OpenMP Accelerator Examples build targets
openmpacc-examples:
@echo ================================================
@echo Building the OpenMP Accelerator Examples
@echo ================================================
@cd example-applications; cd `find . -name "*openmpacc-examples*"`; . $(ENV_SETUP); make TARGET_ROOTDIR=$(SDK_PATH_TARGET) TI_OCL_CGT_INSTALL=$(SDK_PATH_TARGET)/usr/share/ti/cgt-c6x
openmpacc-examples_install:
@echo ==================================================
@echo Installing the OpenMP Accelerator Examples
@echo ==================================================
@if [ ! -d $(DESTDIR) ] ; then \
echo "The extracted target filesystem directory doesn't exist."; \
echo "Please run setup.sh in the SDK's root directory and then try again."; \
exit 1; \
fi
@cd example-applications; \
cd `find . -name "*openmpacc-examples*"`; \
for example in `find . -executable -not \( -type d -o -iname 'make*' \)`; do \
install -d $(DESTDIR)/usr/share/ti/examples/openmpacc/`dirname $${example}` ; \
install -m 755 $${example} $(DESTDIR)/usr/share/ti/examples/openmpacc/`dirname $${example}` ; \
if [ -f `dirname $${example}`/*.out ]; then \
install -m 755 `dirname $${example}`/*.out $(DESTDIR)/usr/share/ti/examples/openmpacc/`dirname $${example}` ; \
fi \
done
openmpacc-examples_clean:
@echo ==================================================
@echo Cleaning the OpenMP Accelerator Examples
@echo ==================================================
@cd example-applications; cd `find . -name "*openmpacc-examples*"`; . $(ENV_SETUP); make TARGET_ROOTDIR=$(SDK_PATH_TARGET) clean