2024-09-30 14:35:47 +02:00
|
|
|
# Define linker flags here, like: -lsqlite3 -lpthread
|
2025-01-08 13:37:11 +01:00
|
|
|
LDLIBS := -pthread -lsqlite3
|
2024-09-30 14:35:47 +02:00
|
|
|
|
|
|
|
# Dir name becomes product name.
|
|
|
|
PROJ := $(shell basename $$(pwd))
|
|
|
|
|
|
|
|
# Find out what platform we're on, e.g. Darwin, Linux, OpenBSD.
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
|
|
|
|
# We will build a tool, not a library.
|
|
|
|
PRODUCT := tool
|
|
|
|
|
|
|
|
# Single source of truth for version.
|
|
|
|
MAJOR := 1
|
|
|
|
MINOR := 0
|
2025-01-08 12:30:55 +01:00
|
|
|
PATCH := 1
|
2024-09-30 14:35:47 +02:00
|
|
|
|
|
|
|
# Specify desired C++ standard for this project.
|
|
|
|
CXXFLAGS += -std=c++20
|
|
|
|
|
|
|
|
# Set to 1 if you want a precompiled header for the C++ Standard Library.
|
|
|
|
PRECOMPILE := 0
|
|
|
|
|
|
|
|
# List of extra files to be installed in DATADIR (/usr/local/share/$(PROJ) by default)
|
|
|
|
DATAFILES := numerals.db
|
|
|
|
|
|
|
|
# Define plugin sub-projects here. Assumption here is a directory "plugins"
|
|
|
|
# containing plugin sub-projects, each in its own directory.
|
|
|
|
# Rename and/or repeat accordingly.
|
|
|
|
PLUGINS := $(wildcard plugins/*)
|
|
|
|
MAKE += --no-print-directory
|