lander/config.mk

24 lines
702 B
Makefile
Raw Normal View History

2023-07-28 21:08:48 +02:00
VERSION := 0.1.0
BIN_FILENAME = lander
BUILD_DIR = build
SRC_DIR = src
TEST_DIR = test
THIRDPARTY_DIR = thirdparty
INC_DIRS = include $(THIRDPARTY_DIR)/include trie/include
LIBS = trie m
LIB_DIRS = ./trie/build
# -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)
CFLAGS = -MMD -MP -g
# When compiling release builds, these flags are better
# CLAGS = -O3
# LDFLAGS = -flto