X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=makefile;h=8f508379e6903376f91f7fa24392d65127feb2a1;hp=1c9a3b6075038bde1975d083c912de2e2019df10;hb=95cfcadf0f8f69f4237cde9a61ea6c64b40f8043;hpb=9ec5405d406696c6cbdb7a47ade7fccc736a8b53 diff --git a/makefile b/makefile index 1c9a3b6..8f50837 100644 --- a/makefile +++ b/makefile @@ -8,13 +8,15 @@ OPT := -fwhole-program -combine -03 #-DNDEBUG CFLAGS := -g -Wall -Werror -std=c99 -m64 -fnested-functions #$(OPT) #-DENABLE_TRACE INCS := $(addprefix -I, include) -TESTS := output/rcu_test output/list_test output/ht_test +TESTS := output/rcu_test output/list_test output/ht_test output/txn_test EXES := $(TESTS) -RUNTIME_SRCS := runtime/runtime.c runtime/rcu.c runtime/lwt.c runtime/mem.c runtime/CuTest.c -rcu_test_SRCS := $(RUNTIME_SRCS) -list_test_SRCS := $(RUNTIME_SRCS) struct/list.c -ht_test_SRCS := $(RUNTIME_SRCS) struct/ht.c struct/ht_test.c +RUNTIME_SRCS := runtime/runtime.c runtime/rcu.c runtime/lwt.c runtime/mem.c +TEST_SRCS := $(RUNTIME_SRCS) +rcu_test_SRCS := $(TEST_SRCS) +list_test_SRCS := $(TEST_SRCS) struct/list.c +ht_test_SRCS := $(TEST_SRCS) struct/ht.c test/ht_test.c test/CuTest.c +txn_test_SRCS := $(TEST_SRCS) struct/ht.c txn/txn.c tests: $(TESTS)