4 -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
8 ifeq ($(ARCHDIR),native)
9 ASFLAGS += -D ARCHDIR=$(ARCHDIR) -D __ASSEMBLER__=1
10 LDFLAGS := -lacess-native
11 #CPPFLAGS := -D SoMain="__attribute__ ((constructor(101))) libacessnative_init"
12 ifeq ($(PLATFORM),windows)
14 LDFLAGS += -Wl,-init,SoMain
18 CPPFLAGS := -ffreestanding
19 CFLAGS := -fno-stack-protector -fPIC
20 LDFLAGS := -I/Acess/Libs/ld-acess.so -lld-acess `$(CC) -print-libgcc-file-name`
22 CPPFLAGS += -I$(ACESSDIR)/Usermode/include/ -DARCHDIR=$(ARCHDIR) -DARCHDIR_is_$(ARCHDIR)=1
23 CPPFLAGS += $(addprefix -I,$(wildcard $(ACESSUSERDIR)Libraries/*/include_exp/))
25 LDFLAGS += -g -nostdlib -shared -eSoMain -x --no-undefined -L$(OUTPUTDIR)Libs/