$OpenBSD: patch-tests_Makefile,v 1.7 2012/04/19 06:39:42 jasper Exp $ - Remove GNU make crap that never applied to us anyway. --- tests/Makefile.orig Thu Apr 19 08:38:39 2012 +++ tests/Makefile Thu Apr 19 08:39:02 2012 @@ -19,48 +19,10 @@ CFLAGS += -Wall #CFLAGS += -std=c89 CFLAGS += ${EXTRA_CFLAGS} -ifeq ($(HASH_DEBUG),1) -CFLAGS += -DHASH_DEBUG=1 -endif - -ifeq ($(HASH_PEDANTIC),1) -CFLAGS += -pedantic -endif - TEST_TARGET=run_tests TESTS=./do_tests MUR_CFLAGS = -DHASH_USING_NO_STRICT_ALIASING -fno-strict-aliasing -# On GNU we use -fno-strict-aliasing when using the Murmurhash -ifneq ($(strip $(shell $(CC) -v 2>&1 |egrep "gcc")),) -ifeq ($(HASH_FUNCTION),"HASH_MUR") - CFLAGS += $(MUR_CFLAGS) -endif -endif - -# detect Cygwin -ifneq ($(strip $(shell $(CC) -v 2>&1 |grep "cygwin")),) - TESTS=./do_tests.cygwin -endif - -# detect MinGW -ifneq ($(strip $(shell $(CC) -v 2>&1 |grep "mingw")),) - TEST_TARGET=run_tests_mingw - TESTS=./do_tests.mingw -endif - -#detect Linux (platform specific utilities) -ifneq ($(strip $(shell $(CC) -v 2>&1 |grep "linux")),) - PLAT_UTILS = hashscan sleep_test -endif - -#detect FreeBSD (platform specific utilities) -ifeq ($(strip $(shell uname -s)), FreeBSD) - ifeq ($(shell if [ `sysctl -n kern.osreldate` -ge 0801000 ]; then echo "ok"; fi), ok) - PLAT_UTILS = hashscan sleep_test - endif -endif - all: $(PROGS) $(UTILS) $(PLAT_UTILS) $(FUNCS) $(SPECIAL_FUNCS) $(TEST_TARGET)