blob: 67b996e48b941259a174f4b30769ff9aacfe9992 [file] [log] [blame]
jsimonotd7e81ab2023-09-14 18:34:11 -04001ifndef 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
jsimonot230d2dd2023-10-12 11:33:13 -040036 $(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/ \;
jsimonotd7e81ab2023-09-14 18:34:11 -040040
jsimonot230d2dd2023-10-12 11:33:13 -040041clean:
jsimonotd7e81ab2023-09-14 18:34:11 -040042 rm -rf aemu
43 rm -rf gfxstream
jsimonot230d2dd2023-10-12 11:33:13 -040044 rm -f *.pinfo
45 @if [ -n "$${INSTALL_ROOT_nto}" ]; then \
46 rm -f $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/libgfxstream* ;\
47 fi
48