2020-04-15 16:27:40 +02:00
|
|
|
APP_PLATFORM := ${APP_PLATFORM}
|
|
|
|
APP_ABI := ${TARGET_ABI}
|
2020-09-04 20:04:28 +02:00
|
|
|
APP_STL := c++_static
|
2020-04-15 16:27:40 +02:00
|
|
|
APP_SHORT_COMMANDS := true
|
2020-09-04 20:04:28 +02:00
|
|
|
APP_MODULES := MultiCraft
|
2020-04-15 16:27:40 +02:00
|
|
|
|
2022-11-11 22:45:05 +06:00
|
|
|
ifdef NDEBUG
|
2023-07-08 18:19:24 +03:00
|
|
|
APP_CFLAGS := -Ofast -fvisibility=hidden -fvisibility-inlines-hidden -Wno-extra-tokens -D__FILE__=__FILE_NAME__ -Wno-builtin-macro-redefined
|
2022-01-27 00:26:37 +01:00
|
|
|
else
|
2023-07-08 18:19:24 +03:00
|
|
|
APP_CFLAGS := -g -D_DEBUG -O1 -fno-omit-frame-pointer
|
2020-04-15 16:27:40 +02:00
|
|
|
endif
|
|
|
|
|
2022-11-11 22:45:05 +06:00
|
|
|
APP_CFLAGS += -fexceptions
|
|
|
|
|
|
|
|
APP_CXXFLAGS := $(APP_CFLAGS) -frtti -std=gnu++17 #-Werror=shorten-64-to-32
|
2020-04-15 16:27:40 +02:00
|
|
|
|
2020-09-04 20:04:28 +02:00
|
|
|
# Silence Irrlicht warnings. Comment out with real debugging!
|
2022-11-11 22:45:05 +06:00
|
|
|
APP_CXXFLAGS += -Wno-deprecated-declarations -Wno-inconsistent-missing-override
|
2020-04-15 16:27:40 +02:00
|
|
|
|
2022-11-11 22:45:05 +06:00
|
|
|
APP_CPPFLAGS := $(APP_CXXFLAGS)
|
2020-09-04 20:04:28 +02:00
|
|
|
|
|
|
|
ifdef NDEBUG
|
2022-11-11 22:45:05 +06:00
|
|
|
APP_LDFLAGS := -Wl,--gc-sections,--icf=all
|
2020-04-15 16:27:40 +02:00
|
|
|
endif
|