openbsd-ports/devel/uthash/patches/patch-tests_Makefile
2007-01-11 17:42:21 +00:00

29 lines
760 B
Plaintext

$OpenBSD: patch-tests_Makefile,v 1.2 2007/01/11 17:42:21 jasper Exp $
--- tests/Makefile.orig Wed Nov 22 04:25:44 2006
+++ tests/Makefile Thu Jan 11 17:26:45 2007
@@ -3,19 +3,15 @@ FUNCS = BER SAX FNV OAT JEN JSW
UTILS = bkt
PROGS = test1 test2 test3 test4 test5 test6 test7 test8 test9 \
test10 test11 test12 test13 test14 test15 test16 test17
-CFLAGS = -I$(HASHDIR) -g
+CFLAGS += -I$(HASHDIR) -g
-ifeq ($(HASH_DEBUG),1)
-CFLAGS += -DHASH_DEBUG=1
-endif
-
TESTS=./do_tests
+# gnu make idiom..
# detect Cygwin
-ifneq ($(strip $(shell $(CC) -v 2>&1 |grep "cygwin")),)
- TESTS=./do_tests.cygwin
-endif
-
+#ifneq ($(strip $(shell $(CC) -v 2>&1 |grep "cygwin")),)
+# TESTS=./do_tests.cygwin
+#endif
all: $(PROGS) $(UTILS) $(FUNCS) run_tests