2024-03-04 12:18:48 +01:00
|
|
|
LIB_FILENAME = libmrk.a
|
|
|
|
|
|
|
|
BUILD_DIR = build
|
|
|
|
SRC_DIR = src
|
|
|
|
TEST_DIR = test
|
|
|
|
EXAMPLE_DIR = example
|
|
|
|
THIRDPARTY =
|
|
|
|
|
|
|
|
PUB_INC_DIR = include
|
|
|
|
INC_DIRS = $(PUB_INC_DIR) src/_include
|
|
|
|
|
|
|
|
# -MMD: generate a .d file for every source file. This file can be imported by
|
|
|
|
# make and makes make aware that a header file has been changed, ensuring an
|
|
|
|
# object file is also recompiled if only a header is changed.
|
|
|
|
# -MP: generate a dummy target for every header file (according to the docs it
|
|
|
|
# prevents some errors when removing header files)
|
2024-03-05 10:07:57 +01:00
|
|
|
CFLAGS ?= -MMD -MP -g -Wall -Wextra
|