4 _libsdir := $(dir $(lastword $(MAKEFILE_LIST)))
5 -include $(_libsdir)../Makefile.cfg
9 ifeq ($(ARCHDIR),native)
10 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
11 LDFLAGS := -lacess-native
12 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
13 ifeq ($(PLATFORM),windows)
15 LDFLAGS += -Wl,-init,SoMain
19 else ifneq ($(HOST_ARCH),)
20 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
21 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
23 ifeq ($(PLATFORM),windows)
25 LDFLAGS += -Wl,-init,SoMain
30 CPPFLAGS := -ffreestanding
31 CFLAGS := -fno-stack-protector -fPIC
32 CXXFLAGS := -fno-stack-protector -fPIC
33 LDFLAGS := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
35 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/
36 CXXFLAGS += -std=gnu++11
38 -include $(_libsdir)../common_settings.mk