2019-12-12 21:38:11 +00:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# pull in common atmosphere configuration
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/../common.mk
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# options for code generation
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
export DEFINES := $(ATMOSPHERE_DEFINES) -DATMOSPHERE_IS_MESOSPHERE
|
2020-12-02 01:34:09 +00:00
|
|
|
export SETTINGS := $(ATMOSPHERE_SETTINGS) -Os -mgeneral-regs-only -ffixed-x18 -Wextra -Werror -fno-non-call-exceptions
|
2019-12-12 21:38:11 +00:00
|
|
|
export CFLAGS := $(ATMOSPHERE_CFLAGS) $(SETTINGS) $(DEFINES) $(INCLUDE)
|
2020-01-31 12:47:08 +00:00
|
|
|
export CXXFLAGS := $(CFLAGS) $(ATMOSPHERE_CXXFLAGS) -fno-use-cxa-atexit
|
2020-08-01 03:48:22 +01:00
|
|
|
export ASFLAGS := $(ATMOSPHERE_ASFLAGS) $(SETTINGS) $(DEFINES) $(INCLUDE)
|
2019-12-12 21:38:11 +00:00
|
|
|
|
2020-07-30 22:50:50 +01:00
|
|
|
export LDFLAGS = -specs=$(TOPDIR)/$(notdir $(TOPDIR)).specs -fno-asynchronous-unwind-tables -fno-unwind-tables -nostdlib -nostartfiles -g $(SETTINGS) -Wl,-Map,$(notdir $*.map) -Wl,-z,relro,-z,now
|
2019-12-12 21:38:11 +00:00
|
|
|
|
|
|
|
export CXXWRAPS := -Wl,--wrap,__cxa_pure_virtual \
|
|
|
|
-Wl,--wrap,__cxa_throw \
|
|
|
|
-Wl,--wrap,__cxa_rethrow \
|
|
|
|
-Wl,--wrap,__cxa_allocate_exception \
|
|
|
|
-Wl,--wrap,__cxa_free_exception \
|
|
|
|
-Wl,--wrap,__cxa_begin_catch \
|
|
|
|
-Wl,--wrap,__cxa_end_catch \
|
|
|
|
-Wl,--wrap,__cxa_call_unexpected \
|
|
|
|
-Wl,--wrap,__cxa_call_terminate \
|
|
|
|
-Wl,--wrap,__gxx_personality_v0 \
|
|
|
|
-Wl,--wrap,_Unwind_Resume \
|
|
|
|
-Wl,--wrap,_ZSt19__throw_logic_errorPKc \
|
|
|
|
-Wl,--wrap,_ZSt20__throw_length_errorPKc \
|
|
|
|
-Wl,--wrap,_ZNSt11logic_errorC2EPKc
|
|
|
|
|
2020-10-27 20:55:19 +00:00
|
|
|
export LIBS := -l$(LIBMESOSPHERE_NAME)
|
2019-12-12 21:38:11 +00:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
# list of directories containing libraries, this must be the top level containing
|
|
|
|
# include and lib
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
LIBDIRS := $(ATMOSPHERE_LIBRARIES_DIR)/libvapours $(ATMOSPHERE_LIBRARIES_DIR)/libmesosphere
|