summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index bb2e71a5e..1f1764953 100644
--- a/Makefile
+++ b/Makefile
@@ -105,15 +105,24 @@ endif
# updates makefile.config if it's outdated
ifneq ($(MAKEFILE_VERSION),$(CONFIG_VERSION))
-UPDATECONFIG:=upgradeconf
-CONFIG_INCLUDED:=
-else
-# this should define SDL-CONFIG for manual configuration
-ifeq ($(shell uname),FreeBSD)
-SDL-CONFIG:=sdl11-config
+ ifndef MANUAL_CONFIG # manual config should not check this
+ UPDATECONFIG:=upgradeconf
+ CONFIG_INCLUDED:=
+ else
+ # this should define SDL-CONFIG for manual configuration
+ ifeq ($(shell uname),FreeBSD)
+ SDL-CONFIG:=sdl11-config
+ else
+ SDL-CONFIG:=sdl-config
+ endif
+ endif
else
-SDL-CONFIG:=sdl-config
-endif
+ # this should define SDL-CONFIG for manual configuration
+ ifeq ($(shell uname),FreeBSD)
+ SDL-CONFIG:=sdl11-config
+ else
+ SDL-CONFIG:=sdl-config
+ endif
endif
ifndef CONFIG_INCLUDED