projects
/
reservoir_sample
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split code into modules, handle USR1, minor fixes.
[reservoir_sample]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 8f8f4b7daf8ae73eb0f7055a7145336894334491..405e0337e375fe2003d988e481109329f0286384 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-13,8
+13,8
@@
MAKEDEPEND = $(CC) -MM
TARGETS = reservoir_sample
TEST_DIR = test
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
OBJECTS = $(SOURCES:.c=.o)
TEST_OBJECTS = $(TESTS:=.o) test_suite.o
@@
-43,8
+43,10
@@
check: test
$(TEST_DIR)/%_test.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -DTEST -c -o $@ $<
$(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
-include .depend