From 3d40da553989938c4c093a700f11cd54284b30e8 Mon Sep 17 00:00:00 2001 From: Larry Baker Date: Thu, 28 May 2020 17:02:40 -0700 Subject: [PATCH] makefile: Add option to explicitly build without SDL2 video: NOVIDEO=1 --- makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/makefile b/makefile index daf0b681..2b610fd9 100644 --- a/makefile +++ b/makefile @@ -36,6 +36,10 @@ # simulators without networking support, invoking GNU make with # NONETWORK=1 will do the trick. # +# By default, video support is enabled if the SDL/SDL2 development +# headers and libraries are available. To force a build without video +# support, invoke GNU make with NOVIDEO=1. +# # The default build will build compiler optimized binaries. # If debugging is desired, then GNU make can be invoked with # DEBUG=1 on the command line. @@ -145,6 +149,10 @@ endif ifneq ($(NONETWORK),) NETWORK_USEFUL = endif +# ... or without video support +ifneq ($(NOVIDEO),) + VIDEO_USEFUL = +endif find_exe = $(abspath $(strip $(firstword $(foreach dir,$(strip $(subst :, ,${PATH})),$(wildcard $(dir)/$(1)))))) find_lib = $(abspath $(strip $(firstword $(foreach dir,$(strip ${LIBPATH}),$(wildcard $(dir)/lib$(1).${LIBEXT}))))) find_include = $(abspath $(strip $(firstword $(foreach dir,$(strip ${INCPATH}),$(wildcard $(dir)/$(1).h)))))