2025-01-03 11:27:44 +01:00
|
|
|
# Define linker flags here, like: -lsqlite3 -lpthread
|
2021-12-21 11:42:19 +01:00
|
|
|
LDLIBS := -lscerror
|
|
|
|
|
2025-01-03 11:27:44 +01: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 library, not a tool.
|
|
|
|
PRODUCT := lib
|
|
|
|
|
|
|
|
# Single source of truth for version.
|
2021-12-21 11:42:19 +01:00
|
|
|
MAJOR := 1
|
2025-01-03 11:27:44 +01:00
|
|
|
MINOR := 0
|
2021-12-21 11:42:19 +01:00
|
|
|
PATCH := 0
|
2022-12-14 16:58:05 +01:00
|
|
|
|
2025-01-03 11:27:44 +01: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
|
|
|
|
|
|
|
|
# Set to 0 if you want to create a library header by hand.
|
|
|
|
# By default, it will concatenate all headers, leaving out
|
|
|
|
# lines containing: @exclude
|
2022-12-14 17:06:17 +01:00
|
|
|
GENERATELIBHEADER := 1
|
|
|
|
|
2025-01-03 11:27:44 +01:00
|
|
|
# List of extra files to be installed in DATADIR (/usr/local/share/$(PROJ) by default)
|
|
|
|
DATAFILES :=
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Define specific order of headers
|
2022-12-14 17:00:44 +01:00
|
|
|
HDRS := \
|
2022-12-14 17:06:17 +01:00
|
|
|
src/fdiobuf.hpp \
|
|
|
|
src/fdistream.hpp \
|
|
|
|
src/fdostream.hpp \
|
|
|
|
src/fdstream.hpp \
|
|
|
|
src/socketstream.hpp \
|
|
|
|
src/float80.hpp \
|
|
|
|
src/byte_order.hpp \
|
|
|
|
src/data_streamer.hpp \
|
|
|
|
src/byte_order_changer.hpp \
|
|
|
|
src/memstreambuf.hpp \
|
|
|
|
src/mapped_file.hpp \
|
|
|
|
src/imemfile.hpp \
|
2025-01-03 11:27:44 +01:00
|
|
|
src/version.hpp
|