summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-07-20 16:30:12 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-07-20 16:30:12 +0100
commitae7d1141012c438c1ec101747038f83c9db33d7a (patch)
treefb8e9dc06894e1db7f5ed00db2f8f328736f92e9
parent82fe8989aefa072215d223cf92a1a1e7e7e7228a (diff)
downloadnetsurf-ae7d1141012c438c1ec101747038f83c9db33d7a.tar.gz
netsurf-ae7d1141012c438c1ec101747038f83c9db33d7a.tar.bz2
Plumbing for Atari cross-compilation
-rw-r--r--Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 22212a4d2..d51936fbb 100644
--- a/Makefile
+++ b/Makefile
@@ -241,8 +241,25 @@ else
ifeq ($(TARGET),cocoa)
PKG_CONFIG := PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):/usr/local/lib/pkgconfig" pkg-config
else
- # Building for GTK, Framebuffer, Atari
- PKG_CONFIG := pkg-config
+ ifeq ($(TARGET),atari)
+ ifeq ($(HOST),atari)
+ PKG_CONFIG := pkg-config
+ else
+ ifeq ($(HOST),mint)
+ PKG_CONFIG := pkg-config
+ else
+ GCCSDK_INSTALL_ENV ?= /opt/netsurf/m68k-atari-mint/env
+ GCCSDK_INSTALL_CROSSBIN ?= /opt/netsurf/m68k-atari-mint/cross/bin
+
+ CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
+
+ PKG_CONFIG := PKG_CONFIG_LIBDIR="$(GCCSDK_INSTALL_ENV)/lib/pkgconfig" pkg-config
+ endif
+ endif
+ else
+ # Building for GTK, Framebuffer
+ PKG_CONFIG := pkg-config
+ endif
endif
endif
endif