X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=Makefile;h=b335a02a28e34d6c74422923468fa1fc11640070;hb=c09f96c65c1d62b2f21bf592e5927c3e07e2906b;hp=8f8f4b7daf8ae73eb0f7055a7145336894334491;hpb=f4a2568d3c77fb8d0f9ac33118f6be8bc1f616a6;p=reservoir_sample diff --git a/Makefile b/Makefile index 8f8f4b7..b335a02 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,8 @@ MAKEDEPEND = $(CC) -MM TARGETS = reservoir_sample TEST_DIR = test -TESTS = $(addprefix $(TEST_DIR)/, reservoir_sample_test) -SOURCES = reservoir_sample.c notify.c +TESTS = $(addprefix $(TEST_DIR)/, buf_test reservoir_test) +SOURCES = reservoir_sample.c notify.c buf.c randomness.c reservoir.c OBJECTS = $(SOURCES:.c=.o) TEST_OBJECTS = $(TESTS:=.o) test_suite.o @@ -39,12 +39,15 @@ check: test echo Checking $${t};\ ./$${t} > /dev/null || echo -- $${t} FAILED --;\ done + $(TEST_DIR)/validate-statistics.sh $(TEST_DIR)/%_test.o: %.c $(CC) $(CFLAGS) $(CPPFLAGS) -DTEST -c -o $@ $< -$(TEST_DIR)/reservoir_sample_test: %: %.o test_suite.o notify.o +$(TEST_DIR)/buf_test: %: %.o test_suite.o notify.o -reservoir_sample: %: %.o notify.o +$(TEST_DIR)/reservoir_test: %: %.o test_suite.o notify.o buf.o randomness.o + +reservoir_sample: %: %.o notify.o buf.o randomness.o reservoir.o -include .depend