From b502b5241c20a9ea14067d145bc076d1ac78fea2 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 8 Mar 2024 15:55:48 +0100 Subject: [PATCH] base makefile docs, WIP Signed-off-by: falkTX --- Makefile.base.mk | 29 +++++++++++++++++++++++++---- Makefile.plugins.mk | 4 ++-- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/Makefile.base.mk b/Makefile.base.mk index 40468649..f80a3952 100644 --- a/Makefile.base.mk +++ b/Makefile.base.mk @@ -4,15 +4,22 @@ # Created by falkTX # -AR ?= ar -CC ?= gcc -CXX ?= g++ - # Before including this file, a few variables can be set in order to tweak build behaviour: + # DEBUG=true +# Building in debug mode +# Implies SKIP_STRIPPING=true as well + # NOOPT=true +# Do not automatically set optimization flags + # SKIP_STRIPPING=true +# Do not strip output binaries + # NVG_DISABLE_SKIPPING_WHITESPACE=true +# Tweak `nvgTextBreakLines` to allow space characters +# FIXME proper details + # NVG_FONT_TEXTURE_FLAGS=0 # FILE_BROWSER_DISABLED=true # WINDOWS_ICON_ID=0 @@ -21,9 +28,23 @@ CXX ?= g++ # USE_OPENGL3=true # USE_NANOVG_FBO=true # USE_NANOVG_FREETYPE=true + # STATIC_BUILD=true +# Tweak build to be able to generate fully static builds (e.g. skip use of libdl) +# Experimental, use only if you know what you are doing + # FORCE_NATIVE_AUDIO_FALLBACK=true +# Do not use JACK for the standalone, only native audio + # SKIP_NATIVE_AUDIO_FALLBACK=true +# Do not use native audio for the standalone, only use JACK + +# --------------------------------------------------------------------------------------------------------------------- +# Read target compiler from environment + +AR ?= ar +CC ?= gcc +CXX ?= g++ # --------------------------------------------------------------------------------------------------------------------- # Protect against multiple inclusion diff --git a/Makefile.plugins.mk b/Makefile.plugins.mk index 6a8ce268..b3b46cd9 100644 --- a/Makefile.plugins.mk +++ b/Makefile.plugins.mk @@ -1,6 +1,6 @@ #!/usr/bin/make -f -# Makefile for DPF Example Plugins # -# -------------------------------- # +# Makefile for DPF # +# ---------------- # # Created by falkTX #