2022-08-18 22:58:41 +02:00
|
|
|
MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)"
|
|
|
|
|
2022-12-05 22:34:40 +01:00
|
|
|
ifeq ($(shell uname),Darwin)
|
|
|
|
os=macos
|
|
|
|
else
|
|
|
|
os=linux
|
|
|
|
endif
|
|
|
|
|
2022-10-14 14:40:01 +02:00
|
|
|
CXXFLAGS:=$(CXXFLAGS) -std=c++20 -Wall -Wextra -Werror=switch -Werror=return-type -Werror=unused-result
|
2022-12-05 22:34:40 +01:00
|
|
|
CPPFLAGS:=$(CPPFLAGS) -Ilib/expected/ -I. -Ilib/bestline/ -Ilib/rtmidi/ -Ibin/$(os)/server/
|
2022-10-08 20:32:41 +02:00
|
|
|
LDFLAGS=-flto
|
2022-10-14 14:40:01 +02:00
|
|
|
LDLIBS= -lpthread
|
2022-08-18 22:58:41 +02:00
|
|
|
|
2022-09-25 12:01:19 +02:00
|
|
|
RELEASE_FLAGS=-O2
|
2022-08-18 22:58:41 +02:00
|
|
|
DEBUG_FLAGS=-O0 -ggdb -fsanitize=undefined -DDebug
|
|
|
|
|
|
|
|
|