-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (25 loc) · 999 Bytes
/
Makefile
File metadata and controls
39 lines (25 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
default: release_debug
.PHONY: default release debug all clean
include make-utils/flags.mk
include make-utils/cpp-utils.mk
# Use C++26
$(eval $(call use_cpp26))
CXX_FLAGS += -pthread
LD_FLAGS += -luuid -lssl -lcrypto -ldl
CXX_FLAGS += -isystem budgetwarrior/cpp-httplib -Ibudgetwarrior/include -Ibudgetwarrior/loguru -Ibudgetwarrior/fmt/include
$(eval $(call auto_folder_compile,src))
$(eval $(call auto_folder_compile,src/pages))
$(eval $(call auto_folder_compile,src/api))
$(eval $(call auto_folder_compile,budgetwarrior/src))
AUTO_SRC_FILES := $(filter-out budgetwarrior/src/budget.cpp, $(AUTO_SRC_FILES))
AUTO_CXX_SRC_FILES := $(filter-out budgetwarrior/src/budget.cpp, $(AUTO_CXX_SRC_FILES))
$(eval $(call auto_add_executable,server))
release_debug: release_debug_server
release: release_server
debug: debug_server
all: release release_debug debug
prefix ?= /usr/local
bindir = $(prefix)/bin
mandir = $(prefix)/share/man
clean: base_clean
include make-utils/cpp-utils-finalize.mk