make monkey target take notice of GCCSDK_INSTALL_ENV and

GCCSDK_INSTALL_CROSSBIN environment values
This commit is contained in:
Vincent Sanders 2012-12-13 15:33:54 +00:00
parent 25e85f1429
commit 5a5451a0c5
1 changed files with 15 additions and 2 deletions

View File

@ -260,8 +260,21 @@ else
endif
endif
else
# Building for GTK, Framebuffer
PKG_CONFIG := pkg-config
ifeq ($(TARGET),monkey)
ifeq ($(origin GCCSDK_INSTALL_ENV),undefined)
PKG_CONFIG := pkg-config
else
PKG_CONFIG := PKG_CONFIG_LIBDIR="$(GCCSDK_INSTALL_ENV)/lib/pkgconfig" pkg-config
endif
ifneq ($(origin GCCSDK_INSTALL_CROSSBIN),undefined)
CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
CXX := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*g++)
endif
else
# All other targets (GTK, Framebuffer)
PKG_CONFIG := pkg-config
endif
endif
endif
endif