Rename AUTOCONF to M.CONFIG to make it clearer that it's Makefile.config governing the behaviour. Add support for Makefile.config.override so we stop checking in the disabling of HARU by mistake. Ensure the M.CONFIG lines do not appear when doing make clean.

svn path=/trunk/netsurf/; revision=4796
This commit is contained in:
Daniel Silverstone 2008-07-29 09:44:13 +00:00
parent 4c6006e6f4
commit 4c4309ecac
2 changed files with 18 additions and 5 deletions

View File

@ -154,9 +154,13 @@ define feature_enabled
ifeq ($$(NETSURF_USE_$(1)),YES) ifeq ($$(NETSURF_USE_$(1)),YES)
CFLAGS += $(2) CFLAGS += $(2)
LDFLAGS += $(3) LDFLAGS += $(3)
$$(info AUTOCONF: building with $(4)) ifneq ($(MAKECMDGOALS),clean)
$$(info M.CONFIG: building with $(4))
endif
else else
$$(info AUTOCONF: building without $(4)) ifneq ($(MAKECMDGOALS),clean)
$$(info M.CONFIG: building without $(4))
endif
endif endif
endef endef
@ -175,19 +179,25 @@ define pkg_config_find_and_add
NETSURF_USE_$(1) := YES NETSURF_USE_$(1) := YES
endif endif
else else
$$(info AUTOCONF: building with $(3)) ifneq ($(MAKECMDGOALS),clean)
$$(info M.CONFIG: building with $(3))
endif
endif endif
ifeq ($$(NETSURF_USE_$(1)),YES) ifeq ($$(NETSURF_USE_$(1)),YES)
ifeq ($$(NETSURF_FEATURE_$(1)_AVAILABLE),yes) ifeq ($$(NETSURF_FEATURE_$(1)_AVAILABLE),yes)
CFLAGS += $$(shell $$(PKG_CONFIG) --cflags $(2)) $$(NETSURF_FEATURE_$(1)_CFLAGS) CFLAGS += $$(shell $$(PKG_CONFIG) --cflags $(2)) $$(NETSURF_FEATURE_$(1)_CFLAGS)
LDFLAGS += $$(shell $$(PKG_CONFIG) --libs $(2)) $$(NETSURF_FEATURE_$(1)_LDFLAGS) LDFLAGS += $$(shell $$(PKG_CONFIG) --libs $(2)) $$(NETSURF_FEATURE_$(1)_LDFLAGS)
$$(info AUTOCONF: auto-enabled $(3) ($(2)).) ifneq ($(MAKECMDGOALS),clean)
$$(info M.CONFIG: auto-enabled $(3) ($(2)).)
endif
else else
$$(error Unable to find library for: $(3) ($(2)) $$(error Unable to find library for: $(3) ($(2))
endif endif
endif endif
else else
$$(info AUTOCONF: building without $(3)) ifneq ($(MAKECMDGOALS),clean)
$$(info M.CONFIG: building without $(3))
endif
endif endif
endef endef

View File

@ -82,3 +82,6 @@ ifeq ($(TARGET),gtk)
endif endif
# Include any local overrides
-include Makefile.config.override