From 5db541a6d7e1d6ae7792e392f8e7dd5d5b07345f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 17 Jan 2021 20:06:24 +0000 Subject: Improve target setup in makefiles split out HOST TARGET and SUBTARGET generation into separate file. split out target(frontend) specific tool settings into separate files. --- frontends/windows/Makefile.tools | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 frontends/windows/Makefile.tools (limited to 'frontends/windows/Makefile.tools') diff --git a/frontends/windows/Makefile.tools b/frontends/windows/Makefile.tools new file mode 100644 index 000000000..dff3dfec3 --- /dev/null +++ b/frontends/windows/Makefile.tools @@ -0,0 +1,19 @@ +# -*- mode: makefile-gmake -*- +## +## windows (win32) target tool setup +## + +ifneq ($(HOST),windows) + # Set Mingw defaults + GCCSDK_INSTALL_ENV ?= /opt/netsurf/i686-w64-mingw32/env + GCCSDK_INSTALL_CROSSBIN ?= /opt/netsurf/i686-w64-mingw32/cross/bin + + CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc) + WINDRES := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*windres) + + PKG_CONFIG := PKG_CONFIG_LIBDIR="$(GCCSDK_INSTALL_ENV)/lib/pkgconfig" pkg-config +else + # Building on Windows + CC := gcc + PKG_CONFIG := +endif -- cgit v1.2.3