aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 15:51:05 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 15:51:05 +0200
commit9c3892b09a439e5bafa80b7c9ef910b5af0d8598 (patch)
tree7ba487b98d80389f509845c8649ec65b3dcc9496 /Makefile
parent5e624647d2f2750cf1fe7f97d8c89718d187879d (diff)
downloadbokf-9c3892b09a439e5bafa80b7c9ef910b5af0d8598.tar.gz
bokf-9c3892b09a439e5bafa80b7c9ef910b5af0d8598.zip
build: wire the SMTP client into the test suite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 71abbbf..b55fca3 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/secret.c
+ src/formula.c src/pdf.c src/invoice.c src/secret.c src/smtp.c
VENDOR_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(VENDOR_SRC))
CORE_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(CORE_SRC))
@@ -62,12 +62,18 @@ $(BUILD)/test_invoice: $(BUILD)/tests/invoice_check.o $(BUILD)/src/invoice.o \
$(BUILD)/vendor/sha256.o
$(CC) $(CFLAGS) -o $@ $^ -lm -lssl -lcrypto
+$(BUILD)/test_smtp: $(BUILD)/tests/smtp_check.o $(BUILD)/src/smtp.o \
+ $(BUILD)/src/util.o $(BUILD)/src/log.o \
+ $(BUILD)/vendor/sha256.o
+ $(CC) $(CFLAGS) -o $@ $^ -lm -lssl -lcrypto
+
test: check $(BUILD)/test_core $(BUILD)/test_tui $(BUILD)/test_pdf \
- $(BUILD)/test_invoice
+ $(BUILD)/test_invoice $(BUILD)/test_smtp
$(BUILD)/test_core
$(BUILD)/test_tui
$(BUILD)/test_pdf
$(BUILD)/test_invoice
+ $(BUILD)/test_smtp
test-core: $(BUILD)/test_core
$(BUILD)/test_core