From e5d79225e3eef5c39be7f8e5006e331ed0f76f2f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 9 May 2012 11:00:10 +0200 Subject: [PATCH] Sorter debugging tools can be compiled again --- debug/default.cfg | 1 + ucw/default.cfg | 3 +++ ucw/sorter/Makefile | 3 ++- ucw/sorter/debug/Makefile | 14 +++++++------- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/debug/default.cfg b/debug/default.cfg index cca794ec..f6593577 100644 --- a/debug/default.cfg +++ b/debug/default.cfg @@ -5,6 +5,7 @@ Include("default.cfg"); Set("CONFIG_LOCAL"); UnSet("CONFIG_SHARED"); Set("CONFIG_DEBUG"); +Set("CONFIG_UCW_DEBUG_TOOLS"); Set("CONFIG_EXACT_CPU"); Set("CONFIG_IMAGES"); diff --git a/ucw/default.cfg b/ucw/default.cfg index 4d25df7d..a85b7768 100644 --- a/ucw/default.cfg +++ b/ucw/default.cfg @@ -66,5 +66,8 @@ Set("CONFIG_UCW_FB_DIRECT"); UnSet("CONFIG_UCW_POSIX_REGEX"); UnSet("CONFIG_UCW_PCRE"); +# Compile tools used for debugging and testing of LibUCW +UnSet("CONFIG_UCW_DEBUG_TOOLS"); + # Return success 1; diff --git a/ucw/sorter/Makefile b/ucw/sorter/Makefile index 7b7d7c07..6bf98ed4 100644 --- a/ucw/sorter/Makefile +++ b/ucw/sorter/Makefile @@ -7,8 +7,9 @@ LIBUCW_SORTER_INCLUDES=$(addprefix sorter/, array.h array-simple.h common.h s-fi s-internal.h s-multiway.h s-radix.h s-twoway.h sorter.h) LIBUCW_INCLUDES+=$(LIBUCW_SORTER_INCLUDES) -ifdef CONFIG_DEBUG_TOOLS +ifdef CONFIG_UCW_DEBUG_TOOLS PROGS+=$(o)/ucw/sorter/sort-test +include $(s)/ucw/sorter/debug/Makefile endif TESTS+=$(o)/ucw/sorter/sort-test.test diff --git a/ucw/sorter/debug/Makefile b/ucw/sorter/debug/Makefile index 1ef8c620..e489e5b8 100644 --- a/ucw/sorter/debug/Makefile +++ b/ucw/sorter/debug/Makefile @@ -1,10 +1,10 @@ # Tests related to the new sorter -DIRS+=debug/sorter -PROGS+=$(addprefix $(o)/debug/sorter/,radix-tune-bits radix-tune-thresh) +DIRS+=ucw/sorter/debug +PROGS+=$(addprefix $(o)/ucw/sorter/debug/,radix-tune-bits radix-tune-thresh retros) -$(o)/debug/sorter/retros: $(o)/debug/sorter/retros.o $(LIBSH) -$(o)/debug/sorter/radix-file-test: $(o)/debug/sorter/radix-file-test.o $(LIBSH) -$(o)/debug/sorter/radix-asio-test: $(o)/debug/sorter/radix-asio-test.o $(LIBSH) -$(o)/debug/sorter/radix-tune-bits: $(s)/debug/sorter/radix-tune-bits.sh -$(o)/debug/sorter/radix-tune-thresh: $(s)/debug/sorter/radix-tune-thresh.sh +$(o)/ucw/sorter/debug/retros: $(o)/ucw/sorter/debug/retros.o $(LIBUCW) +$(o)/ucw/sorter/debug/radix-file-test: $(o)/ucw/sorter/debug/radix-file-test.o $(LIBUCW) +$(o)/ucw/sorter/debug/radix-asio-test: $(o)/ucw/sorter/debug/radix-asio-test.o $(LIBUCW) +$(o)/ucw/sorter/debug/radix-tune-bits: $(s)/ucw/sorter/debug/radix-tune-bits.sh +$(o)/ucw/sorter/debug/radix-tune-thresh: $(s)/ucw/sorter/debug/radix-tune-thresh.sh -- 2.39.2