1ifndef QCONFIG 2QCONFIG=qconfig.mk 3endif 4include $(QCONFIG) 5 6.PHONY: gfxstream 7.PHONY: aemu 8.PHONY: clean 9.PHONY: install 10 11all: gfxstream 12 13check-sdp: 14 @if [ -z "$${QNX_TARGET}" ]; then \ 15 echo "'QNX_TARGET' not set. Make sure QNX SDP environment is configured"; \ 16 exit 1; \ 17 fi 18 @if [ -z "$${QNX_HOST}" ]; then \ 19 echo "'QNX_HOST' not set. Make sure QNX SDP environment is configured"; \ 20 exit 1; \ 21 fi 22 23check-install-root: 24 @if [ -z "$${INSTALL_ROOT_nto}" ]; then \ 25 echo "'INSTALL_ROOT_nto' not set."; \ 26 exit 1; \ 27 fi 28 29aemu: check-sdp 30 ../build-aemu.sh 31 32gfxstream: check-sdp aemu 33 ../build-gfxstream.sh 34 35install: check-sdp check-install-root gfxstream 36 $(MAKE) -f ../../pinfo.mk gfxstream/host/libgfxstream* 37 $(LN_HOST) -s libgfxstream_backend.so gfxstream/host/libgfxstream.so 38 find gfxstream/host/ -maxdepth 1 \( -type f -o -type l \) -name "libgfxstream*" \ 39 -exec $(CP_HOST) -d {} $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/ \; 40 41clean: 42 rm -rf aemu 43 rm -rf gfxstream 44 rm -f *.pinfo 45 @if [ -n "$${INSTALL_ROOT_nto}" ]; then \ 46 rm -f $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/libgfxstream* ;\ 47 fi 48 49