aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 15:43:38 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 15:43:38 +0200
commitfb2addedce94bea29c9be5eab2786e621a5d0e65 (patch)
tree3f34a500615937793e1a66909ee1550a2444134b
parentf3b3f2c4f944c98a341f406abd2e4a6b7b69da36 (diff)
secret: build it as its own unit
-rw-r--r--Makefile2
-rw-r--r--src/commands.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9ea5604..71abbbf 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ VENDOR_SRC = vendor/sqlite3.c vendor/yyjson.c vendor/sha256.c \
CORE_SRC = src/util.c src/log.c src/config.c src/db.c src/auth.c \
src/sessions.c src/audit.c src/protocol.c src/commands.c \
src/seed.c src/ledger.c src/reports.c src/sru.c src/sie.c \
- src/formula.c src/pdf.c src/invoice.c
+ src/formula.c src/pdf.c src/invoice.c src/secret.c
VENDOR_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(VENDOR_SRC))
CORE_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(CORE_SRC))
diff --git a/src/commands.c b/src/commands.c
index 6100d6a..0ac9ace 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -26,9 +26,6 @@
#include "util.h"
#include "version.h"
-/* src/secret.c is not part of CORE_SRC; compile it as part of this unit. */
-#include "secret.c"
-
/* ------------------------------------------------------------------ */
/* small helpers */
/* ------------------------------------------------------------------ */