From 0dd99429c1c1facb25a7e534bcb9e05fbc680288 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Fri, 14 Sep 2007 17:43:36 +0200 Subject: [PATCH] Revert "Use the new OBJS-unless$(CONFIG_FOO) instead of $(call not,...)" This reverts commit e07354f5d5771e1e1dc9087a04685c8484ea8c98. --- Makefile.config.in | 4 ++++ Makefile.lib | 3 ++- src/util/Makefile | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile.config.in b/Makefile.config.in index 126d7c48..40541f19 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -185,6 +185,10 @@ MAKE_COLOR = @MAKE_COLOR@ LIB_O_NAME = lib.o +# Reverse a CONFIG_* string +# Usage $(call not,$(CONFIG_FOO)) +not = $(if $(findstring yes,$(1)),no,yes) + ### This is here because Makefile.config is usually the first thing ### we get and sometimes the all rule can be implicit, yet we want ### it always as the default one. So this should make sure it always diff --git a/Makefile.lib b/Makefile.lib index 37ca62cb..96c85185 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -191,7 +191,8 @@ test-default: ifdef TEST_PROGS TESTDEPS-$(CONFIG_DEBUG) += $(top_builddir)/src/util/memdebug.o -TESTDEPS-unless$(CONFIG_SMALL) += $(top_builddir)/src/util/fastfind.o +TESTDEPS-$(call not,$(CONFIG_SMALL)) += \ + $(top_builddir)/src/util/fastfind.o \ # Add most of the basic utility library to the test dependencies. TESTDEPS += \ diff --git a/src/util/Makefile b/src/util/Makefile index 1a453c4d..17b03227 100644 --- a/src/util/Makefile +++ b/src/util/Makefile @@ -3,7 +3,7 @@ include $(top_builddir)/Makefile.config INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS) -OBJS-unless$(CONFIG_SMALL) += fastfind.o +OBJS-$(call not,$(CONFIG_SMALL)) += fastfind.o OBJS-$(CONFIG_CSS) += scanner.o OBJS-$(CONFIG_DEBUG) += memdebug.o OBJS-$(CONFIG_DOM) += scanner.o @@ -12,14 +12,14 @@ OBJS-$(CONFIG_DOM) += scanner.o # (either the real thing or GNUTLS compat wrappers). OBJS-$(CONFIG_OWN_LIBC) += md5.o ifeq ($(CONFIG_GNUTLS_OPENSSL_COMPAT),no) -OBJS-unless$(CONFIG_OPENSSL) += md5.o +OBJS-$(call not,$(CONFIG_OPENSSL)) += md5.o endif ifeq ($(CONFIG_BITTORRENT),yes) # BitTorrent is the only user. Compile in SHA1 if testing libc or # there is no OpenSSL. The GNUTLS OpenSSL wrappers doesn't have it. OBJS-$(CONFIG_OWN_LIBC) += sha1.o -OBJS-unless$(CONFIG_OPENSSL) += sha1.o +OBJS-$(call not,$(CONFIG_OPENSSL)) += sha1.o endif OBJS = \