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/atari/Makefile.tools | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 frontends/atari/Makefile.tools (limited to 'frontends/atari') diff --git a/frontends/atari/Makefile.tools b/frontends/atari/Makefile.tools new file mode 100644 index 000000000..971ab21be --- /dev/null +++ b/frontends/atari/Makefile.tools @@ -0,0 +1,19 @@ +# -*- mode: makefile-gmake -*- +## +## atari target tool setup +## + +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 \ No newline at end of file -- cgit v1.2.3