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 CPPFLAGS := -ffreestanding
20 CFLAGS := -fno-stack-protector -fPIC
21 LDFLAGS := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
23 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/
25 -include $(_libsdir)../common_settings.mk