summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2013-05-12 20:41:28 +0100
committerVincent Sanders <vince@netsurf-browser.org>2013-05-12 20:41:50 +0100
commitd34f03e69ef241db4eac442bce5d1143920bc3da (patch)
treea91630313ee6dfed324f2575fa801f90d727e2d2 /Makefile
parentba0cf5c949cd467dca4e4c777bfdfaf36edad47a (diff)
downloadnetsurf-d34f03e69ef241db4eac442bce5d1143920bc3da.tar.gz
netsurf-d34f03e69ef241db4eac442bce5d1143920bc3da.tar.bz2
add framebuffer cross compiling support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index df13b5ef0..32b1afd07 100644
--- a/Makefile
+++ b/Makefile
@@ -271,8 +271,21 @@ else
CXX := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*g++)
endif
else
- # All other targets (GTK, Framebuffer)
- PKG_CONFIG := pkg-config
+ ifeq ($(findstring framebuffer,$(TARGET)),framebuffer)
+ 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 native targets (GTK)
+ PKG_CONFIG := pkg-config
+ endif
endif
endif
endif