aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-28 10:43:45 +0100
committereunhhu <[email protected]>2026-09-28 10:43:45 +0100
commitcff25dd387376311b09bab3a58377fecbfe818e4 (patch)
tree13dcd7c742785f3f13d2466e02e10012479d0418 /Makefile
parent923576863660d995476dffc7b285ee20e9707f27 (diff)
downloadpure-cff25dd387376311b09bab3a58377fecbfe818e4.tar.gz
pure-cff25dd387376311b09bab3a58377fecbfe818e4.zip
Log an app's saves in reused segments and write list images whole beside the store
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f03f07a..91cb191 100644
--- a/Makefile
+++ b/Makefile
@@ -17,11 +17,11 @@ BUILD ?= build
# libpure.a is the app model with the tree store: what a host embeds (Vega's
# surfaces link it). prototypes/ keeps the earlier document runtime (000-077).
# Unit tests sit by their part (core/test-module.c, store/test-tree-store.c,
-# serve/test-message-json.c);
+# store/test-log.c, serve/test-message-json.c);
# tests/check.py checks the hosts end to end.
INCLUDES = -Icore
MODEL = core/module.c core/module-list.c core/module-save.c core/module-text.c core/module-store.c core/flow.c
-STORE = store/store-tree.c
+STORE = store/store-tree.c store/store-log.c
SERVE = serve/serve.c serve/deliver.c serve/message-json.c serve/crypto.c
HEADERS = $(wildcard core/*.h) $(wildcard serve/*.h) $(wildcard store/*.h)
OBJECTS = $(patsubst %.c,$(BUILD)/obj/%.o,$(MODEL) $(STORE))
@@ -65,6 +65,10 @@ $(BUILD)/test-message-json: serve/test-message-json.c serve/message-json.c $(BUI
$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -Iserve serve/test-message-json.c serve/message-json.c $(BUILD)/libpure.a \
$(LDFLAGS) -lm $(LDLIBS) -o $@
+$(BUILD)/test-log: store/test-log.c store/store-log.c $(HEADERS)
+ @mkdir -p $(BUILD)
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DPURE_STORE_TEST store/test-log.c store/store-log.c $(LDFLAGS) $(LDLIBS) -o $@
+
$(BUILD)/test-tree-store: store/test-tree-store.c $(STORE) $(HEADERS)
@mkdir -p $(BUILD)
$(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -DPURE_STORE_TEST store/test-tree-store.c $(STORE) $(LDFLAGS) $(LDLIBS) -o $@
@@ -72,8 +76,9 @@ $(BUILD)/test-tree-store: store/test-tree-store.c $(STORE) $(HEADERS)
# The HTTP host's checks build their apps with aup (the sibling checkout) and
# compare documents with the earlier document server.
AUP ?= ../aup
-check: all $(BUILD)/test-module $(BUILD)/test-tree-store $(BUILD)/test-message-json
+check: all $(BUILD)/test-module $(BUILD)/test-tree-store $(BUILD)/test-log $(BUILD)/test-message-json
$(BUILD)/test-tree-store
+ $(BUILD)/test-log
$(BUILD)/test-module
$(BUILD)/test-message-json
$(MAKE) -C $(AUP) build/aup