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
18 else ifneq ($(HOST_ARCH),)
19 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
20 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
22 ifeq ($(PLATFORM),windows)
24 LDFLAGS += -Wl,-init,SoMain
28 CPPFLAGS := -ffreestanding
29 CFLAGS := -fno-stack-protector -fPIC
30 LDFLAGS := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
32 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/
34 -include $(_libsdir)../common_settings.mk