4 _libsdir := $(dir $(lastword $(MAKEFILE_LIST)))
5 -include $(_libsdir)../Makefile.cfg
11 ifeq ($(ARCHDIR),native)
12 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
14 LIBS := -lacess-native
15 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
16 ifeq ($(PLATFORM),windows)
18 LDFLAGS += -Wl,-init,SoMain
22 else ifneq ($(HOST_ARCH),)
23 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
24 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
26 ifeq ($(PLATFORM),windows)
28 LDFLAGS += -Wl,-init,SoMain
34 CFLAGS := -fno-stack-protector -fPIC
35 CXXFLAGS := -fno-stack-protector -fPIC
39 LDFLAGS += -g -shared -eSoStart -L$(OUTPUTDIR)Libs/ --no-undefined
40 CXXFLAGS += -std=gnu++11
41 #CPPFLAGS += -D 'SoMain(...)=SoMain(__VA_ARGS__) __attribute__ ((visibility ("hidden"))); int SoMain(__VA_ARGS__)'
43 -include $(_libsdir)../common_settings.mk