musique/config.mk
2022-12-05 22:34:47 +01:00

18 lines
411 B
Makefile

MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)"
ifeq ($(shell uname),Darwin)
os=macos
else
os=linux
endif
CXXFLAGS:=$(CXXFLAGS) -std=c++20 -Wall -Wextra -Werror=switch -Werror=return-type -Werror=unused-result
CPPFLAGS:=$(CPPFLAGS) -Ilib/expected/ -I. -Ilib/bestline/ -Ilib/rtmidi/ -Ibin/$(os)/server/
LDFLAGS=-flto
LDLIBS= -lpthread
RELEASE_FLAGS=-O2
DEBUG_FLAGS=-O0 -ggdb -fsanitize=undefined -DDebug