+ifeq ($(TEST_WEBLOGS),1)
+# For testing with large amount of weblogs data.
+OCAMLCPACKAGES := -package calendar,pcre,extlib -I ../../freeware/weblogs
+OCAMLCLIBS := -linkpkg weblogs.cma
+OCAMLOPTPACKAGES := $(OCAMLCPACKAGES)
+OCAMLOPTLIBS := -linkpkg weblogs.cmxa
+endif
+
+TARGETS := mmalloc ancient.cma ancient.cmxa META \
+ test_ancient.opt test_ancient_shared.opt
+
+ifeq ($(TEST_WEBLOGS),1)
+TARGETS += test_ancient_weblogs.opt
+endif
+
+all: $(TARGETS)