summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-20 22:00:01 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-20 22:00:01 +0200
commit10a535ace098144980d0ffd1593f6384c39cc221 (patch)
tree53a7c6c5026d479c4b6d5fd4e5b341474cd190fa /Makefile
parent3a5a6d3b04dc4e17a42225afb243eecb3502ead6 (diff)
downloadbokf-10a535ace098144980d0ffd1593f6384c39cc221.tar.gz
bokf-10a535ace098144980d0ffd1593f6384c39cc221.zip
tui: split bokftui into screen files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4061c1f..f0b2255 100644
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,18 @@ $(BUILD)/bokfctl: $(BUILD)/clients/bokfctl.o $(BUILD)/clients/client.o \
$(BUILD)/vendor/sha256.o
$(CC) $(CFLAGS) -o $@ $^ -lm $(SSL_LIBS)
-$(BUILD)/bokftui: $(BUILD)/clients/bokftui.o $(BUILD)/clients/tui.o \
+TUI_SCREENS = clients/screens_dashboard.c clients/screens_vouchers.c \
+ clients/screens_accounts.c clients/screens_reports.c \
+ clients/screens_rules.c clients/screens_attachments.c \
+ clients/screens_bank.c clients/screens_audit.c \
+ clients/screens_templates.c clients/screens_ib.c \
+ clients/screens_settings.c clients/screens_invoices.c \
+ clients/screens_bokslut.c
+TUI_SCREEN_OBJ = $(patsubst %.c,$(BUILD)/%.o,$(TUI_SCREENS))
+TUI_SCREEN_DEP = $(TUI_SCREEN_OBJ:.o=.d)
+
+$(BUILD)/bokftui: $(BUILD)/clients/bokftui.o $(BUILD)/clients/ui.o \
+ $(TUI_SCREEN_OBJ) $(BUILD)/clients/tui.o \
$(BUILD)/clients/client.o \
$(BUILD)/src/util.o $(BUILD)/src/log.o $(BUILD)/src/formula.o \
$(BUILD)/vendor/yyjson.o $(BUILD)/vendor/sha256.o
@@ -116,6 +127,7 @@ $(BUILD)/tests/%.o: tests/%.c
-include $(VENDOR_OBJ:.o=.d) $(CORE_OBJ:.o=.d) $(BUILD)/src/bokfd.d \
$(BUILD)/clients/bokfctl.d $(BUILD)/clients/bokftui.d \
+ $(BUILD)/clients/ui.d $(TUI_SCREEN_DEP) \
$(BUILD)/clients/tui.d $(BUILD)/clients/client.d \
$(BUILD)/tests/test_core.d $(BUILD)/tests/test_tui.d